Commit Graph

7068 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
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
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
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
zhangyan 447a22a21d
[bsp/phytium]修改文档,适配aarch64 (#8488) 2024-01-13 23:01:55 +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
Jamie 48244f25f8
[hc32] Add some bsp drivers. (#8480) 2024-01-09 21:56:37 +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
lzh f7b85a824e xmac and readme update 2024-01-08 18:40:36 +08:00
lzh 1028000f9a link problem solved 2024-01-08 18:40:36 +08:00
Meco Man 179c39d68d [stm32][f469-discovery][ci] support lvgl checking 2024-01-07 22:46:12 +08:00
Meco Man 8c5df321d8 [stm32] fix stm32 bsp warnings and errors 2024-01-07 22:46:12 +08:00
Meco Man 2d1f46d31c [bsp][allwinner tina] fix drv_gpio header file included 2024-01-07 22:46:12 +08:00
Meco Man 0a3a10e5bb [stm32] fxi gpio header files included 2024-01-07 22:46:12 +08:00
Bernard Xiong db2cfd335f
Revert "Add zynq7000 bsp" (#8463) 2024-01-05 16:31:01 +08:00
Ting Liu a275a92b4a [bsp][imxrt1060]: set XIP_BOOT_HEADER_DCD_ENABLE=1
Otherwise board failed to boot if enabling LVGL with NXP GUI-Guider

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2024-01-05 12:05:02 +08:00
yangpeng 7c07a97479 [bsp][hc32]更正pin和usart初始化顺序 2024-01-02 19:06:13 +08:00
褚仕成 32be3c4a30 [bsp][stm32]: add stm32h563 rtduino 2023-12-30 18:57:36 +08:00
Meco Man 8aacf19bb9 [rtduino][ci] add all libraries into CI check list 2023-12-29 22:18:39 +08:00
a1012112796 c92e437a69 Add zynq7000 bsp 2023-12-29 22:13:09 +08:00
Shicheng Chu be2119e0f5
[bsp][stm32]: add stm32h503 rtduino (#8448) 2023-12-29 19:46:28 +08:00
Meco Man 1bb277ef4b [ci] add online packages checking in stm32f411 nucleo 2023-12-28 23:51:56 +08:00
guotong ma 2d55efba84 [ci][attachconfig]support subfolders 2023-12-28 23:51:56 +08:00
Xian Wu 22b9de6f1d
[synwit] add variant_dir for libraries building 2023-12-28 15:04:59 +08:00
Meco Man 0ad5c9585d [stm32][rt-spark] support nano version 2023-12-28 14:03:29 +08:00
Yuqiang Wang 975af5fd54
[ci][stm32f407-spark] add attach config CI check (#8431) 2023-12-27 23:06:46 +08:00
Meco Man c2e4b73114 [ci][stm32f407-explorer] add file system CI checking 2023-12-27 18:43:40 +08:00
Xian Wu 6360253c12
Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432) 2023-12-27 18:41:52 +08:00
Meco Man 7b4592c2d1 [ci][stm32l475-pandora] add attach CI checking for sdcard 2023-12-27 18:17:30 +08:00
Meco Man ed4d037d7b [ci][stm32f407] add attach config CI check 2023-12-26 23:13:08 +08:00
yangpengya 76acc4146b
[bsp][stm32]eth driver support phy YT8512C 2023-12-26 20:56:31 +08:00
Xian Wu f4c05e3cc3
make swm341 project running correctly (#8423)
解决 swm341 project 无法正确运行的 bug
2023-12-26 18:58:40 +08:00
Meco Man 37fea9d549 [stm32-pandora] add attach config CI check 2023-12-25 23:24:30 +08:00
1ridic a490fd2391 [bsp][pico] Limit PWM pin selection 2023-12-25 12:24:20 +08:00
Meco Man 58d0db9875 [stm32][ci] add RTduino CI checking 2023-12-25 08:20:58 +08:00
Meco Man eda1ef3b7c [stm32] add nano attach config for CI 2023-12-25 08:20:58 +08:00
vacabun 2693e7e15a
[ci]Add bsp attachconfig check 2023-12-24 22:43:40 +08:00
Meco Man fe35011fc5 [stm32][drv_tim.c] fix errors when TIMx doesn't exist 2023-12-24 20:03:58 +08:00
褚仕成 4a7f41531f [bsp][stm32] add board identification macros 2023-12-24 17:01:41 +08:00
Shicheng Chu 712e94a3cc
[bsp][stm32]: add nucleo-stm32h503rb (#8394) 2023-12-23 22:39:11 +08:00
Z8MAN8 9328ad3215 update .ld and SConstruct files 2023-12-23 15:00:23 +08:00
Z8MAN8 71dad1ccf2 [bsp][pico] add rtduino 2023-12-23 15:00:23 +08:00
Meco Man 4d22242ea5 [stm32][rtduino] add drv_gpio.h for pins_arduino.c 2023-12-23 14:36:30 +08:00
Rbb666 5dd87bc7bb [bsp/renesas]add ek-ra8d1 bsp 2023-12-19 18:00:00 +08:00
Supper Thomas 6d1fdde1ff add tim8 2023-12-18 20:29:56 +08:00
Meco Man 0a1566661f [bsp][stm32] add board identification macros 2023-12-18 20:29:24 +08:00
zhangyan d92cd77117
[bsp/phytium]更新readme说明 (#8381) 2023-12-18 20:27:12 +08:00
Supper Thomas 04b2c81745
[BSP/STM32] add support of RTC in g491 (#8377) 2023-12-17 21:44:25 +08:00
xiaofan 8dee48fdaa ch32_drivers: call rt_hw_pin_init explicitly
Signed-off-by: xiaofan <xfan1024@live.com>
2023-12-16 19:23:10 +08:00
Wangzongqiang 2c1209db21
[bsp/phytium] add dc driver (#8373)
添加[bsp/phytium] DC显示驱动,同步更新配置文件
2023-12-16 19:10:26 +08:00
fangjianzhou b233e29bb6
[libcpu][aarch64] 使用设备树对内存进行初始化 (#8320) 2023-12-16 18:08:11 +08:00
Meco Man 4658267117 [bsp][ci] add attach config files 2023-12-15 18:25:14 +08:00
Xian Wu 4018092baf
update CSL library (#8370) 2023-12-12 18:23:12 +08:00
Fu You a1df90dcf0
[bsp] 修复bsp自带的lvgl移植 (#8357) 2023-12-10 23:22:16 +08:00
fangjianzhou 25bb80b657
[bsp][rk3568] 修改串口波特率 (#8346) 2023-12-10 06:45:14 +08:00
Raman fe11e85eea
AVR32: Software I2C driver: Initial working commit (#8324)
implemented the software I2C drivers for the AVR32 target.
2023-12-09 23:46:12 +08:00
zhugengyu e843561e46
[bsp/phytium] add xhci and pusb2 support with cherryusb port (#8355)
合入基于 CherryUSB 的 XCHI 和 PUSB2 驱动
2023-12-08 20:01:34 +08:00
Supper Thomas 32342c6995
[bsp/stm32g491] add tim and iwdog 2023-12-08 18:01:45 +08:00
Macro f4b2035c03
[bsp/phytium] driver and config update (#8344)
更新驱动代码,完成对新版rt-thread内核的支持工作。更新默认config文件,保证各驱动被顺利添加后,程序能正常运行
2023-12-08 17:57:55 +08:00
Meco Man 1b0dae2bb0 [stm32] support nano version
- G0
- G4
- L0
- L4
2023-12-05 23:22:19 +08:00
zhkag 474a55ea36 【bsp/rt-spark】移除 ETH 并添加 ADC 初始化 2023-12-05 21:48:19 +08:00
Supper Thomas f510a65f93 [bsp/stm32/stm32g491] Add nucleo of stm32g491 2023-12-05 21:33:41 +08:00
Rbb666 21ba08fab2 [bsp][renesas]添加软件i2c配置 2023-12-05 15:04:50 +08:00
Meco Man bb66d1ea50 [bsp][stm32][nano] support nano version
stm32 BSPs to support nano version (RT_USING_NANO)

这个commit支持到stm32f7之前的BSP
2023-12-03 21:25:00 +08:00
Meco Man 860094e893 [stm32] split stm32 drivers as normal and nano drivers
- move all normal drivers (devices framework drivers) into drivers
  folder.
- create nano folder for nano drivers
  nano drivers are only for a simply wrap of the HAL function, and
  not seek for adopting rt-thread devcies framework.
- provide unified nano console and GPIO drivers.
2023-12-03 21:25:00 +08:00
Meco Man 9fec43f0ea correct and format Kconfig 2023-12-03 21:25:00 +08:00
Raman Gopalan d1a1a42ef5 AVR32: drv_gpio: Use Microchip's updated drivers for abstraction 2023-12-02 00:31:51 +08:00
Rbb666 316bb12f7e [bsp][renesas]更新ek-ra6m3驱动列表 2023-12-01 19:37:09 +08:00
kurisaW 91aace98b6 [rtduino][renesas] fix the pwm channel config 2023-12-01 19:36:40 +08:00
Meco Man 031a81a98e [stm32][nano] stm32l475-pandora support nano version 2023-12-01 14:43:05 +08:00
Rbb666 6c48d53636 [bsp][renesas]更新ra8m1驱动支持列表 2023-11-30 18:53:47 +08:00
Z8MAN8 dfde6950df [bsp][c3]: Add macro control to sconscript 2023-11-30 11:43:03 +08:00
Meco Man 53aa771aa5 [stm32][nano] stm32f103-bluepill support nano version 2023-11-30 11:39:34 +08:00
bernard 53acd953ab [bsp][rasp4-32] fix compilation warning 2023-11-29 23:15:59 +08:00
Z8MAN8 71a52d18a7 [bsp][eps32c3]: add pwm driver 2023-11-29 18:05:16 +08:00
geniusgogo 74925f43ed
fix dfs path name overflow. (#8305) 2023-11-28 17:16:21 +08:00
fangjianzhou 249871cbbc
[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221) 2023-11-28 14:20:11 +08:00
Raman 265b79d953
User manual for a AT32UC3B0256 target from MCUZone (#8302) 2023-11-27 22:29:52 +08:00
TamapChn 3ea3f3447e [bsp][stm32] 修复 encoder驱动 编码器数值的计算问题 2023-11-26 18:00:01 +08:00
Shicheng Chu b2e71e470b
[bsp][esp32c3]: add adc driver (#8281) 2023-11-26 15:56:27 +08:00
flyingcys 50f521b528
[bsp]add bl808 wifi driver (#8294) 2023-11-25 22:54:24 +08:00
mengplus 0396b52db0 fix(spi):多个SPI公用一个ops.data 2023-11-23 09:05:45 -05:00
Rbb666 26fbe01ada [bsp][renesas]使用文档添加fsp说明,更新下载选项 2023-11-23 17:21:07 +08:00
hywing 1284adfad8
[bsp][renesas] update the description in RA6M3-HMI-Board BSP Instruction Document :UART7 -> UART9 (#8275) 2023-11-22 16:22:14 +08:00
Robin Chen ddbf2be2bc
enable art-pi spi flash use elmfatfs (#7690) 2023-11-22 16:19:36 +08:00
zhangyan d73fd165b0
[bsp/phytium]Code Update and Refactoring (#8247) 2023-11-21 17:42:23 +08:00
Meco Man df29a13d89
[components] remove vmm (#8269) 2023-11-21 13:41:54 +08:00
Meco Man eff3560d64 [bsp] remove gd32 in the root 2023-11-20 07:34:46 -05:00
hywing d8c96e13c6 [bsp][renesas] add a DAC entry for ra6m3-hmi-board 2023-11-20 05:46:08 -05:00
sheltonyu 41ab3f7535 fixed usb/usart drivers 2023-11-17 04:26:40 -05:00
BetMul 241e7ff083
[bsp] [ESP32_C3]add hwtimer support for ESP32C3 (#8263) 2023-11-17 16:11:37 +08:00
Rbb666 ad2ba4ffa5 [bsp][renesas]添加fal配置文件,修改flash驱动 2023-11-16 17:43:00 +08:00
kk 1b59c20203
[bsp/renesas] update drv_sci_spi.c 修复 ci 报错 (#8261) 2023-11-16 14:46:43 +08:00
Raman 0e82e13cc3
AT32UC3A: Implement initial BSP support for SimpleMachines' Mizar32-B (#8186) 2023-11-16 14:04:21 +08:00
CoderNotCute 4ac9754f5b fix:fix wch startup risks.
1: If IAP has set mstatus to other value, using csrs will not change old value of mstatus in IAP. It should using csrw instead.
2: Reduce the flash size of undefined irq functions.
2023-11-16 14:02:17 +08:00
guozhanxin 35e773d46a [bsp] ra8 update rasc configuration.xml 2023-11-16 13:08:59 +08:00
guozhanxin 75378a4a40 [bsp] ra8 add adc、dac、pwm、spi、rw007 configs 2023-11-16 13:08:59 +08:00
梁生 7a56058c61
[bsp][hc32]优化can驱动和pwm驱动 (#8217)
**为什么提交这份PR (why to submit this PR)**
1. hc32驱动函数和rtt函数声明之间的参数类型不一致,在mdk编译时产生警告。
2. hc32的can设备,在注册时就把can中断使能了。导致can设备在打开前,就会产生中断。
3. hc32的pwm驱动,不支持PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令,导致rt_pwm_set_pulse()函数返回失败。
**你的解决方案是什么 (what is your solution)**
1. 修改hc32驱动函数参数类型和声明一致。
2. 注册can设备时主动禁止can中断,因为打开设备时会主动打开中断。
3. 修改pwm驱动,增加PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令支持。
2023-11-14 09:18:32 -05:00
BetMul a0b6e14f01
ESP32C3 add program ways in Linux (#8237) 2023-11-10 17:49:45 +08:00
sheltonyu ed357aa014
[bsp/at32] 1.add support at32f402/405 series, 2.update emac/rtc/qspi/usb drivers (#8245) 2023-11-09 16:38:19 +08:00
1ridic 063c8f7bec [bsp][pico] Add spi pin selection 2023-11-06 23:27:14 -05:00
zhkag 0f2e586613 修复 bsp/x86 scons --pyconfig-silent 报错 2023-11-06 06:23:09 -05:00
zhkag 3db4b3e4ae 修复 bsp/x86 编译问题 2023-11-06 06:23:09 -05:00
xqyjlj 1b6f0e88a3
🐞 fix: fix d1s smart build (#8212) 2023-11-02 20:16:02 +08:00
1ridic f95eaad8e6 [bps][duo] set RT_USING_SYSTEM_WORKQUEUE by default 2023-11-01 12:02:53 -04:00
Yuqiang Wang ebc9582c07
[bsp][rtduino] 新增HMI-Board对RTduino支持、HMI-Board支持C++特性、修复一些驱动问题 (#8205) 2023-11-01 06:07:46 +08:00
Z8MAN8 a64ccaa295 [bsp][pico] add hwtimer driver 2023-10-31 08:58:09 -04:00
Rbb666 7ace7d0a78 [libcpu][renesas]add cortex-m85 && ek-ra8m1 adapt 2023-10-31 15:09:17 +08:00
tangzz98 acc66c5479
实现MPU抽象层 (#8080)
- 为RT-Thread设计MPU抽象层,支持ARMV7-M,ARMV8-M架构,让用户使用MPU检测栈溢出等内存问题,实现线程内存隔离
- 在components/mp目录下提供通用的API,libcpu目录下提供各处理器架构的具体实现
- 在STM32U575 NUCLEO, STM32H75 NUCLEO开发板测试通过
2023-10-30 08:24:55 -04:00
Shicheng Chu 1554888c0b
[bsp][pico]: add pwm driver (#8178)
Co-authored-by: Meco Man <920369182@qq.com>
2023-10-29 13:17:25 -04:00
sp-cai de779b1804 使 rtconfig.py 支持 EXEC_PATH 路径展开 2023-10-29 13:15:28 -04:00
yby 6f48cb79d1
[bsp] Fixed bug of msp432e401y bsp chip model error after mdk5 open. (#8193) 2023-10-29 13:15:05 -04:00
蒙蒙plus 32ec9e32ec [bsp/air32f103]:修复外部中断无效 2023-10-29 13:13:59 -04:00
flyingcys c701b3e81a
[bsp]update cv1800b drv_uart (#8188) 2023-10-26 09:34:58 +08:00
xqyjlj 3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
guozhanxin 96edf7aeb6 [bsp/stm32f407-spark1] add llvm-arm toolchain support. 2023-10-25 16:49:51 +08:00
Raman Gopalan 53caa15873 AT32UC3B: Update configuration files to define RT_BACKTRACE_LEVEL_MAX_NR 2023-10-24 09:53:48 -04:00
蒙蒙plus 06cfa88941
[bsp/air32]:增加iar_8_40环境支持 (#8175)
Signed-off-by: 程蒙蒙 <chengmeng_2@outlook.com>
2023-10-24 15:26:02 +08:00
sp-cai 6eb7fa2f6c
[bsp][ESP32_C3] 修复数据类型警告 rt_int32_t -> rt_base_t (#8170) 2023-10-23 08:29:15 -04:00
Raman 144e662f42
AT32UC3B: Implement initial GPIO driver and app test function (#8164) 2023-10-23 14:00:07 +08:00