Xiang Xiao
eddd90de78
poll: pollsetup should notify only one fd passd by caller
...
since it's redundant to iterate the whole fds array in setup
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-11-21 09:07:17 +01:00
Rodrigo Sim
a3e3e0b1ec
stm32f401rc-rs485: Add buttons support
2023-11-18 17:07:32 -08:00
raiden00pl
014029c649
boards: add support for ODrive V3.6 board
2023-11-18 17:07:20 -08:00
Jorge Guzman
46b8b057da
linum-stm32h753bi: Add support to RTC and alarm
...
Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2023-11-18 18:38:41 -03:00
raiden00pl
ca88513a0c
boards/nrf9160-dk: enable GNSS for modem_ns config
2023-11-16 20:32:41 -08:00
raiden00pl
c53211afb9
boards/nrf9160-dk: add board specific modem configuration
2023-11-16 20:32:41 -08:00
raiden00pl
b14b8c6db3
boards/thingy91: add board specific modem configuration
2023-11-16 20:32:41 -08:00
Masayuki Ishikawa
991c5029a0
boards: sabre-6quad: Fix cxxtest issue
...
Summary:
- Fixes a linker issue in https://github.com/apache/nuttx/pull/8244 by disabling compiler optimization.
- Adjusts CONFIG_DEFAULT_TASK_STACKSIZE to 4096 to ensure proper functioning of cxxtest.
Impact:
- The changes may slightly affect performance due to disabled optimizations
but are necessary for cxxtest stability.
Testing:
- Successfully tested on QEMU-8.1.2 with arm gcc 12.3.Rel1,
confirming resolution of the linker issue and stable operation of cxxtest.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-11-15 03:52:26 -08:00
raiden00pl
c0ffcca0e8
boards: remove obsolete CONFIG_EXAMPLES_FOC_IPHASE_ADC option
2023-11-15 03:43:25 -08:00
raiden00pl
99513ac23e
drivers/foc: return scaling factor for phase currents and BEMF via ioctl
...
These values are board-specific properties that must be known on the application side.
Until now, these values had to be hardcoded on the application side.
2023-11-14 04:34:49 -08:00
raiden00pl
7d99f01cf7
drivers/foc: get hardware information via lower-half interface
2023-11-14 04:34:49 -08:00
Takumi Ando
c076cb1bef
rp2040: pwm: Fix errors at CONFIG_PWM_NCHANNELS=1
...
Perhaps it has never been tested with CONFIG_PWM_NCHANNELS=1.
Signed-off-by: Takumi Ando <t-ando@advaly.co.jp>
2023-11-13 11:40:22 +01:00
Rodrigo Sim
66ccaed5ce
stm32f4/stm32f401rc-rs485: add support to userleds
2023-11-12 16:58:31 -08:00
Jorge Guzman
82af87f896
stm32h7/linum-stm32h753bi: Added suport to userlerds library.
...
Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2023-11-11 20:02:53 -08:00
Janne Rosberg
7f48c185c8
sama5d2-xult: add support for QSPI flash and nxffs
...
Add support for onboard qspi flash with nxffs fs
Signed-off-by: Janne Rosberg <janne.rosberg@offcode.fi>
2023-11-09 23:59:33 +08:00
raiden00pl
ede4b6b0ab
boards/b-g431b-esc1: rework board to not use CONFIG_STM32_USE_LEGACY_PINMAP=y
2023-11-03 22:25:46 +08:00
yinshengkai
d0a5489ac5
sched: explicitly select the cpuload clock source configuration
...
Different configurations require different dependencies.
Explicitly select dependencies to avoid automatically selecting inappropriate configurations.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-11-01 09:27:56 +08:00
SPRESENSE
2f1b4a49ce
boards: cxd56xx: Register cxd5610 gnss driver
...
Register device file for cxd5610 gnss driver.
2023-10-31 09:18:18 +01:00
SPRESENSE
0ee2bb51b8
boards: cxd56xx: Add cxd5610 gnss lowerhalf driver
...
Add cxd5610 gnss lowerhalf driver with i2c interface.
2023-10-31 09:18:18 +01:00
SPRESENSE
f49fa466b6
boards: cxd56xx: Add cxd5610 gnss driver
...
Add cxd5610 gnss driver as board-specific sensor driver.
2023-10-31 09:18:18 +01:00
Jorge Guzman
66df15b965
boards/stm32: add support to LINUM-STM32H753BI board
...
The LINUM-STM32H753BI is a board with RS485, RS232, SD Card, CAN,
SD Card, USB, Ethernet, LCD, etc.
Signed-off-by" Jorge Guzman jorge.gzm@gmail.com
ci: correction in nsh defconfig file of LINUM-STM32H753BI
2023-10-30 13:56:40 -03:00
raiden00pl
56529d2944
Documentation: migrate the rest boards
...
- migrated /README are removed from /boards
- there are a lot of READMEs that should be further converted to rst.
At the moment they are moved to Documentation/platforms and included in rst files
2023-10-26 18:13:34 -03:00
raiden00pl
d77dff786b
fix broken CI
...
rename missing CONFIG_SYSTEM_RAMTEST to CONFIG_TESTING_RAMTEST
2023-10-26 14:51:01 -03:00
chenrun1
de17f43481
boards:Modify test "ramtest" path
...
Based on the PR#2161 change, we need to modify the macro switch in most boards to configure ramtest.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-26 13:17:35 +02:00
simbit18
37729540c0
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-10-26 01:53:58 +08:00
chao an
3cadf6642a
kernel: replace all usleep to nxsig_usleep in kernel space
...
syscall cannot be called from kernel space
Signed-off-by: chao an <anchao@xiaomi.com>
2023-10-25 15:46:03 +08:00
Alan Carvalho de Assis
95800a7f54
boards: Rename shiftgame to brickmatch
...
This patch will rename the shiftgame to brickmatch and will add
support to initialize brickmatch automatically on esp32-devkitc.
2023-10-24 13:54:32 +08:00
Rodrigo Sim
21ba49408c
boards/stm32: add support to STM32F401RC-RS485 board
...
The STM32F401RC-RS485 is a board with RS485 support, SD Card, buttons,
leds, temperature sensor, adc and etc.
Signed-off-by: Rodrigo Sim rcsim10@gmail.com
2023-10-23 14:28:27 +08:00
GD32-MCU
6e94f7432f
add gd32f470i board support
2023-10-21 11:45:03 -03:00
chao an
fa943c11b3
cmake: correct cmake rule file name
...
The rule of cmake file name should be CMakeLists.txt not CMakeList.txt
Signed-off-by: chao an <anchao@xiaomi.com>
2023-10-21 11:00:27 +08:00
Xiang Xiao
04f834290c
ucans32k146/se05x: Refresh defconfig after https://github.com/apache/nuttx-apps/pull/2131
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-10-19 12:37:42 +08:00
makejian
7d6c529e88
sim/crypto: Use mbedtls default configuration without special check
...
depends on patch https://github.com/apache/nuttx-apps/pull/2131
Signed-off-by: makejian <makejian@xiaomi.com>
2023-10-18 21:18:42 +08:00
Alan Carvalho de Assis
444b6d9635
boards: Update all boards that were using CONFIG_NET_LL_GUARDSIZE=50
2023-10-16 08:55:21 +08:00
Philippe Leduc
f38cdb09b4
Add support for SPI through i.MX8MP ecspi module.
...
Configure SPI for Verdin evaluation board
2023-10-09 18:04:50 -04:00
raiden00pl
dbe10a0fc8
boards: simplify the enable condition for up_perf_init
2023-10-03 12:53:10 +08:00
Hank Wu
f144169f44
Initialize led driver during bringup for nucleo-f446re board.
2023-10-01 19:33:55 +08:00
raiden00pl
cb04c0a928
boards/nrf52: remove CONFIG_ARMV7M_SYSTICK form tickless configurations
2023-09-29 21:02:46 +08:00
raiden00pl
3f1417ef8d
boards: add nrf9160-dk board support (nrf52840 chip)
2023-09-25 23:06:39 +08:00
Xiang Xiao
29ec45036d
boards/arm/tlsr82: Fix apps/testing/ostest/setvbuf.c:48: undefined reference to `fopen'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-24 19:32:55 -04:00
raiden00pl
7f2fe65749
thingy53: assign separate TWI instances to SPI and I2C
2023-09-24 19:41:31 +08:00
raiden00pl
064f311a9d
thingy53: cosmetics
2023-09-24 19:41:31 +08:00
raiden00pl
367a5002ae
thingy53: add i2ctools support
2023-09-24 19:41:31 +08:00
raiden00pl
4314feaa0b
thingy53: add rgbled support
2023-09-24 19:41:31 +08:00
raiden00pl
11a3484e86
boards: add initial support for thingy91 board (nrf9160 and nrf52840 chips)
2023-09-24 19:38:47 +08:00
Theo
52096aeb80
Add activation of SPI0 on arduino due
2023-09-23 01:46:23 +08:00
raiden00pl
3ad3b66e11
boards/thingy52: use RTT console as default
...
External JLink is required to program the board, so the console via RTT
is available anyway. It is much more convenient to use than soldering the
P4 connector and working with an external UART converter.
2023-09-22 19:46:43 +08:00
raiden00pl
59cf80cf90
boards/nucleo-h745zi: access CM4 core NSH over uart rpmsg
...
Command on the CM7 core:
nsh-cm7> cu -l /dev/ttyproxy
NuttShell (NSH) NuttX-10.4.0
nsh-cm4>
2023-09-22 19:46:26 +08:00
Daniel P. Carvalho
f0bc20c815
Fix I2C1 pinout.
2023-09-22 00:54:07 +08:00
simbit18
4f985f4367
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-09-22 00:35:48 +08:00
simbit18
34bb0b6544
Fix nuttx coding style
...
Remove TABs
Remove spaces
Fix indentation
2023-09-21 10:03:13 -04:00
ThomasNS
a2c806027f
fix led panic feature
2023-09-21 00:35:12 +08:00
Philippe Leduc
b47f240b5f
Use standard arm-none-eabi toolchain by default.
2023-09-20 17:26:35 +08:00
xiao
1487aa267e
add Artery at32
...
check nxstyle
check nxstyle
2023-09-20 02:07:55 +08:00
Xiang Xiao
8dbe86084e
Remove FAR from source code under 32bit arch and board
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-16 19:12:13 +03:00
Daniel Appiagyei
5bfda12634
c++ compatibility: rename reserved c++ keywords 'public' and 'this'
2023-09-16 19:45:02 +08:00
Alan Carvalho de Assis
0f73199de6
board/stm32f777zit6-meadow: Add support to F7 Core Compute
...
This patch add basic support to Meadow F7 Core Compute board.
The board profile "f7corecomp" include support to USB Console
and SD Card.
2023-09-16 14:32:53 +08:00
Petro Karashchenko
057bfd3748
boards/arm/samv7: fix return values in GPIO based encoder driver
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00
liaoao
a2ca68aaa7
qemu:fix ci error
...
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-09-14 15:19:59 +08:00
simbit18
50e6dcb1e0
Fix nuttx coding style
...
Correct forming guard names
2023-09-13 22:49:38 +08:00
liaoao
a2b9cbffc2
qemu: get reg and irq from devicetree node rather than macro
...
fdt address is at 0x4000000, so it needs to be reserved at ld script.
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-09-12 21:59:26 +08:00
Andre Heinemans
329e050c30
Added NXP SE05x support (secure element)
2023-09-09 15:54:08 +08:00
SPRESENSE
a015aa4fca
boards: cxd56xx: Add board-specific driver for bmi270
2023-09-09 00:46:24 +08:00
ThomasNS
109247e723
add buttons to stm32f411e-diso
2023-09-09 00:18:56 +08:00
trns1997
153137a258
Add userleds and autoleds to the stm32f411e-disco board
2023-09-08 01:30:54 +08:00
simbit18
74b4672b76
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-09-08 01:13:53 +08:00
Michal Lenc
c2bc3dfb12
samv7: add support for SD card detection from CD/DAT3 line
...
Some SD card connectors do not have separate card detection pin. In that
case card detection has to be done on CD/DAT3 data line. This means
software (i.e. architecture level driver) has to take care of pin
configuration switching (pin has to be set as data pin in case of
transfer and as interrupt card detection pin when there is no action
on data line).
This commit adds CD/DAT3 line card detection support for SAMv7 MCU.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-09-08 01:13:36 +08:00
Philippe Leduc
87cec56154
Handle GPIO IRQs
...
Add board buttons
2023-09-06 12:30:35 +08:00
Philippe Leduc
5b7c948aef
Add GPIO
...
Add userleds
2023-09-06 12:30:35 +08:00
zhangyuan21
0efd4d0e12
usbdev: Split usbdev descriptor information
...
The class device only handles descriptor information specific to the class,
and shared descriptor information is passed through parameters and
handled by the composite driver.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-06 02:29:32 +08:00
Xiang Xiao
7f3a76c290
Replace strlen with sizeof for kconfig string
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-02 16:26:23 +03:00
Alan Carvalho de Assis
c27c33e9a9
Run refresh.sh to update all board configs
2023-09-02 14:45:44 +08:00
Michal Lenc
dc83526368
samv7: include mpu.h in sam_boot_image.c to avoid compilation warnings
...
Header file mpu.h was not included although mpu_control() function
was used.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-08-31 18:07:40 +03:00
Philippe Leduc
98e998b934
Add i2c support for the i.MX8MP
...
Enable INA219 on the Verdin board
2023-08-31 10:35:46 -03:00
chao an
664927c86e
mm/alloc: remove all unnecessary cast for alloc
...
Fix the minor style issue and remove unnecessary cast
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-30 14:34:20 +08:00
cuiziwei
4ec7af779d
nuttx/boards:init_array.* needs to be executed in order
...
When I try to set priorities in certain programs, such as init_priority(HIGH_PRIORITY), I've noticed that during linking, there's no guarantee that the programs will be compiled in the sequence I've specified based on priority. This has led to some runtime errors in my program.
I realized that in the ld file, when initializing dynamic arrays, there's no assurance of initializing init_array.* before init_array. This has resulted in runtime errors in the program. Consequently, I've rearranged the init_array.* in the ld file of NuttX to be placed before init_array and added a SORT operation to init_array.* to ensure accurate initialization based on priorities during linking.
2023-08-29 22:54:37 +08:00
chao an
b60f01a55b
inode/i_private: remove all unnecessary cast for i_private
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 08:58:07 +02:00
chao an
7aa45305b7
fs/inode: remove all unnecessary check for filep/inode
...
Since VFS layer already contains sanity checks, so remove unnecessary lower half checks
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-29 09:47:11 +08:00
Alan Carvalho de Assis
610a06cf7c
stm32f7/stm32f769i-disco: Add common board support
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
51983159af
stm32f7/stm32f746-ws: Add common board support
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
04286eb191
stm32f7/stm32f746g-disco: Add common board support
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
4dcceb00cb
stm32f7/steval-eth001v1: Add common board support
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
0aeb17b973
stm32f7/nucleo-144: Add common board support
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
b41f526fa6
stm32f7: Add support to ProjectLab base board
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
69a0c28557
stm32f777zit6-meadow: Fix I2C1 pinout
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
3d45cf8bfc
stm32f7/common: Add support to BMI270 sensor
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
e40fae408c
stm32f7/common: Add light sensor BH1750
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
fd10727f13
stm32f777zit6-meadow: Modify to support common board drivers
2023-08-28 21:03:19 +03:00
Alan Carvalho de Assis
0e914506da
boards/stm32f7: Add Common Board Drivers support
2023-08-28 21:03:19 +03:00
Xiang Xiao
47faeeb360
tls: Move task_tls_alloc and task_tls_destruct to libc
...
so task_tls_destruct can be called from usrspace, which is required by:
https://github.com/apache/nuttx/pull/10288
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-28 11:02:18 +03:00
makejian
98bb66998b
spresense/lte: use mbedtls version configured
...
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-28 01:48:47 +08:00
raiden00pl
af4a065efb
nrf52840-dk: add lsm9ds1 sensor support
2023-08-27 10:05:05 +08:00
Alexis Christoforides
033f265e53
Meadow.OS source code migration - Part 1 - Take 2
...
This patch starts to implement the ability to build Meadow.OS for the Meadow F7 board with the NuttX mainline. It will be followed by more patches, progressively enabling full Meadow.OS functionality. This configuration is a work in progress.
The Meadow.OS source code is needed to build this configuration. Meadow.OS is being open-sourced under the Apache 2.0 license. A prototype of the source code release and integration with NuttX is at https://github.com/WildernessLabs/Meadow.OS/tree/prototype
This is the second revision of this patch, as the first one (https://github.com/apache/nuttx/pull/9997 ) was causing build issues on NuttX CI and was reverted.
This should only impact the Meadow F7 board configurations.
No testing to be done, as the configuration is under development.
2023-08-26 08:49:17 +02:00
raiden00pl
81a9a2e5e0
boards/stm32h7: normalize configurations
2023-08-26 03:35:32 +08:00
raiden00pl
5407dfccc3
boards: disable CM4 for stm32h745i-disco and stm32h747i-disco
2023-08-26 03:35:32 +08:00
raiden00pl
03b058dddc
boards/stm32h7: add nucleo-h745zi
2023-08-26 03:35:32 +08:00
SPRESENSE
f7400a857d
drivers/audio/cxd56: Move cxd56 sources into arch/cxd56xx
...
CXD56 audio functions are inside of the CXD56.
So implementation of it should be under arch directory.
2023-08-26 01:20:32 +08:00
SPRESENSE
7d0d6234eb
sensors: Move SCU-specific bmp280 sensor into spresense board
...
Move SCU-specific bmp280 sensor into spresense board layer.
2023-08-25 17:06:00 +08:00
SPRESENSE
ffcea1da4f
sensors: Move SCU-specific bmi160 sensor into spresense board
...
Move SCU-specific bmi160 sensor into spresense board layer.
2023-08-25 17:06:00 +08:00
SPRESENSE
795dcee521
sensors: Move SCU-specific ak09912 sensor into spresense board
...
Move SCU-specific ak09912 sensor into spresense board layer.
Rename a function name to register SCU sensor driver
from ak09912_register to ak09912_scu_register.
2023-08-25 17:06:00 +08:00
raiden00pl
9117cf44e1
Documentation: migrate STM32F1
2023-08-25 00:11:05 +08:00
raiden00pl
00db279c00
Documentation: migrate STM32F4
2023-08-24 12:07:40 -03:00
SPRESENSE
0953d0cbb5
boards: cxd56xx: Fix charger and gauge initialize functions
...
Fix the function definitions to match the prototype declarations.
2023-08-24 20:11:20 +08:00
Philippe Leduc
e084c52e12
Add i.MX8MP Cortex-M7 port for NuttX
2023-08-24 20:10:48 +08:00
raiden00pl
a4637613d8
Documentation: migrate STM32F7
2023-08-24 17:56:59 +08:00
raiden00pl
c3f8753ecd
Documentation: migrate STM32L4
2023-08-24 17:56:39 +08:00
raiden00pl
32ddfe918d
Documentation: migrate STM32L5
2023-08-23 23:39:25 +08:00
raiden00pl
635488b04a
Documentation: migrate STM32U5
2023-08-23 23:38:56 +08:00
raiden00pl
87b028c227
Documentation: migrate STM32F3
2023-08-23 23:38:16 +08:00
raiden00pl
2b6f8ede4b
Documentation: migrate STM32L1
2023-08-23 23:29:50 +08:00
raiden00pl
d3b727eec3
Documentation: migrate STM32F2
2023-08-23 23:29:08 +08:00
raiden00pl
fe874d1d5c
Documentation: migrate STM32H7
2023-08-23 23:23:08 +08:00
raiden00pl
a630f9f210
Documentation: migrate STM32G4
2023-08-23 23:22:41 +08:00
raiden00pl
8a03b886dd
Documentation: migrate STM32WB
2023-08-23 23:22:14 +08:00
raiden00pl
77716ee264
Documentation: migrate STM32L0
2023-08-23 23:21:54 +08:00
raiden00pl
44f288a37c
Documentation: migrate STM32G0
2023-08-23 23:20:52 +08:00
raiden00pl
8da255309b
Documentation: migrate STM32F0
2023-08-23 23:20:08 +08:00
raiden00pl
81118db95d
Documenation: migrate XMC4
2023-08-23 12:12:14 +08:00
Masayuki Ishikawa
cc906e28e4
boards: Fix QEMU_VIRTIO_MMIO_NUM
...
Summary:
- I noticed that device discovery for virtio-mmio devices does not
work without bus=virtio-mmio-bus.x option. Without this option,
qemu assigns the virtio device into the virtio-mmio space
in reverse order automatically.
- To fix this issue, we must specify the correct numbers for the
target machines. (i.e. arm32/64->32, rv32/64->8)
Impact:
- None
Testing:
- Tested with qemu-7.2.4
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-08-22 20:26:10 +08:00
raiden00pl
72a0b19141
boards/nrf5340-dk: enable rpmsg uart for rptun configurations
2023-08-21 17:34:36 +08:00
raiden00pl
187a067866
arch/nrf53/rptun: remove dependency on DEV_SIMPLE_ADDRENV
2023-08-21 17:34:36 +08:00
raiden00pl
74cc036536
boards/nrf53: add missing shmem section
2023-08-21 17:34:36 +08:00
fangxinyong
6c8b0ba9f3
libc/netdb: add dependence to net ip config
...
avoid to invalid enabled if no net ip config
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-21 13:01:04 +08:00
Xiang Xiao
90f8315432
arch: Remove up_netinitialize
...
since this api change to xxx_netinitialize
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-20 14:33:17 +03:00
raiden00pl
3350609a8a
boards/arduino-nano-33ble{-rev2}: use bool for leds state
2023-08-18 20:06:22 +08:00
simbit18
e374f327c1
Fix Kconfig style
...
Remove spaces from Kconfig
2023-08-18 08:13:26 +02:00
wangming9
8cee6f0cc8
boards/arm/qemu: Add qemu board for ARM
...
See boards/arm/qemu/qemu-armv7a/README.txt for details
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-08-15 23:56:41 +08:00
raiden00pl
ae6067fb29
boards/stm32h7: HCLK and ACLK are delivered from SYSCLK not CPUCLK
2023-08-14 23:40:46 +08:00
raiden00pl
a1d7b2961d
boards/nrf52: add Arduino Nano 33 BLE Rev2 board
2023-08-14 20:42:59 +08:00
Brian Doherty
f444de0882
Initial port to Arduino Nano 33 BLE.
2023-08-14 11:11:50 +08:00
wanggang26
92eeaa4277
enable CONFIG_BOARDCTL for ofloader
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-08-13 11:43:43 -03:00
Xiang Xiao
b183114d43
arch/arm: Change the default value to ARCH_TRUSTZONE_NONSECURE
...
since nuttx normally run inside the non secure execution environment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-13 08:43:01 +02:00
Alexander Lunev
73867b9759
boards/arm/stm32h7/stm32h745i-disco: supported external SDRAM
...
Supported external SDRAM (MT48LC4M32B2B5-6AIT:L) on STM32H745I-DISCO dev board.
Though MT48LC4M32B2B5-6AIT:L SDRAM itself provides 32-bit data bus, STM32H745I-DISCO board
routes only DQ[15:0] bits. Thus only half of the memory can be accessed: the accessible memory
configuration is only 1 Meg x 16 x 4 banks instead of 1 Meg x 32 x 4 banks.
Thus the accessible memory size is 8 MBytes.
Testing:
nsh> ramtest -a 0xD0000000 -s 8388608
RAMTest: Marching ones: d0000000 8388608
RAMTest: Marching zeroes: d0000000 8388608
RAMTest: Pattern test: d0000000 8388608 55555555 aaaaaaaa
RAMTest: Pattern test: d0000000 8388608 66666666 99999999
RAMTest: Pattern test: d0000000 8388608 33333333 cccccccc
RAMTest: Address-in-address test: d0000000 8388608
nsh>
2023-08-12 18:18:23 +08:00
Xiang Xiao
4bb30ab0c1
freedom-k28f/nshsdusb: Remove CONFIG_NETDB_BUFSIZE
...
since it isn't really used by this config
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-12 00:36:52 +03:00
Alan Carvalho de Assis
9d51024434
Revert "Meadow.OS source code migration - Part 1"
...
It is causing error in the mainline:
boards/arm/stm32f7/.../src/Meadow.OS/espcp/Kconfig: No such file or directory
This reverts commit 24e37ec3e8
.
2023-08-12 00:36:31 +03:00
Alexis Christoforides
24e37ec3e8
Meadow.OS source code migration - Part 1
2023-08-11 16:37:10 -03:00
Peter van der Perk
d582e4d37e
boards: imxrt teensy-4.x/imxrt1064: Enable dma for lpi2c/lpspi
2023-08-11 13:41:49 -03:00
Peter van der Perk
c63cb4c2f3
boards: ucans32k146: Enable lpi2c/lpspi dma in can config
2023-08-11 13:41:49 -03:00
Peter van der Perk
2a6c5ed728
board: mr-canhubk3: enable lpi2c/lpspi edma for net config
2023-08-11 13:41:49 -03:00
Xiang Xiao
6b4e5c0d15
binfmt: Change the default of BINFMT_DISABLE to DEFAULT_SMALL
...
to optimize the image size when and DEFAULT_SMALL is enabled
and refresh the defconfig in boards/
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-10 11:35:41 +03:00
Alan Carvalho de Assis
5417e193d6
stm32f7-meadow: Update usbnsh defconfig to include QSPI Flash
2023-08-09 11:06:23 +08:00
Alan Carvalho de Assis
1a57847e04
stm32f7-meadow: Fix QUADSPI call function
...
New board uses a different flash model
2023-08-09 11:06:23 +08:00
xuxin19
4cd916d16b
cmake:support armv7-r and tms570 chip
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-07 10:06:05 -07:00
SPRESENSE
bfc51d6a87
boards: cxd56xx: Fix duplicate make target
...
Remove a build warning by target 'cxd56_audio.o' given more than once
in the same rule.
2023-08-07 12:45:37 +02:00
SPRESENSE
72b9d97560
boards: cxd56xx: Disable NET_ARP from lte defconfig
...
LTE does not support ARP, and so disable CONFIG_NET_ARP.
2023-08-07 02:18:19 -07:00
anjiahao
3a808bab19
support stm32f429i-disco run open flash loader
...
We can use the driver in nuttx to download
files with debugger
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-08-05 12:40:02 -07:00
cuiziwei
25eb09c3bb
nuttx/boards:add KEEP to *(.init_array .init_array.*)
...
replace *(.init_array .init_array.*) with KEEP(*(.init_array .init_array.*)).
The KEEP statement within a linker script will instruct the linker to keep the specified section, even if no symbols inside it are referenced. This statement is used within the SECTIONS section of the linker script. This becomes relevant when garbage collection is performed at link time, enabled by passing the --gc-sections switch to the linker. The KEEP statement instructs the linker to use the specified section as a root node when creating a dependency graph, looking for unused sections. Essentially forcing the section to be marked as used.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2023-08-05 05:02:25 -07:00
simbit18
2868e28837
fix incorrect comments
...
stm32_bh1750.c: barometer -> ambient light sensor
xmc4_max6675.c: barometer -> temperature
esp32_max6675.c: barometer -> temperature
esp32s2_max6675.c: barometer -> temperature
2023-08-03 08:04:51 -07:00
raiden00pl
4f83811a09
nucleo-f446re: add systemview configuration
2023-08-02 08:05:37 -07:00
simbit18
1b8714f79f
fix incorrect comments
...
boards/arm/cxd56xx/drivers/sensors/bmi160_scu.c: fix incorrect comments to the Right of Statements.
drivers/sensors/ak09912.c: fix incorrect function description ak09912_putreg8 and ak09912_getreg8
2023-08-01 13:24:16 -04:00
simbit18
8f744592d5
Fix nuttx coding style
...
Fix Comments
2023-07-31 10:54:53 -03:00
SPRESENSE
f04dce1314
boards: cxd56xx: Fix issue that GPO is not iniitalized by watchdog
...
Fix an issue that GPO pins is not iniitalized by watchdog reboot.
If the watchdog expires during LTE is in use, it causes the LTE
to remain powered on and fails to launch after reboot.
2023-07-31 03:28:43 -07:00
Xiang Xiao
fc5e85da1b
drivers: Format pointer through "%p" for kthread_create
...
to remove the unnecessary cast and unify the usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-30 23:40:59 +03: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
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
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
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
raiden00pl
f3e22c0bb0
boards/nrf9160-dk: update modem configuration
2023-07-23 19:56: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
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
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
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
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
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
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
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
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
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
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
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
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
GD32-MCU
fdfc25cf56
add sdio driver for GD32F4
2023-06-07 16:43:55 +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
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
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
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
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
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
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
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
Xiang Xiao
7a8cf7ff70
Indent the include statement by two spaces
...
follow the coding style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-16 12:34:32 -03:00
raiden00pl
7986a28216
boards/stm32h7: enable HSI48 if OTG clock is HSI48
2023-05-16 03:11:29 +08:00
simbit18
aa0cb3f76f
Fix typos (s/FRQUENCY/FREQUENCY/)
...
Fix various typos FRQUENCY -> FREQUENCY
2023-05-13 00:31:26 +08:00
raiden00pl
26536f9f55
boards/stm32f7: rework boards to not use CONFIG_STM32F7_USE_LEGACY_PINMAP=y
...
In reference to PR #8992
2023-05-12 11:43:08 +08:00
raiden00pl
0623300b49
boards/stm32h7: rework boards to not use CONFIG_STM32H7_USE_LEGACY_PINMAP=y
...
In reference to PR #8992
2023-05-12 01:04:48 +08:00
simbit18
0149fa05ad
boards/arm/tlsr82/tlsr8278adk80d/Kconfig: Fix Kconfig style
...
Remove spaces from Kconfig files
Add TABs
2023-05-10 22:51:11 +08:00