Commit Graph

15740 Commits

Author SHA1 Message Date
Yilin Sun 4570a9047d [bsp][lpc55sxx] GNU toolchain: fix broken port.
1 - The current linker flags undefines `Reset_Handler' and uses `entry()' as
default entry point (specified by `-e'), which will cause a invalid reset
vector in the image without proper crt0 init assembly routine.

2 - The default startup files provided by NXP violate the crt0 assumption
that bss section will be filled with zero unless macro `__STARTUP_CLEAR_BSS'
is defined. This will cause RTT hook funtion pointers set to non-NULL values at
kernel start, thus successfully passes the `RT_nnnn_HOOK_CALL` checks
and jumps to an invalid pointer.

3 - The default heap size used by TCB and kernel objects are set by
linker file macros, which is 0x400 (1024 bytes). The size is too small
for main task and the allocation will fail before the first task being created.

This patch restores Reset_Handler as default reset vector and executes
entry by replacing __START from newlib, defines the
`__STARTUP_CLEAR_BSS` macro to forcibly zeroize the bss section to avoid
unexpected hard faults, set proper heap sizes based on the SRAM sizes.
Some unused compiler/linker flags are also removed or replaced to avoid
future confusion.

The heap sizes for different devices are:
* LPC55(S)69/LPC55(S)28:            64kB
* LPC55(S)06/LPC55(S)16/LPC55(S)36: 32kB

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
Yilin Sun 7be9ae16b3 [bsp][lpc55sxx] Add RTT constant table sections to GNU lds.
The following RTT constant table sections are missing from the linker
script which will cause non-functional image:

* .rti_fn*
* FSymTab
* VSymTab

Add these sections after .text sections.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
Yilin Sun d7c05bfe8d [bsp][lpc55sxx] Update default configs for LPC5500 series.
Fixes compilation errors on mainline RTT versions.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
zhao maosheng 49b17d01ac preventing erroneous optimization of rt_ioremap_early 2024-02-06 18:34:53 -05:00
Shicheng Chu cfcc72ee8a
[bsp][stm32] add English README for stm32h5 2024-02-04 09:54:27 -05:00
yangpeng 25d3136d02 fix MDK AC5 build warnings 2024-02-03 21:43:08 -05:00
kurisaw d5e2df46e5 [bsp][hmi-board] Optimize hardware driver configuration and trim the project file volume 2024-02-03 16:47:32 +08:00
Meco Man e0155f47a6 [ci][bsp][pico] add lvgl attachconfig file 2024-02-02 21:23:01 +08:00
Meco Man 74d7ca7dbd [bsp][pico] add board/Kconfig 2024-02-01 21:29:15 +08:00
yandld bfa2f7ca57 [bsp][nxp] add mcxn947 2024-02-01 06:56:41 +08:00
kurisaw b68957113c [bsp][renesas] Optimize startup check script structure 2024-01-29 17:38:14 +08:00
flyingcys a07442edf9
add cvitek/c906_little (#8514) 2024-01-29 09:13:21 +08:00
Shicheng Chu c9abc1ba25
[bsp][pico]: support pwm adc iic for pico rtduino (#8512) 2024-01-28 21:02:26 +08:00
flyingcys 06d3f29035
fix bl808-d0 && cv1800b compile error (#8513) 2024-01-28 16:05:52 +08:00
flyingcys 3f41bd95d1
add libcpu/risc-v/rv64 (#8511) 2024-01-28 13:39:39 +08:00
yangpengya b3da34b784
[bsp][stm32]完善stm32g0系列部分外设中断处理 (#8509) 2024-01-27 09:56:52 +08:00
rcitachi 0c96b26c23
[sys_bind] [signalfd] update (#8507) 2024-01-26 22:14:02 +08:00
idings 0e409a6eb1 [libc][tools] fix compile error on python2 env 2024-01-26 18:32:28 +08:00
Macro 3d3761f3e2
[bsp/phytium] aarch32 and aarch64 config update && eth device support (#8506) 2024-01-26 18:31:35 +08:00
Rbb666 0a8a5a155b
[bsp][ifx]fix set RTC time failed bug
Co-authored-by: Meco Man <920369182@qq.com>
2024-01-25 00:00:10 +08:00
kurisaw ac84f65e73 add bsp ci check and other modify with rt-spark 2024-01-23 16:57:03 +08:00
kurisaw 125c9684cd [bsp][renesas] Added the file change detection script 2024-01-23 16:57:03 +08:00
Rbb666 74be1633ae [tools]修复rt-studio导入bsp工程缺失{cross_toolchain_flags}字段问题 2024-01-22 17:09:54 +08:00
Meco Man add8e01967 [bsp][ci][pico] add RTduino attach config checking 2024-01-21 19:47:51 +08:00
Meco Man fa64b08064 [bsp][pico] remove meaningless dependencies of board.h 2024-01-21 19:47:51 +08:00
yuanzihao b87b4cbde5
[BSP][GD32]add gd32407v-lckfb (#8496) 2024-01-21 01:13:30 +08:00
Shicheng Chu 3ea8e08e2d
[bsp][stm32]: Add ADC and PWM support for H5 (#8495) 2024-01-20 19:30:03 +08:00
wirano 8d32b057c6 fix:fix startip_gcc.c entry point 2024-01-20 01:40:23 +08:00
kurisaw edd7a5d176 update the soft i2c configuration 2024-01-18 11:57:51 +08:00
kurisaw 345ce24e31 [bsp][renesas] RTduino configuration update
sync update

some optimize

[bsp][driver] Updates the naming convention of the i2c configuration item
2024-01-18 11:57:51 +08:00
Shicheng Chu 20cdc391fc
[bsp][pico]: add rtc driver (#8492) 2024-01-16 14:01:19 +08:00
yangpengya 2a68f70094
[bsp][hc32]更正pin和usart初始化顺序(bug fix)
#8480
#8458
2024-01-16 01:00:09 +08:00
Shell e4be19eb8f [style] renaming to _console_take/release 2024-01-16 00:59:18 +08:00
Shell 396a52cedb fixup: static anaylysis CI 2024-01-16 00:59:18 +08:00
Shell f6fce5f8d7 [kservice] MT-safe output support (kprintf/kputs)
Signed-off-by: Shell <smokewood@qq.com>
2024-01-16 00:59:18 +08:00
zhangyan 447a22a21d
[bsp/phytium]修改文档,适配aarch64 (#8488) 2024-01-13 23:01:55 +08:00
Shell 8da86e718f [cpu] remove assert for recursion for #8475
Signed-off-by: Shell <smokewood@qq.com>
2024-01-12 00:12:52 +08:00
yangpeng dfd4ae5464 [bsp][stm32]fix stm32f2 usart driver 2024-01-11 23:58:46 +08:00
Rbb666 8b5831cb64 [bsp][stm32]fix stm32f469 sdram not enable problem. 2024-01-10 18:12:57 +08:00
Meco Man fa2881ecd3 [ci][bsp] add strict mode 2024-01-10 18:08:09 +08:00
fangjianzhou 10b16273b8
[drivers][core] 完善设备模型 (#8384) 2024-01-09 23:10:42 +08:00
Shell cc157baf23
[kernel] fixup of data racing accessing percpu objects (#8475)
Signed-off-by: Shell <smokewood@qq.com>
2024-01-09 23:09:49 +08:00
vacabun acaa23052f
[ci][bsp_build]attachconfig add scons args parsing (#8464) 2024-01-09 22:03:32 +08:00
Jamie 48244f25f8
[hc32] Add some bsp drivers. (#8480) 2024-01-09 21:56:37 +08:00
Meco Man 58a159a0d6 [finsh] support to check static thread size
增加检查finsh线程实际使用是否超过当前设定的线程大小
2024-01-09 14:29:55 +08:00
GSunwinder db5bdb1ffa
[BSP] Support YD-CH32V307VCT6 (#8473) 2024-01-09 02:38:44 +08:00
Meco Man 74ac685b9a [stm32] fix missing headfer files 2024-01-08 18:54:43 +08:00
Meco Man 980619ed2c [ci][arduino] add 9 in 1 sensor shield package check 2024-01-08 18:52:49 +08:00
lzh 1531705b9a code format adjustment 2024-01-08 18:40:36 +08:00
lzh 35a43ac102 scripts update && new standalone vertion adaption 2024-01-08 18:40:36 +08:00