simonatoaca
9794dc118f
drivers: Added support for BME680
...
drivers/sensors/bme680.c: The bme680 driver
sensor.h: Added new type of sensor (Gas) to be used for retrieving the bme680 data
esp32/common/src/esp32_bme680.c: bme680 support on esp32
esp32/esp32-sparrow_kit/esp32_bringup.c: added support for the bme680
esp32/esp32-sparrow-kit/configs/nsh/defconfig: fixed defconfig ci problem
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
esp32-sparrow-kit: Fixed defconfig
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
Code is now C89 compatible
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
Reused already defined sensor data structs by registering every sub-sensor separately
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
Implemented suggestions
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
2023-07-29 17:47:23 -03:00
yuexinyi
326cf2bf88
drivers/video: add new video driver register api to support multi instance
...
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:29 -07:00
hujun5
618d47570d
arm/trustzone: update defconfig
...
we should add CONFIG_ARCH_TRUSTZONE_NONSECURE=y to ap's defconfig
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-29 06:58:24 -07:00
dongjiuzhu1
e3d27444ef
boards/sim: remove unnecessary config EXAMPLES_SOTEST_DEVPATH
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 06:54:52 -07:00
Tiago Medicci Serrano
e38b4b2103
espressif: fix linker to include the reserved area of RTC memory
...
Basically, it reserves an area of the RTC memory to preserve the
RTC timer.
Please refer to:
fa76c82a5b
This commit also removes the rtc.dummy section because C3, C6 and
H2 don't need to skip it once the region is accessed by the same
address space using the instruction and data bus.
2023-07-27 19:43:48 -07:00
hujun5
ad6b12acf5
arm/trustzone: update defconfig
...
we should add CONFIG_ARCH_TRUSTZONE_NONSECURE=y to ap's defconfig
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 18:53:28 -07:00
Ville Juven
6bafdd45fd
riscv/mpfs: Set hart2 default entrypoint to -1 like the others
...
No reason to have a different entrypoint
2023-07-26 19:58:05 -03:00
Xiang Xiao
f3269a6caa
sched: Rename DEBUG_TCBINFO to ARCH_HAVE_TCBINFO
...
and select if the arch support to define g_tcbinfo variable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
raiden00pl
4aa54e8405
cmake: port more stm32 boards and format already ported stm32 boards
2023-07-25 06:08:54 -07:00
raiden00pl
e64335f24c
cmake: format Nordic boards
2023-07-25 06:08:54 -07:00
Xiang Xiao
b4e7251415
boards/esp32-devkitc: Refresh wifi_smp_rmt config
...
Fix the regression by https://github.com/apache/nuttx/pull/6992
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-24 21:01:14 -03:00
raiden00pl
dffb472ad9
cmake: port stm32f0l0g0
2023-07-24 10:13:26 -07:00
kcheshmedzhiev
ea87d008a0
Initial support for NUCLEO-U5A5ZJ-Q board
...
Fix for ci error
Typo changes
Fixed typo in boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c
Typo changes
Typo fixes
Typo fixes
Typo changes
Typo changes
Typo changes
2023-07-23 18:42:05 -07:00
Victor Benso
0c5145b7d1
New implementation of the ESP32's RMT driver.
2023-07-23 16:17:57 -03:00
raiden00pl
f3e22c0bb0
boards/nrf9160-dk: update modem configuration
2023-07-23 19:56:38 +08:00
Lucas Saavedra Vaz
8dea103ecb
boards/risc-v/espressif: Add PWM support for ESP32-[C3/C6/H2]
...
Add support for the PWM peripheral to ESP32-C3/C6/H2 by using the Espressif HAL
2023-07-23 01:11:38 +08:00
raiden00pl
26dda05cdf
tools/ci: migrate some ci build configurations to CMake
2023-07-22 00:59:44 +08:00
raiden00pl
f97199340e
cmake: port missing nrf52 boards
2023-07-22 00:59:44 +08:00
Roy Feng
3c63b9b646
ESP32s3:Do not include specfic board in commom
...
board/esp32s3/common is for common board driver. It should not
include a header file from specific board. so remove include
of esp32s3-devkit.h from some of the common driver source
2023-07-21 20:45:48 +08:00
Roy Feng
3fa86f83b7
Some follow-up changes for ESP32s3 32M flash support
...
Fix the link and flash parameters error of ESP32s3 32M flash
enabled.
2023-07-21 20:44:04 +08:00
Xiang Xiao
a51be33a41
libc/tls: Change the default value of TLS_NELEM to zero
...
to ensure the default config as small as possible.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-20 08:11:30 +02:00
raiden00pl
9da715db12
boards: use the example from NuttX-apps for all NimBLE configurations
2023-07-20 01:45:38 +08:00
YAMAMOTO Takashi
9aa9b88f66
esp32-devkitc/wamr_wasi_debug: enable wasi-threads
2023-07-19 18:50:24 +08:00
Alexis Christoforides
fcc2398078
Set product/manufacturer id strings
2023-07-18 23:46:34 +08:00
Alan Carvalho de Assis
3be1949126
stm32f777zit6-meadow: Add usbnsh board profile
2023-07-18 23:46:34 +08:00
Alan Carvalho de Assis
3eab3ccf69
Remove extra #endif from stm32_usb.c
2023-07-18 23:46:34 +08:00
Alan Carvalho de Assis
65ad9c2b7e
Fix PLLSAI clock frequency
2023-07-18 23:46:34 +08:00
Xiang Xiao
abfe082a6f
Kconfig: Simplify the conditional default statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-16 14:39:20 -03:00
Xiang Xiao
e031a73aef
Kconfig: Change some "default y" to "default !DEFAULT_SMALL"
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-16 14:39:20 -03:00
Xiang Xiao
94af148fb3
sim/segger: Enable CONFIG_NOTE_RTT and CONFIG_SERIAL_RTT0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-16 14:37:21 +03:00
chao an
f10b54a081
cmake: fix CMake build break
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-15 23:32:36 +08:00
anjiahao
6c1a7c4265
support esp32c3-devkit gdbstub use wifi
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-15 01:57:11 +08:00
raiden00pl
cf871b48d8
cmake: convert more stm32 boards
2023-07-14 21:33:53 +08:00
simbit18
d991ef77e8
Fix nuttx coding style
...
Remove TABs
Fix indentation
2023-07-14 20:48:24 +08:00
simbit18
b0965ab963
Fix nuttx coding style
...
Remove TABs
Fix indentation
Fix Multi-line comments
Fix Comments to the Right of Statements.
2023-07-14 01:16:06 +08:00
simbit18
1b1ac6f3b7
Fix nuttx coding style
...
Remove TABs
Fix indentation
Fix Multi-line comments
Fix Comments to the Right of Statements.
Fix nuttx coding style
Fix Comments to the Right of Statements.
2023-07-13 19:30:56 +08:00
Xiang Xiao
0ee304954a
boards/tiva: Enable LTO for lm3s6432-s2e/nsh
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-13 10:13:21 +08:00
raiden00pl
f43c7e99be
boards/stm32h7: Add stm32h745i-disco board
2023-07-12 11:30:57 -03:00
Zhe Weng
3d5eae2497
arch/arm64: Enable FPU for qemu-armv8a:netnsh_smp and netnsh_smp_hv
...
When reading https://github.com/apache/nuttx-apps/pull/1793 , I found a previous problem https://github.com/apache/nuttx-apps/pull/1454#discussion_r1045718067 now still exists on current master (inf in iperf bandwidth).
By step-by-step debugging, I found a value of 1000000.0 stored in register d8 is overwritten as 0 after context switch, then fdiv results in inf because of divided by 0. Finally I found that ARCH_FPU is not enabled while compiler is using FPU, and may lose values in floating-point registers.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-07-12 10:04:13 -03:00
raiden00pl
92040a2bdf
cmake: convert some stm32 boards
2023-07-11 15:52:56 -03:00
raiden00pl
6dcfe61b0e
cmake: add support for stm32h7
2023-07-11 15:52:56 -03:00
raiden00pl
ab6fd2e6c8
cmake: add support for stm32f7
2023-07-11 15:52:56 -03:00
simbit18
9681c52517
Fix nuttx coding style
...
Remove TABs
Fix indentation
2023-07-11 23:32:17 +08:00
Xiang Xiao
9dc59e9109
Fix error: Mixed case identifier found
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-10 23:03:17 +03:00
raiden00pl
389df1ec1f
cmake: add intial support for nrf91
2023-07-10 22:24:44 +08:00
raiden00pl
f1bb29820e
cmake: add intial support for nrf53
2023-07-10 22:24:44 +08:00
raiden00pl
59e261e92f
cmake: add initial support for nrf52
2023-07-10 22:24:44 +08:00
Alan Carvalho de Assis
357dc9c6f4
esp32s2-saola-1: Add SPI Flash example
2023-07-10 17:56:46 +08:00
Alan Carvalho de Assis
1d88d5a370
ESP32S2: Add support to SPI Flash
2023-07-10 17:56:46 +08:00
raiden00pl
225740b1b7
nrf9160-dk add non-secure modem configuration
2023-07-09 10:41:13 -03:00
raiden00pl
8111430530
nrf9160-dk add secure miniboot configuration that jumpt to non-secure code
2023-07-09 10:41:13 -03:00
raiden00pl
691d9ae738
nrf91/common: add support for non-secure boot
2023-07-09 10:41:13 -03:00
raiden00pl
98784e83f7
nrf9160-dk: add timer support
2023-07-09 10:41:13 -03:00
raiden00pl
db82126faa
nrf91/common: add configuration checks for linker script
2023-07-09 10:41:13 -03:00
raiden00pl
872a05911e
arch/nrf91: add errata workarounds
2023-07-09 10:41:13 -03:00
raiden00pl
bbabcf3c78
arch/nrf91: modem shmem always at the RAM start
2023-07-09 10:41:13 -03:00
raiden00pl
88bc4cb1a0
nRF91: add mcuboot support
2023-07-09 10:41:13 -03:00
chao an
6ee9ec7656
build: add initial cmake build system
...
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)
------------------
How to test
From within nuttx/. Configure:
cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja
(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja
This uses ninja generator (install with sudo apt install ninja-build). To build:
$ cmake --build build
menuconfig:
$ cmake --build build -t menuconfig
--------------------------
2. cmake/build: reformat the cmake style by cmake-format
https://github.com/cheshirekow/cmake_format
$ pip install cmakelang
$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done
Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
Xiang Xiao
8f38fa6062
symtab: Remove the unnessary inclusion of nuttx/symtab.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-06 09:24:02 -03:00
SPRESENSE
4eb6da33c2
cxd56/alt1250: Change power on sequence
...
Change the power on sequence according to ALT1250 modem spec.
2023-07-06 13:18:57 +08:00
simonatoaca
a4708d217a
esp32/common: Added support for rgb led driver on esp32
...
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
esp32-sparrow-kit: Added rgb led driver to bringup and to defconfig
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
Fixed checkstyle
Signed-off-by: simonatoaca <simona.alexandra2000@gmail.com>
Update esp32_rgbled.h
Update boards/xtensa/esp32/common/src/esp32_rgbled.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Update boards/xtensa/esp32/common/src/esp32_rgbled.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Update boards/xtensa/esp32/common/src/esp32_rgbled.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Update boards/xtensa/esp32/common/src/esp32_rgbled.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Removed ret 0 as an error in the case of nx_write()
2023-07-05 16:08:56 -03:00
Robert-Ionut Alexa
c3576d79d9
esp32-sparrow-kit: enable framebuffer support in the default configuration
...
Signed-off-by: Robert-Ionut Alexa <robertalexa2000@gmail.com>
2023-07-05 11:23:33 -03:00
Robert-Ionut Alexa
6adeae4d0a
esp32: initializing a display should not initialize the framebuffer as well
...
The framebuffer itself already initializes the display so there is no need to
do the reverse operation. Otherwise the code gets stuck in an infinite loop.
Signed-off-by: Robert-Ionut Alexa <robertalexa2000@gmail.com>
2023-07-05 11:23:33 -03:00
Xiang Xiao
af50cdd21b
arch/sim: Rename sim_video to sim_camera
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-04 20:15:30 +09:00
SPRESENSE
6611bf99c4
drivers: video: isx012: Fix system clock to HV mode
...
ISX012 doesn't work if CONFIG_CPUFREQ_RELEASE_LOCK is enabled
without this changes.
2023-07-04 12:34:13 +03:00
SPRESENSE
d0d787c1b0
drivers: video: isx019: Fix system clock to HV mode
...
ISX019 doesn't work if CONFIG_CPUFREQ_RELEASE_LOCK
is enabled without this changes.
Signed-off-by: Takumi Ando <t-ando@advaly.co.jp>
2023-07-04 12:34:13 +03:00
raiden00pl
3d9a64ce27
boards: initial support for nrf9160-dk
2023-07-02 10:10:35 -03:00
Masayuki Ishikawa
e78eade641
boards: qemu-armv8a: Add defconfigs for hypervisor
...
Summary:
- This commit adds netnsh_hv and netnsh_smp_hv to run the NuttX
with hypervisor environments
- Also updates README.txt
Impact:
- None
Testing:
- Tested with qemu=7.1 + kvm on raspi3b+ (ubuntu server 20.04)
- Tested with qemu-7.1 + hvf on M1/MBP (macOS 12.6.1)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-07-01 10:22:00 -03:00
Masayuki Ishikawa
8bbe7a8825
boards: Enable virtio-blk and FAT for virt configurations
...
Summary:
- I noticed that virtio-blk and FAT are not enabled for some
virt configurations.
- This commit enables them for testing.
Impact:
- None
Testing:
- Tested with qemu-7.1
- NOTE: file copy with rv-virt:knetnsh64 is sometimes unstable.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-07-01 13:10:40 +08:00
ThomasNS
f51d6b8c72
add userled driver initialization
2023-06-30 10:29:33 -03:00
ThomasNS
7864bf4870
spi4 working xmc4700-relax
2023-06-30 10:29:33 -03:00
Stuart Ianna
5b00c31396
boards/litex/arty_a7: Support building fully linked executables.
...
Changes the executable type built against the `make export` target fully linked by default. This greatly improves performance when loading applications, as relocations no longer need to be processed.
2023-06-28 15:16:28 +08:00
Lucas Saavedra Vaz
9bd1d5ddda
arch/risc-v/espressif: Add USB-Serial-JTAG driver
...
Add support for USB-Serial-JTAG on ESP32-C3/C6/H2 using the Espressif HAL
2023-06-28 08:47:55 +08:00
raiden00pl
0aa1af7ff1
boards/thingy52: add sx1509 support
...
SX1509 is used to control various peripherals and RGB LEDs available on the board.
2023-06-27 14:44:00 -03:00
GD32-MCU
ec2a62c397
add gd32f470 support
2023-06-27 14:59:33 +08:00
Lucas Saavedra Vaz
09dcf50f20
boards/risc-v/esp32c3-generic: Add full GPIO and Buttons support
2023-06-24 13:11:45 +08:00
Lucas Saavedra Vaz
8885d68e24
boards/risc-v/esp32c6-generic: Add full GPIO and Buttons support
2023-06-24 13:11:45 +08:00
Lucas Saavedra Vaz
2eb6af6e54
boards/risc-v/esp32c3-generic: Add full GPIO and Buttons support
2023-06-24 13:11:45 +08:00
Lucas Saavedra Vaz
8aeba210e4
arch/risc-v/espressif: Add full GPIO support
...
Full GPIO support using Espressif's HAL
2023-06-24 13:11:45 +08:00
Xiang Xiao
0eeca0f375
build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX)
...
to unify the way to get include directories
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-23 00:11:25 +03:00
Nicolas Caramelli
f763cb118d
stm32f429i-disco: Register the BUTTON driver
2023-06-22 15:10:55 -03:00
simbit18
f0a74eb492
Fix Kconfig style
...
Remove spaces from Kconfig files
2023-06-22 11:46:09 +09:00
simbit18
f930b4f6f5
Fix Kconfig style
...
Remove TABs from Kconfig files
Replace help => ---help---
Add comments
2023-06-20 12:54:50 -03:00
Alan Carvalho de Assis
c9f610f44f
stm32f777zit6-meadow: Fix external RAM pinout and add board profile
...
This patch will fix an issue that was preventing the stm32f7 board
from working with external SDRAM memory.
2023-06-20 10:04:33 +08:00
simbit18
3f4151525d
Fix Kconfig style
...
Remove TABs from Kconfig files
Add comments
2023-06-19 20:05:57 +03:00
Michal Lenc
5b90ae9c72
boards/samv7: add lower level IOCTL handler to sam_gpio_enc driver
...
SAMv7 encoder driver with GPIO pins was written without IOCTL support.
While this driver does not require any lower level IOCTLs for its
functionality the upper layer fails on assertion when unknown command
can not be send to lower layer. This commit adds IOCTL handler that
always returns -ENOTTY as no commands are supported.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-06-19 23:06:20 +08:00
YAMAMOTO Takashi
e9738cd906
esp32-devkitc/wamr_wasi_debug: Bump WAMR version
2023-06-19 07:20:47 +03:00
Alan Carvalho de Assis
bb84b08735
esp32s3-meadow: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
Alan Carvalho de Assis
82bc515ede
esp32s3-eye: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
Alan Carvalho de Assis
985e2beae0
esp32s3-devkit: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
zhangyuan21
514e77b75e
semaphore: Optimize priority inheritance with only one holder
...
This PR is a modification that optimizes priority inheritance
for only one holder. After the above modifications are completed,
the mutex lock->unlock process that supports priority inheritance
can be optimized by 200 cycles.
Before modify: 2000 cycle
After modify: 1742 cycle
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-17 08:26:46 +03:00
Lucas Saavedra Vaz
fa5db655cd
boards/xtensa/esp32s3-devkit: Revert NSH defconfig deletion
...
Restore the NSH defconfig
2023-06-16 14:35:18 -03:00
Xiang Xiao
275db394bc
boards/sim: Enable fdcheck and fdsan in kasan config
...
to improve the ci build coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-16 08:31:16 +03:00
Dong Heng
d492823128
xtensa/esp32s3: Add USB OTG device driver
2023-06-14 18:04:27 -03:00
SPRESENSE
1e7f5e8aa8
boards: spresense: Add Power domain definitions
...
Add power domain definitions for using PM System.
2023-06-14 08:49:19 +02:00
SPRESENSE
b1f3d5e573
arm/cxd56xx: Fix build error in CONFIG_PM=y
2023-06-14 08:49:19 +02:00
yanghuatao
29a336d6a8
sched/tls: remove PTHREAD_CLEANUP from Kconfig
...
use PTHREAD_CLEANUP_STACKSIZE to enable or disable interfaces pthread_cleanup_push() and pthread_cleanup_pop().
reasons:(1)same as TLS_TASK_NELEM (2)it is no need to use two variables
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-06-14 12:00:48 +08:00
zhangyuan21
4033a4a2a4
boards: remove unnecessary FAR
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-13 09:37:45 -03:00
zhangyuan21
6c38c44af2
assert: add regs parameter to board_crashdump function
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-13 09:42:27 +08:00
Masayuki Ishikawa
a85c87436e
boards: rv-virt: Add netnsh64_smp to test virtio
...
Summary:
- This commit adds netnsh64_smp to test virtio
Impact:
- None
Testing:
- Tested with qemu-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-06-12 08:17:38 +02:00
Masayuki Ishikawa
08da38b535
boards: Enable md5 to test virtio
...
Summary:
- This commit enables md5 to test virtio
Impact:
- None
Testing:
- Tested with qemu-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-06-11 22:54:06 +08:00
Petro Karashchenko
dcd26ac6b2
sdcard: update sdcard detection to avoid 0xff assignment to bool type
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-11 12:55:29 +08:00
SPRESENSE
acb3ac95da
configs/lte: Update defconfig
...
Update defconfig regarding ALT1250 driver update.
2023-06-08 07:48:17 +02:00
SPRESENSE
54112ac070
drivers/modem/alt1250: Update alt1250 driver
...
Updated alt1250 driver with regarding to the following changes.
- Add LTE hibernation feature
- Split source code per module
- Some refactoring
- Some bug fixes
2023-06-08 07:48:17 +02:00
Ville Juven
159a4f83d6
mpfs/icicle: Enable KMM_MAP for knsh
...
This also removes kconfig warning:
Normalize icicle/knsh
.config:248:warning: symbol value '' invalid for ARCH_KMAP_VBASE
.config:248:warning: symbol value '' invalid for ARCH_KMAP_VBASE
2023-06-07 21:04:57 +08:00
GD32-MCU
fdfc25cf56
add sdio driver for GD32F4
2023-06-07 16:43:55 +08:00
Ville Juven
0a9279f672
MPFS: Use NuttX SBI for Kernel mode
2023-06-07 01:48:15 +08:00
Lucas Saavedra Vaz
81cfd73770
board/xtensa/esp32-devkitc: Add nxdiag config
...
Adds defconfig that enables nxdiag with relevant options for the ESP32-DevKitC. Also updates the board documentation.
2023-06-03 13:20:01 +08:00
Petro Karashchenko
cddc558bb5
sim/ostest: enable priority inheritance testing
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-06-02 20:08:33 -03:00
Masayuki Ishikawa
766e0a3b05
boards: Enable NFS to test virtio-mmio-net
...
Summary:
- This commit enables NFS to test virtio-mmio-net
Impact:
- None
Testing:
- Tested with qemu-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-06-02 16:28:34 +08:00
Tiago Medicci Serrano
223c5a3722
xtensa/esp32_esp32s2_esp32s3: enable syslog bufferring
...
By enabling the syslog buffering on xtensa-based devices, it's
possible to ensure concurrent tasks will not mess with the syslog
messages.
2023-06-02 10:17:54 +08:00
raiden00pl
235e0e92a8
boards/nrf52-feather: fix typo in I2C1 initialization
2023-06-01 18:34:54 +03:00
Alexander Merkle
c661e26e86
board: add CortexR52 FVP AEMv8R platform
...
see board/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/readme.txt
Port is highly based on fvp-v8r AARCH32 port.
2023-06-01 09:51:03 -03:00
Xiang Xiao
b63b83396b
sim/kasan: Enable mempool and backtrace
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-01 08:19:04 +03:00
Xiang Xiao
905867d38c
sim/adb: Enable tlfs, mempool and backtrace
...
to improve the build coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-01 08:19:04 +03:00
Ville Juven
223cc6d1f4
mpfs/corespi: Add driver for CoreSPI
...
Adds a driver for an FPGA fabric / CoreSPI implementation.
Supports multiple instances, assuming they reside in some base address,
offsettable by a constant value.
2023-05-31 15:52:56 -03:00
raiden00pl
58ad290b0e
boards/nrf5340-dk: add MCUboot configurations for the app core
...
Added configurations:
- mcuboot_loader_cpuapp - MCUboot loader
- mcuboot_app_cpuapp - MCUboot compatible application.
Needs to be signed manually:
imgtool.py sign nuttx.hex nuttx_img.hex --align 8 -v 1.0.0 -H 0x200 -S 0x70000 --pad-header --pad
2023-05-31 23:12:21 +08:00
raiden00pl
d0942f5cb3
nrf53: add MCUboot support
2023-05-31 23:12:21 +08:00
raiden00pl
ebfd0b22f9
boards/nrf53: unify linker scripts
...
Unify linker scripts:
- use the same name for linker scripts
- merge RPTUN linker scripts with standard linker scripts
2023-05-31 23:12:21 +08:00
raiden00pl
37cdfeed9b
boards/nrf52840-dk: add MCUboot configurations
...
Added configurations:
- mcuboot_loader - MCUboot loader
- mcuboot_app - MCUboot compatible application.
Needs to be signed manually:
imgtool.py sign nuttx.hex nuttx_img.hex --align 8 -v 1.0.0 -H 0x200 -S 0x30000 --pad-header --pad
2023-05-31 10:44:08 +08:00
raiden00pl
3c0ce99c01
boards/nrf52832-dk: add MCUboot configurations
...
Added configurations:
- mcuboot_loader - MCUboot loader
- mcuboot_loader_minimal - MCUboot loader optimised for FLASH usage.
Further optimization can be achieved by CONFIG_LTO_FULL=y.
- mcuboot_app - MCUboot compatible application.
Needs to be signed manually:
imgtool.py sign nuttx.hex nuttx_img.hex --align 8 -v 1.0.0 -H 0x200 -S 0x30000 --pad-header --pad
2023-05-31 10:44:08 +08:00
raiden00pl
1facea635b
nrf52: add MCUboot support
2023-05-31 10:44:08 +08:00
raiden00pl
4650c9f756
Documentation: move boards/nrf52 readmes to Documentation
2023-05-30 19:25:30 -07:00
raiden00pl
da4c7703db
Documentation: move boards/nrf53 readmes to Documentation
2023-05-30 19:25:30 -07:00
Eero Nurkkala
a0bde84c9a
risc-v/mpfs: integrate fpga i2c driver
...
This incorporates an fpga i2c driver into the existing i2c driver.
This fpga i2c works almost 100% as the MSS i2c, but the difference
is that the fpga driver terminates all transactions with a stop
sent -interrupt. That needs to be handled.
Fpga clock source is also different, act accordingly.
SEC2TICK(10) is an overkill to any app, use just one second instead.
modifyreg32s are simplified as well, no need to clear and set
as set is enough.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2023-05-29 20:45:01 +08:00
Michal Lenc
f4d409b3e5
boards/samv7/common: add type member to mtd_partition_s structure
...
Board related code may use different mounts for MTD device (block
character for one, SmartFS for another) if required by the board.
Additional type member was therefore added to mtd_partition_s structure
in order to support this.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-05-29 13:50:34 +03:00
Roberto Bucher
547e0a051f
DIR/Complementary PWM possible on PE08 and PE10
2023-05-27 20:22:01 -03:00
Roy Feng
bcd776b2a7
Fix build issues for ESP32 SoftAP mode
2023-05-27 23:54:55 +09:00
Lucas Saavedra Vaz
5f1dca63ae
arch/xtensa/esp32: Add missing SPI Flash ROM functions
...
Add missing ROM functions and clear source files
2023-05-27 03:16:20 +08:00
raiden00pl
b9f9ba2600
boards/nrf52840-dongle: add usb support and usbnsh example
...
This board is designed to work as a USB dongle, from now it is possible.
2023-05-27 03:15:40 +08:00
raiden00pl
e06ce27f56
boards/nrf5340-dk: add mx25 memory support
...
From now on-board QSPI memory is supported.
2023-05-25 22:41:34 +08:00
chao an
6f87bcc9ac
sabre-6quad/coredump: add coredump config to enable ci check
...
How to setup coredump ?
1. Build config coredump:
$ ./tools/configure.sh ./boards/arm/imx6/sabre-6quad/configs/coredump
$ make
2. Run qemu and get the coredump snapshot:
$ qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel ./nuttx -s
ABCDGHIJKNOPQ
NuttShell (NSH) NuttX-10.4.0
nsh> coredump
[CPU0] [ 6] Start coredump:
[CPU0] [ 6] 5A5601013D03FF077F454C4601010100C0000304002800C00D003420036000070400053400200008200A4000000420030034C024200001D8092004E00200601A
[CPU0] [ 6] 060C0000E85D831040030018200E400300072003403C601F06100000F8518310400340574003E0041F00142003025683106003A000E0081F005A201B4003A000
[CPU0] [ 6] E0071F03987F831040030060200E4003E0041F209003288A8310400300B820104003E0041F061C0000D09283104003609C2003C01F00202006007C2003000320
[CPU0] [ 6] 0308435055302049444C45200BE02700E0333BE01B0040A70094200340CFE0576BE0070040730006200340000424A782101420030474A482102020074137400B
[CPU0] [ 6] 0030200B4027422309F51880108E8A80107F0161AA600040BFE102670031E01FBF4053E00300E0233BE02B0040A7E10267E02C6B403BE05700436B019319A167
[CPU0] [ 6] 200F20005A560100A703FF010000200000202003007C20030003200308435055322049444C45200BE0170000022003E00300E0233BE02B0040A7009420030001
[CPU0] [ 6] 2003E02F6BE007B3E04C00025683102005E0080040BFE102670033E01FBF402FE00300E0233BE02B0040A7E10267E02C6BE007B3E04C00005AE1196706687077
[CPU0] [ 6] 6F726B00E01CBF00042003E00300A03BE0500040A7C167A06BE01CA7E00300E007B3E0170042FF05BC748310785C213B00005A560100F303FF0A000074A48210
[CPU0] [ 6] 38748310242007010100E00D0008987F8310998C8010A4200303FF000020201260004008007C200300032003076E73685F6D61696E200AE0180000052003E003
[CPU0] [ 6] 00E0233BE02B0040A70094200340DFE02F6BE007B3E0170000022003078480831088998310200A0200F08E2007200FC1674003400004CC8A8310042007006420
[CPU0] [ 6] 030028200BE1176707636F726564756D70200AE0180000062003E00300E0233BE02B0040A7C167E02F6BE007B3E017000BDC458310E0988310780A0000415B03
[CPU0] [ 6] 6C9A8310416B408B4133408F01788F217BA000405F00B0202F02EB21816003035F0000602012E0EB000100005A5601002103FF0E000000005E831000A27C3F00
[CPU0] [ 6] 005080200DE0FF00E0FF00E0FF00E0CA000100005A5601001203FF010000E0FF00E0FF00E0FF00E0DA000100005A5601005403FF01000020000838748310D037
[CPU0] [ 6] 8310DF200B0487328010C8200B400F400720120000400B00AB2017005F200B04432B80101520030002200B0101012004E00600028137806033E0FF00E0FF00E0
[CPU0] [ 6] FF00E083000100005A560100F203FF010000600007808310BC8F8310DF200A088732801084FFFFFFA0200F0006200F04848A83105F200704E92D8110F1200340
[CPU0] [ 6] 1303108C8310202200FF200A0900988E8310FD248010F7A01B061BD3801054AC826033C0004023403304CDD2801001200FE00300030FA2801020061200C15080
[CPU0] [ 6] 103081821089678010A18E8310B35CE0092B400F0333EC8010404F4003200EE0640040C34003407B0D08F781107F7B801071F28010A99480C340000291938060
[CPU0] [ 6] 2340AB4003400B05A1928010F883E005AF01F99080DF40174003009DA00F00642003400F0071A00F013F692063200B018D37E00163E0FF00E0FF00E02E000100
[CPU0] [ 6] 005A5601003A03FF010000600003589083102006E0080001F092801707636F726564756D70200A600003EFBEADDEE0FF03E0FF03E0FF03E01B032342E07A0001
[CPU0] [ 6] 00005A560101C003FF010000E095000BF08E83100927801054AC8210400B201201005F2003400BE00717E0CB0040DBE007E7E00FFF40170055200F0043201720
[CPU0] [ 6] 0A6023401F4017400006111D8010207183600F047D40831018200B4023E003470794818210D91A8010E0174701E43FE00173403306F49A8310DF4C8160170448
[CPU0] [ 6] 99831041201704CE1F841002200704CD3F81100C2007049D34811040201B200A05002EF781106C200B008D200B001D201F05893E81107978806F000A200300D8
[CPU0] [ 6] 204F01D57B800F00882027400300F1E0020F009F202B40434027C06B122F798010789B8310F803000008040000C89683600F04277A80108C200700BC2037202A
[CPU0] [ 6] 01008F202B20060200D092200F000820082003006C20470730A7821000FCFFFF201160000533208110D0072008201F410340230020202301B12220BB200B2019
[CPU0] [ 6] 010006200301992420DF0323000001200B01001C805740034037400340420000208F60000504000534002040166000046BE88110F0213F200A000040AB00FF20
[CPU0] [ 6] 0000E120E7400B020B188160174000400F201A00FF402B048517811065200340FB201260B000FD203303F7528110408300A9A00700E84083E00200033F698010
[CPU0] [ 6] 401B018D37814720005A5601000800090100006000010000
[CPU0] [ 6] Finish coredump (Compression Enabled).
3. Copy the hex body and save to file:
$ cat elf.dump
[CPU0] [ 6] 5A5601013D03FF077F454C4601010100C0000304002800C00D003420036000070400053400200008200A4000000420030034C024200001D8092004E00200601A
...
[CPU0] [ 6] 401B018D37814720005A5601000800090100006000010000
4. Run tools/coredump.py to convert hex dump to elf coredump:
$ ./tools/coredump.py elf.dump
Chunk #1 is compressed, 317 bytes (original size: 1023 bytes)
...
Chunk #10 is compressed, 8 bytes (original size: 9 bytes)
$ ls elf.core
elf.core
5. Pass core(elf.core) and bin elf(nuttx) to gdb:
!!(Toolchain(arm-none-eabi-gdb) version must be newer than 11.3) !!
$ arm-none-eabi-gdb -c elf.core nuttx
GNU gdb (Arm GNU Toolchain 11.3.Rel1) 12.1.90.20220802-git
...
Reading symbols from nuttx...
[New process 6]
[New process 1]
[New process 2]
[New process 3]
[New process 4]
[New process 5]
[New process 6]
Core was generated by `'.
#0 0x10808a8e in up_idle () at chip/imx_idle.c:61
61 }
[Current thread is 1 (process 6)]
(gdb)
(gdb) info thread
Id Target Id Frame
* 1 process 6 0x10808a8e in up_idle () at chip/imx_idle.c:61
2 process 1 0x10808a8e in up_idle () at chip/imx_idle.c:61
3 process 2 0x00000000 in ?? ()
4 process 3 0x00000000 in ?? ()
5 process 4 up_switch_context (tcb=0x1082a474 <g_idletcb>, rtcb=rtcb@entry=0x10837438) at common/arm_switchcontext.c:95
6 process 5 up_switch_context (tcb=0x10838ef0, rtcb=rtcb@entry=0x10838000) at common/arm_switchcontext.c:95
7 process 6 elf_emit_tcb_note (cinfo=0x10839a6c, tcb=0x10838ef0) at libelf/libelf_coredump.c:272
(gdb) thread 6
[Switching to thread 6 (process 5)]
#0 up_switch_context (tcb=0x10838ef0, rtcb=rtcb@entry=0x10838000) at common/arm_switchcontext.c:95
95 arm_switchcontext(&rtcb->xcp.regs, tcb->xcp.regs);
(gdb) bt
#0 up_switch_context (tcb=0x10838ef0, rtcb=rtcb@entry=0x10838000) at common/arm_switchcontext.c:95
#1 0x10803286 in nxsem_wait (sem=0x10838fbc) at semaphore/sem_wait.c:176
#2 0x10812de8 in nxsched_waitpid (pid=pid@entry=6, stat_loc=stat_loc@entry=0x10838a84, options=options@entry=4) at sched/sched_waitpid.c:169
#3 0x10812df6 in waitpid (pid=pid@entry=6, stat_loc=stat_loc@entry=0x10838a84, options=options@entry=4) at sched/sched_waitpid.c:639
#4 0x1080d31a in nsh_builtin (vtbl=vtbl@entry=0x10838c10, cmd=0x10838e98 <error: Cannot access memory at address 0x10838e98>, argv=argv@entry=0x10838adc, redirfile=redirfile@entry=0x0, oflags=oflags@entry=0) at nsh_builtin.c:162
#5 0x1080a20e in nsh_execute (oflags=0, redirfile=0x0, argv=0x10838adc, argc=1, vtbl=0x10838c10) at nsh_parse.c:641
#6 nsh_parse_command (vtbl=vtbl@entry=0x10838c10, cmdline=<optimized out>) at nsh_parse.c:2742
#7 0x1080a510 in nsh_parse (vtbl=vtbl@entry=0x10838c10, cmdline=cmdline@entry=0x10838e98 <error: Cannot access memory at address 0x10838e98>) at nsh_parse.c:2826
#8 0x10809390 in nsh_session (pstate=0x10838c10, login=login@entry=1, argc=argc@entry=1, argv=argv@entry=0x108383f8) at nsh_session.c:245
#9 0x108090f8 in nsh_consolemain (argc=argc@entry=1, argv=argv@entry=0x108383f8) at nsh_consolemain.c:71
#10 0x1080909c in nsh_main (argc=1, argv=0x108383f8) at nsh_main.c:74
#11 0x1080693e in nxtask_startup (entrypt=0x10809071 <nsh_main>, argc=1, argv=0x108383f8) at sched/task_startup.c:70
#12 0x1080378c in nxtask_start () at task/task_start.c:134
#13 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Signed-off-by: chao an <anchao@xiaomi.com>
2023-05-25 20:42:04 +08:00
chao an
86bf7d9bec
sched/misc: Add support for coredump in assert
...
Add coredump support to collect the stacks and registers of all threads when asserting
Signed-off-by: chao an <anchao@xiaomi.com>
2023-05-25 20:42:04 +08:00
Michael Jung
efa2a95163
Update stm32l562e-dk:nsh
...
- Update TrustedFirmare-M instructions to latest version of STM32CubeL5
- Increase idle thread stack size to not overflow during system init
- Select ARCH_HAVE_TRUSTZONE for STM32L5
- Set CONFIG_ARCH_TRUSTZONE_NONSECURE for stm32l562e-dk:nsh, since NuttX
is running in the Non-secure world.
See https://github.com/apache/nuttx/issues/9316
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2023-05-25 16:04:30 +08:00
raiden00pl
7cf52139e8
boards/stm32f0l0g0: rework boards to not use CONFIG_STM32F0L0G0_USE_LEGACY_PINMAP=y
...
Continuation to PR #8992
2023-05-24 22:30:45 +08:00
raiden00pl
934602b76e
boards/thingy53: add usb example
...
The board can act as an USB composite device. For now CDCACM and RNDIS are supported.
2023-05-24 09:54:55 +08:00
raiden00pl
04fa008018
boards/nrf5340-dk: add usb example
...
The board can act as an USB composite device. For now CDCACM and RNDIS are supported.
2023-05-24 09:54:55 +08:00
Tiago Medicci Serrano
1bc4b8d7b2
esp32s3/wifi: enable SMP by default on Wi-Fi-related defconfigs
...
In order to enhance the Wi-Fi performance, enable SMP by default to
make use of the dual-core functionality of the ESP32-S3.
2023-05-24 00:37:46 +08:00
Tiago Medicci Serrano
63364a52ff
esp32s3/spiflash: pause other CPU before SPI flash operations
...
Whenever a SPI flash operation is going to take place, it's
necessary to disable both the instruction and data cache. In order
to avoid the other CPU (if SMP is enabled) to retrieve data from
the SPI flash, it needs to be paused until the current SPI flash
operation finishes. All the code that "pauses" the other CPU (in
fact, the CPU spins until `up_cpu_resume` is called) needs to run
from the instruction RAM.
2023-05-24 00:37:46 +08:00
raiden00pl
218aa63af3
boards/nrf53: introduce common folder
...
This is an initial step towards moving common logic for NRF53 boards into one place.
At this point, only initialization of the TIMER has been moved.
2023-05-24 00:04:28 +08:00
raiden00pl
f646664cfb
boards/nrf52: introduce common folder
...
This is an initial step towards moving common logic for NRF52 boards into one place.
At this point, only initialization of the TIMER has been moved.
2023-05-24 00:04:28 +08:00
Tiago Medicci Serrano
c60d59d825
esp32s3: add dedicated interrupt stack for ESP32-S3 by default
...
This config also prevents crashes due to the commit 6be363f
, which
fix a race condition in multi-threaded write/read of the serial
driver, but increases stack size.
2023-05-23 13:39:50 +08:00
simbit18
e4ffce3355
Fix Kconfig style
...
Remove spaces from Kconfig files
2023-05-23 00:03:25 +08:00
Xiang Xiao
7990f90915
Indent the define statement by two spaces
...
follow the code style convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-21 09:52:08 -03:00
zhangyuan21
2049ca69b0
arch/arm64: Modify ld to ensure that the bss section is aligned to 8 bytes
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-05-19 21:38:07 -07:00
raiden00pl
c497576ebf
boards/nrf53: add initial support for Thingy:53 board
2023-05-19 17:42:29 +08:00
raiden00pl
be7ee904e2
boards/nrf52: add initial support for Thingy:52 board
2023-05-19 17:42:17 +08:00
raiden00pl
3930c70954
nrf5340-dk: cosmetic
2023-05-19 01:03:18 +08:00
raiden00pl
444488fcf2
nrf5340-audio-dk: cosmetic
2023-05-19 01:03:18 +08:00
chao an
6be363ff35
drivers/serial: fix race condition in multi-thread write
...
if multiple threads are doing serial read/write at the same time,
the driver will only wake up one of the thread, which will cause
other threads fail to be woken up in time and cause blocking
Signed-off-by: chao an <anchao@xiaomi.com>
2023-05-17 07:56:08 +02:00