Commit Graph

1737 Commits

Author SHA1 Message Date
Masayuki Ishikawa
1917870cca boards: stm32f4discovery: Update kostest/defconfig to avoid crash
Summary:
- I noticed that recent mm_heap changes causes a crash with
  stm32f4discovery:kostest
- This is a tentative solution to avoid the crash

Impact:
- None

Testing:
- Tested with stm32f4discovery board

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-03-06 11:28:36 +01:00
raiden00pl
468f2e3222 boards/nrf5340-dk: add sdc support 2023-03-05 19:31:07 -03:00
raiden00pl
3b92819792 arch/nrf53: initial clock configuration 2023-03-05 19:31:07 -03:00
raiden00pl
e3f2443fc3 boards/nrf52: normalize sdc configurations 2023-03-05 21:32:11 +02:00
raiden00pl
5fa2dc3c5b nrf5340-dk/nsh_cpunet: add net core configuration 2023-03-04 12:35:14 +09:00
raiden00pl
2ec564eb11 boards/nrf53/nsh_cpuapp: fix ram size 2023-03-04 12:35:14 +09:00
raiden00pl
74ffdb0b49 boards/nrf52: update sdc configs 2023-03-03 09:41:17 +08:00
Xiang Xiao
66c5f86018 sched: Disable stdio api by default when DEFAULT_SMALL equals y
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 00:18:03 +02:00
raiden00pl
535df527cb boards/nrf52840-dk: add sdc examples 2023-03-03 02:23:56 +08:00
raiden00pl
16a711c1e2 boards/nrf52832-dk: add sdc examples 2023-03-03 02:23:56 +08:00
jturnsek
081b04f05e iMXRT MCUboot support 2023-03-02 22:40:44 +08:00
raiden00pl
da76aa71aa boards: initial support for nrf5340-dk 2023-03-02 22:06:14 +08:00
raiden00pl
055a21b2fe nrf5340-audio-dk/README.txt: correct board name 2023-03-02 22:06:14 +08:00
zhanghongyu
16ea80e53b rndis: support iob offload
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-02 02:50:59 +08:00
SPRESENSE
8c7fc2c175 boards: spresense: Add LCD support on LTE board
Add a configuration to use SPI3 on LTE extension board for LCD.
2023-03-01 09:21:19 +01:00
SPRESENSE
1ce5dd948e boards: spresense: Add eMMC initialization into bringup function
Add eMMC initialization into bringup function.
2023-03-01 09:21:19 +01:00
SPRESENSE
9717f48a18 boards: spresense: Support eMMC late initialization
Support eMMC late initialization to initialize eMMC from user application.
2023-03-01 09:21:19 +01:00
SPRESENSE
171f8a731c boards: spresense: Remove duplicate definitions
Remove duplicate definitions are defined in board.h.
2023-03-01 09:21:19 +01:00
SPRESENSE
56d43a4a1d boards: spresense: Add eMMC power-on wait time
Add 10msec wait time before eMMC device is powered on.
2023-03-01 09:21:19 +01:00
SPRESENSE
96da997b23 boards: spresense: Add board function for eMMC finalization
- Un-mount the FAT filesystem for eMMC
- Un-initialize eMMC driver
- Turn off the eMMC device
2023-03-01 09:21:19 +01:00
SPRESENSE
5b3496fb7b boards: spresense: Add configuration for eMMC power control
Update Kconfig to add eMMC power pin selection.
2023-03-01 09:21:19 +01:00
SPRESENSE
b60fbefabe boards: spresense: Support using GPIO for power control
Introduce CHIP_TYPE_GPIO to allow GPIO to be used for power control.
2023-03-01 09:21:19 +01:00
SPRESENSE
4a405ca107 boards: spresense: Remove wrong build condition
Remove wrong build condition and always build cxd56_gpioif.c.
2023-03-01 09:21:19 +01:00
Xiang Xiao
2c5f653bfd Remove the tail spaces from all files except Documentation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 13:24:24 -08:00
Xiang Xiao
8b4ecac6c2 libc: Move math library from libs/libc/math to libs/libm/libm
to prepare the support of other implementation e.g.:
https://github.com/JuliaMath/openlibm
https://gitlab.com/gtd-gmbh/libmcs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-23 10:40:07 +02:00
SPRESENSE
e867b84458 boards: cxd56_imageproc: Change alpha blend interface
- Remove unnecessary member
- Some member changed to appropriate type
- Add usage description
2023-02-22 12:48:11 +02:00
SPRESENSE
987ca0c682 boards: cxd56_imageproc: Fix some bugs in imageproc driver
- Fix resize scaling factor setting mistakes
- Fix input vertical size check is not worked
- Fix comment mistakes and style in header file
2023-02-22 12:48:11 +02:00
Masayuki Ishikawa
5ef93ca814 boards: imxrt1060-evk: Add netnsh_dcache_wb configuration
Summary:
- This commit adds netnsh_dcache_wb configuration which enables
  d-cache write-back mode with networking.

Impact:
- None

Testing:
- Tested with iperf, telnet and ping on imxrt1060-evk board
- iperf -s 94Mbps, iperf -c 93Mbps

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-02-22 01:27:54 +08:00
Xiang Xiao
ee24396d77 drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
follow other driver config style

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:59 +08:00
Fotis Panagiotopoulos
b5b7d24ba1 Improvements in CAN connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos
9b4d784307 Improvements in sockets allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos
f207072121 Improvements in usrsock connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos
7f3591b9cc Improvements in UDP connections allocation. 2023-02-20 09:06:46 +08:00
Fotis Panagiotopoulos
8f9dfe0be1 Improvements in TCP connections allocation. 2023-02-20 09:06:46 +08:00
Karel Kočí
74790c8033 boards/samv7/hsmci: add option to invert card detection pin
The original code hard-coded card detection to the low when card is
inserted and high when not. This might not be true on every board
because it depends on the slot and wiring used. The second reason is
because it is also possible to detect card with D3 pin pull-up when the
slot does not provide dedicated card detection switch.

This introduces new argument to the sam_hsmci_initialize to allow
invert of card detection pin. It also applies this invert to existing
boards as that was the state up to this point.
2023-02-19 10:36:04 +08:00
Michal Lenc
889a84f9f7 same70-xplained: add configuration option for MCAN support
This commit adds configuration file with enabled MCAN support. This is
mainly to track changes in architectural driver that could cause build
errors.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-02-17 14:58:37 -03:00
Fotis Panagiotopoulos
85ceb7920e Typo fixes. 2023-02-17 11:17:11 -03:00
Nathan Hartman
de01550e7e Fix typo: s/then/them/ 2023-02-17 09:55:55 +08:00
SPRESENSE
a8e5dcbfa9 boards/spresense: Enable broadcast flag in DHCP process
In spresense:wifi, renew command will be failed with disabling
broadcast flag.
For spresense defconfig, enabling it.
2023-02-16 20:11:35 +09:00
Nathan Hartman
6fb08b8b03 Fix typos: s/UARt/UART/ 2023-02-16 09:25:35 +08:00
Michal Lenc
fd91af4f70 teensy-4.x: update pikron-bb configuration with PMSM control abilities
This commit updates configuration pikron-bb (configuration for open
hardware experimental board) to support permanent magnet sychnronous
motor control. This includes setup of PWM, GPIO and ADC peripherals.

Required follow up changes are done to pinout definition.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-02-11 20:07:28 +08:00
Masayuki Ishikawa
80ebff90d5 boards: imxrt1060-evk: Update knsh
Summary:
- Add built-in apps such as ostest, getprime, hello
- Enable some debug configurations
- Enable interrupt stack and stack coloring

Impact:
- None

Testing:
- Tested with imxrt1060-evk

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-02-09 23:30:50 -08:00
Masayuki Ishikawa
e95b032c74 boards: imxrt1060-evk: Fix knsh and related linker script files
Summary:
- Fix knsh/defconfig to work with pyOCD
- Fix kernel-space.ld to boot
- Fix memory.ld for CONFIG_BUILD_PROTECTED=y

Impact:
- CONFIB_BUILD_PROTECTED=y only

Testing:
- Tested with imxrt1060-evk

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-02-09 23:30:50 -08:00
chao an
74ce3b81d3 build/Kconfig: add BINDIR/APPSBINDIR to support out of tree build
First decoupling changes related to CMAKE

BINDIR/APPSBINDIR:
Output path of Kconfig which dynamically generated by NuttX Kernel/Apps
This option is consistent with the TOPDIR/APPSDIR by default, and will
be changed when out-of-tree compilation is supported

Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:13:04 +08:00
chao an
e942a7c55e build/Kconfig: fix warnings detected by kconfiglib
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:07:46 +08:00
chao an
3a0fdb019d nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems()
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:05:44 +08:00
raiden00pl
18cf2c4297 boards/stm32f4discovery: add nxscope CDCACM example 2023-02-08 10:06:59 +08:00
Ville Juven
09e7987121 sched/addrenv: Fix system crash when process group has been deleted
There is currently a big problem in the address environment handling which
is that the address environment is released too soon when the process is
exiting. The current MMU mappings will always be the exiting process's, which means
the system needs them AT LEAST until the next context switch happens. If
the next thread is a kernel thread, the address environment is needed for
longer.

Kernel threads "lend" the address environment of the previous user process.
This is beneficial in two ways:
- The kernel processes do not need an allocated address environment
- When a context switch happens from user -> kernel or kernel -> kernel,
  the TLB does not need to be flushed. This must be done only when
  changing to a different user address environment.

Another issue is when a new process is created; the address environment
of the new process must be temporarily instantiated by up_addrenv_select().
However, the system scheduler does not know that the process has a different
address environment to its own and when / if a context restore happens, the
wrong MMU page directory is restored and the process will either crash or
do something horribly wrong.

The following changes are needed to fix the issues:
- Add mm_curr which is the current address environment of the process
- Add a reference counter to safeguard the address environment
- Whenever an address environment is mapped to MMU, its reference counter
  is incremented
- Whenever and address environment is unmapped from MMU, its reference
  counter is decremented, and tested. If no more references -> drop the
  address environment and release the memory as well
- To limit the context switch delay, the address environment is freed in
  a separate low priority clean-up thread (LPWORK)
- When a process temporarily instantiates another process's address
  environment, the scheduler will now know of this and will restore the
  correct mappings to MMU

Why is this not causing more noticeable issues ? The problem only happens
under the aforementioned special conditions, and if a context switch or
IRQ occurs during this time.
2023-02-08 02:51:23 +08:00
raiden00pl
ca95d592d3 boards/stm32f4disco: add timer driver support 2023-02-08 02:43:13 +08:00
chao an
caa16742db rp2040/raspberrypi-pico-w: update submodule to avoid invaild firmware
The cyw43-driver is a submodule in the pick-sdk, if the submodule is
not updated, the dummy firmware driver will be used, update the document
to correct the setup flow.

${PICO_SDK_PATH}/lib/cyw43-driver/firmware/43439A0-7.95.49.00.combined

Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-07 04:40:38 +08:00