Commit Graph

7404 Commits

Author SHA1 Message Date
ShaquilleLiu af5bd68c58
野火启明6m5驱动完善 2024-06-20 21:42:11 +08:00
latercomer f0e6d772f3 mkdist和sdk_dist支持kconfiglib语法 2024-06-20 14:40:42 +08:00
latercomer fe3c4d456e bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
QTbin 6bd6317f77
[ht32][drv]新增adc、wdt、soft_i2c驱动 2024-06-19 23:00:12 +08:00
Shell 65c9947225
[libcpu] rv64: support for ARCH_REMAP_KERNEL (#9067)
* [libcpu] support for ARCH_REMAP_KERNEL

These changes introduce support for the ARCH_REMAP_KERNEL configuration,
which isolates kernel space in high virtual address regions. This feature
is necessary to enhance memory protection and management by segregating
user and kernel spaces more effectively.

Changes:
- Updated conditional macros to check for ARCH_REMAP_KERNEL instead of
  ARCH_KERNEL_IN_HIGH_VA in board initialization files to reflect the new
  configuration option.
- Modified qemu-virt64-riscv Kconfig and SConstruct files to include and
  utilize ARCH_REMAP_KERNEL.
- Created a new linker script `link_smart.lds` for smart linking in qemu-virt64-riscv.
- Updated rtconfig.py to use a more flexible execution path setup.
- Enhanced user address space definitions in `lwp_arch.h` to support the
  new virtual address mappings.
- Adjusted kernel memory initialization and mapping logic in `c906/mmu.c`
  and `virt64/mmu.c` to account for high virtual address regions.
- Added Kconfig option to enable ARCH_REMAP_KERNEL for RISCV64 architectures.
- Enhanced memory setup functions to support new mapping scheme, including
  updates to early page table setup and address relocation logic.

These modifications ensure that the system can utilize high memory
addresses for the kernel, improving memory isolation and system stability.

Signed-off-by: Shell <smokewood@qq.com>

* fixup: CI run failed

* bsp: default config without using smart

* fixup: static checks

* restore rt_hw_mmu_kernel_map_init for D1

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-06-18 11:15:59 +08:00
zhangyan 842b555358
[bsp/phytium]c++支持,gpio,qspi驱动修改 (#9059)
* GPIO驱动与QSPI驱动适配

* C++支持

* update

---------

Co-authored-by: 张衍 <zhangyan1491@phytium.com.cn>
2024-06-16 15:42:37 +08:00
zhuzhuzhu 58e42caea7
【修改】修改imx6ull-smart中mnt.c的逻辑错误 (#9045)
* Update mnt.c

* Update mnt.c

* Update mnt.c

* Add files via upload

* Update mnt.c

* Update mnt.c
2024-06-13 08:51:57 +08:00
sp-cai 47ee23510c
[BSP] HC32F460 在 SConscript 补充几个源文件 (#9042)
[BSP] HC32F460 工程中增加几个源文件
2024-06-10 16:15:04 +08:00
LaterComer fe950fd1c2
[fixed]qemu-vexpress-a9/drv_smc911x.c没有包含相应的头文件 (#9040)
Update drv_smc911x.c

代码中用到udelay和mdelay函数,但是没有包含头文件
2024-06-07 21:38:16 +08:00
heyuanjie87 f778a66d6e
[bsp/qemu-riscv]修正打开串口后中断被关闭的问题 (#9035) 2024-06-05 09:52:32 +08:00
Fan YANG ca78a4f025 [bsp][hpmicro] remove invalid reference in board KConfig
- removed invalid reference in board KConfig

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-06-04 11:11:58 +08:00
Fan YANG e03342ff6b [bsp][hpmicro] add HPM5300EVK,HPM5301EVKLITE and HPM6800EVK support & update hpm_sdk
- added new boards: hpm5300evk, hpm5301evklite and hpm6800evk
- upgaded hpm_sdk
- driver updates and bugfixes
- add hpmicro BSPs to CI

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-06-03 18:05:20 +08:00
sakumisu 62d321caa0
refactor(drivers/usb):replace rtt usb stack with cherryusb (#8799) 2024-06-02 11:20:13 +08:00
Shicheng Chu aa81fd4a88
[bsp][pico] update README.md (#9018) 2024-05-31 17:34:56 +08:00
Jiading Xu 2fcf151a8e [components][drivers][include][phy] add one more parameter for mulitiple phys
- add parameter phy to specify multiple-phy instance

Signed-off-by: Jiading Xu <Jiading.Xu@hpmicro.com>
2024-05-29 22:22:51 +08:00
WKJay 2fd9ff56dc [BSP][stm32f103-100ask-pro]add ext_sram driver to stm32f103-100ask-pro 2024-05-29 20:19:46 +08:00
lzh 07d7b71345 code format adjustment 2024-05-29 20:18:18 +08:00
lzh b764055018 xmac port code update 2024-05-29 20:18:18 +08:00
lzh 7d7a53ebc1 aarch32 config update tcp pri 12->16 2024-05-29 20:18:18 +08:00
lzh e2c98c9e63 aarch64 config update tcp pri 12->16 2024-05-29 20:18:18 +08:00
lzh 6dc3d7f968 aarch32 menuconfig all update 2024-05-29 20:18:18 +08:00
lzh 65b5735178 ping test e2000d pass 2024-05-29 20:18:18 +08:00
lzh 214f187821 gpio disabled 2024-05-29 20:18:18 +08:00
lzh 601b29967a aarch64 config update all 2024-05-29 20:18:18 +08:00
LZerro 3172d37db7 [BSP][Infineon]Change Readme 2024-05-28 16:39:16 +08:00
Rbb666 ae6a3287e6 Add psoc62、61 config. 2024-05-27 21:20:13 +08:00
LZerro b65b922f6c Adjust the PKG selection position. 2024-05-27 21:20:13 +08:00
LZerro 0d2d5e88c7 Format some file 2024-05-27 21:20:13 +08:00
LZerro 3d6b978ba9 Format some File 2024-05-27 21:20:13 +08:00
LZerro 4b6a60bf1e Add XMC7200 BSP And Make the HAL library as a software package 2024-05-27 21:20:13 +08:00
flyingcys 09a0e4c5f8 update gpio driver 2024-05-27 11:26:09 +08:00
Chen Wang 5dd3b7427a
Accumulated patchsets for bsp/cvitek (#8968)
* bsp: cvitek: kconfig: add wdt for cv18xx_riscv

Add Watchdog timer in Kconfig.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* drv: cvitek: remove using macro from source file

Building of source file should be controlled by SConscript,
but not in source file itself.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp: cvitek: kconfig: add i2c for cv18xx_riscv

Add I2C in Kconfig for c906B.

Note, the IRQ# is different from that of c906L.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp: cvitek: kconfig: add rtc for cv18xx_riscv

Add RTC in Kconfig for c906B.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp: cvitek: fix channel issue for pwm driver

The original code confuses the concepts of controllers and channels.
Fixed it and do some code cleanup.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp:cvitek: add i2c pinmux config for cv18xx_riscv

Pinmux in driver code is controlled by SOC type, bcos driver
code should be general and support all pins defined by SoC.

Pinmux configuration in Kconfig is controlled by BOARD type,
bcos when we operate on board, it does not expose all chip-level
pin signals and we can only use part of them.

Following is I2C signals exported by duo family. Details see
https://milkv.io/docs/duo/overview.

Note: we have not added support for duo-S.

Duo
===

NAME    I2C         CV1800B/GPIO    <PINNAME>__<FUNCNAME>
----    ---         ------------    ---------------------
GP0     I2C0_SCL    XGPIOA[28]      IIC0_SCL__IIC0_SCL
GP1     I2C0_SDA    XGPIOA[29]      IIC0_SDA__IIC0_SDA

GP4     I2C1_SCL    PWR_GPIO[19]    SD1_D2__IIC1_SCL
GP9     I2C1_SCL    PWR_GPIO[18]    SD1_D3__IIC1_SCL
GP11    I2C1_SCL    XGPIOC[10]      PAD_MIPIRX0N__IIC1_SCL
GP5     I2C1_SDA    PWR_GPIO[20]    SD1_D1__IIC1_SDA
GP8     I2C1_SDA    PWR_GPIO[21]    SD1_D0__IIC1_SDA
GP10    I2C1_SDA    XGPIOC[9]       PAD_MIPIRX1P__IIC1_SDA

GP7     I2C3_SCL    PWR_GPIO[22]    SD1_CMD__IIC3_SCL
GP6     I2C3_SDA    PWR_GPIO[23]    SD1_CLK__IIC3_SDA

Duo 256m
========

NAME    I2C         CV1800B/GPIO    <PINNAME>__<FUNCNAME>
----    ---         ------------    ---------------------
GP4     I2C1_SCL    PWR_GPIO[19]    SD1_D2__IIC1_SCL
GP9     I2C1_SCL    PWR_GPIO[18]    SD1_D3__IIC1_SCL
GP5     I2C1_SDA    PWR_GPIO[20]    SD1_D1__IIC1_SDA
GP8     I2C1_SDA    PWR_GPIO[21]    SD1_D0__IIC1_SDA

GP11    I2C2_SCL    XGPIOC[15]      PAD_MIPI_TXP1__IIC2_SCL
GP10    I2C2_SDA    XGPIOC[14]      PAD_MIPI_TXM1__IIC2_SDA

GP7     I2C3_SCL    PWR_GPIO[22]    SD1_CMD__IIC3_SCL
GP6     I2C3_SDA    PWR_GPIO[23]    SD1_CLK__IIC3_SDA

Duo S
=====

NAME    I2C         CV1800B/GPIO    <PINNAME>__<FUNCNAME>
----    ---         ------------    ---------------------

J3-B18  I2C1_SCL    XGPIOB[18]      VIVO_D3__IIC1_SCL
J3-B12  I2C1_SCL    XGPIOB[12]      VIVO_D9__IIC1_SCL
J3-B11  I2C1_SDA    XGPIOB[11]      VIVO_D10__IIC1_SDA

J3-B13  I2C2_SCL    XGPIOB[13]      VIVO_D8__IIC2_SCL
J4-E1   I2C2_SCL    PWR_GPIO[1]     PWR_GPIO1__IIC2_SCL
J3-B14  I2C2_SDA    XGPIOB[14]      VIVO_D7__IIC2_SDA
J4-E2   I2C2_SDA    PWR_GPIO[2]     PWR_GPIO2__IIC2_SDA

J3-B20  I2C4_SCL    XGPIOB[20]      VIVO_D1__IIC4_SCL
J4-B1   I2C4_SCL    XGPIOB[1]       ADC3__IIC4_SCL
J3-B21  I2C4_SDA    XGPIOB[21]      VIVO_D0__IIC4_SDA
J4-B2   I2C4_SDA    XGPIOB[2]       ADC2__IIC4_SDA

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: flyingcys <flyingcys@163.com>

* bsp:cvitek: remove using macro from source file for i2c

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp:cvitek: unify menu message text for i2c as other drivers

Other dirvers has no extra word "HW".

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp:cvitek: add i2c pinmux config for c906_little

Porting what we have done in commit "bsp:cvitek: add i2c pinmux config
for cv18xx_riscv" to c906_little.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: flyingcys <flyingcys@163.com>
Co-authored-by: flyingcys <flyingcys@163.com>
2024-05-22 08:19:07 +08:00
蒙蒙plus 2f559906d6 feat(bsp): hc32L196增加IAR_8.40支持
Signed-off-by: 蒙蒙plus <chengmeng_2@outlook.com>
2024-05-17 18:38:05 -04:00
JamieTx 3d30b56c86 [HC32] Fixed a bug about erase flash. 2024-05-16 19:15:38 -04:00
sheltonyu 194fd6df05 [bsp/at32] 1.fixed f402 uart7/8 pierph clock source error, 2.fixed compiling error of drv_usart_v2.c with no dma 2024-05-16 19:15:17 -04:00
xiao-mang e46333496f
fix specified network card not taking effect with msh's ping error (#8937)
* fix specified network card not taking effect with msh's ping error

* fix specified network card not taking effect with msh's ping error
2024-05-16 15:43:50 +08:00
flyingcys ec8ff90a4a
[bsp/cvitek]update gpio driver (#8946)
update gpio driver
2024-05-13 18:20:57 -04:00
xiao-mang b3277fa704
fix eth error (#8929)
* fix eth error

* fix eth error

* fix eth error

* fix eth error

* fix eth error
2024-05-11 11:10:53 +08:00
Rbb666 5712ff1a32 [renesas][hmi-board]update lvgl config and doc. 2024-05-09 14:44:58 +08:00
LZero 1cac9e92b5 Stm32F411 Blackpill CubeMX delete SPI_NSS 2024-05-09 00:37:10 -04:00
sp-cai 95f0b029b0 [BSP][HC32F460]清理已不再使用的文件
PWM 配置文件 pwm_tmra_config.h 已合并到 pwm_tmr_config.h 了。
2024-05-08 18:09:17 -04:00
WaterFishJ 5f077a6df0 [bsp][at32]修复at32_transmit返回类型错误 2024-05-08 18:08:59 -04:00
liYangYang dbf8a26e6c
[libcpu][aarch64] Fixed the rt_hw_secondary_cpu_bsp_start() bug (#8898)
* fix rt_hw_secondary_cpu_bsp_start() bug

* timer init

* comment
2024-05-08 19:48:17 +08:00
Rbb666 a723014e32
[renesas][hmi-board]Support lvgl-9.x 2024-05-07 21:43:52 -04:00
QTbin 7245dbd54f 修改scons的脚本文件,使其适配更多芯片的工程生成 2024-05-07 02:03:28 -04:00
Meco Man 84f8d209c4 [stm32l4] export env 2024-05-07 13:27:15 +08:00
Meco Man 12ad1703df [bsp][stm32l4] remove local HAL 2024-05-06 21:42:10 +08:00
Meco Man ac45676830 [stm32l4] select PKG_USING_STM32L4_HAL_DRIVER 2024-05-06 21:42:10 +08:00
Meco Man b29b29b205 [stm32l4] remove HAL 2024-05-06 21:42:10 +08:00
Meco Man 0db3cfacda [stm32l4] remove STM32L4xx_HAL/CMSIS 2024-05-06 21:42:10 +08:00
xiao-mang 89164b19a8
fix art-pi smart boot from emmc (#8904)
* fix art-pi smart boot from emmc

* fix art-pi smart boot from emmc

* fix art-pi smart boot from emmc
2024-05-06 13:31:17 +08:00
Meco Man a7a8c59ea9 [stm32l475pandora] format Kconfig 2024-05-05 22:18:34 -04:00
Meco Man 68e92985c7 [stm32] 调整CMSIS-Core软件包宏 2024-05-05 22:18:34 -04:00
Meco Man 341ce50067 [stm32] format Kconfig 2024-05-05 22:18:34 -04:00
SCZeiDan d78429eb8e
[stm32] i2c hard driver fixup:增加硬件I2C传输超时等待时间
问题:
在使用硬件 I2C 驱动进行音频模块 WM8978 配置时,发现连续 rt_i2c_transfer 进行 I2C 传输时发现,连续多次调用 rt_i2c_transfer 会出现丢包现象;溯源发现是每次使用 rt_i2c_transfer 传输2字节,传输频率过高导致底层 HAL_I2C_Master_Seq_Transmit_DMA 报错 HAL_BUSY;

现象:
rt_completion_wait超时等待完成之后,I2C仍处于HAL_I2C_STATE_BUSY_TX状态,且后续第二次运行至HAL_I2C_Master_Seq_Transmit_DMA时会直接返回HAL_BUSY,从而直接 goto out; 退出而不会再次进行超时等待;

* drv_hard_i2c.c: 修复325行缺失'}'语法错误;更改HAL_I2C_xx_Transimt_xx调用中目标设备地址值;i2c_hard_config.h: 添加STM32F系列芯片xx_DMA_CONFIG宏定义;

* 回溯I2C设备地址传参处(msg->addr<<1)修改;

* fixup: 增加硬件I2C传输延时,解决连续传输导致HAL_BUSY状态;
2024-05-04 12:51:27 -04:00
IceBear003 39e6b36bb0 [bsp][ch32v307]添加了适配RT-Thread的全速USB驱动 2024-05-04 01:02:47 -04:00
Junjie Wang b632dc1aaf
[bsp][gd32] 修复串口驱动中由于可能的中断嵌套而导致RB索引异常的问题 2024-05-02 18:57:18 -04:00
Fan Yang c21ba6985d
Fix compiling eror in hpmicro bsp (#8889)
- added 'DEVICE' to rtconfig.py
- fixed compiling error cuased by change in interrupt_gcc.S

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-04-30 20:11:47 +08:00
sheltonyu 0ccc315bce
[bsp/at32] add support at32a403a/a423 series and fix driver issues(uart/dma) 2024-04-30 01:11:18 -04:00
LZerro f190cba0ab
[i2c] adjust the timing for I2C initialization 2024-04-29 20:46:12 -04:00
LZerro a92f971267
[spi] soft_spi_pin_init loop variable is initialized to 0
The loop variable in the function 'drv_soft_spi:xx_pin_init()' is initialized to 0.
2024-04-29 17:49:20 -04:00
chengy2 2aa66b1b4e
[HC32] support HC32F472 & remove residual files 2024-04-29 17:48:47 -04:00
flyingcys 7890e2cb14
[bsp/cvitek]add eth driver 2024-04-29 17:47:50 -04:00
Meco Man e548a99da4 [ci] set at_device package as strict mode 2024-04-29 10:56:05 +08:00
flyingcys aee6048a53
[bsp/cvitek]update cvitek sdhci drvier (#8874)
update cvitek sdhci drvier
2024-04-28 23:07:42 +08:00
xiao-mang bc774190f2
enable poll (#8867)
config poll
2024-04-26 22:25:04 +08:00
SCZeiDan 7ca2ebc51a
[bsp][stm32] fix bugs of i2c hardware drivers
在STM32F429IGTx设备上使用硬件i2c驱动程序师遇到以下几个问题:

语法错误:drv_hard_i2c.c 行67、68中i2c_handle未正常替换过来,估计是上个版本对变量重命名后因为宏定义忽略了此处修改;
语法错误:drv_hard_i2c.c 行326中缺少一个"}"导致编译出错;
初始化i2c设备过程中对双地址选项进行设置时(i2c_handle->Init.OwnAddress2Masks = I2C_OA2_NOMASK),STM32F4系列SOC没有这个配置定义,于是我直接将双地址模式关闭了(i2c_handle->Init.DualAddressMode = I2C_DUALADDRESS_DISABLE);
初始化i2c设备(DMA方式)过程中发现i2c_hard_config.h文件中未定义DMA通道配置;

主要补丁如下:
修复硬件i2c驱动代码中语法错误(drv_hard_i2c.c行67、68、326);
关闭默认i2c双地址模式(drv_hard_i2c.c行75:I2C_DUALADDRESS_DISABLE);
添加硬件i2c驱动配置文件DMA相关配置项,增加对SOC_SERIES_STM32F2、SOC_SERIES_STM32F4、SOC_SERIES_STM32F7系列芯片配置DMA_CHANNEL的适配
2024-04-24 01:42:03 -04:00
flyingcys 2c8c4ccc47
[bsp]support cvitek sdhci drvier (#8849)
support cvitek sdhci drvier
2024-04-24 05:40:22 +08:00
liYangYang 62544df564
[bsp][cvitek] Initialize the Milk-V Duo 256M using the device tree (#8841)
Initialize the board using the device tree
2024-04-23 23:09:45 +08:00
wdfk-prog 184bfb447b
[STM32][SPI-DMA]特定条件下接收错误 2024-04-22 21:15:38 -04:00
Rbb666 e50f064bda
[bsp][renesas]Link script adds finsh related sections. (#8837) 2024-04-22 11:55:45 +08:00
liYangYang f13220d911
[bsp][cvitek] Milk-V Duo 256M Supports running ARM large core and RISCV small core
支持将rtthread.bin和dtb文件合成boot.sd文件,使用uboot直接通过bootcmd命令启动rtthread内核。

支持构建带有小核riscv程序的fip.bin文件,保证在运行arm大核的同时运行小核的riscv程序。
2024-04-21 09:52:47 -04:00
latercomer 3ff2b08d82 [clang-format] 增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化 2024-04-21 01:18:37 -04:00
latercomer 299f6e8ece [bsp][acm32]format utf-8 2024-04-21 01:18:37 -04:00
Siwei Xu 3f434feec9 [bsp][nxp] Add select BSP_USING_PIN for SPI and RW007 driver 2024-04-20 23:46:39 -04:00
Meco Man d68e47eb25 [klibc] organize and renmae macros, and add CI check 2024-04-20 21:52:49 -04:00
Shell 8c4db32d04 fixup: debug 2024-04-19 21:30:12 -04:00
xiao-mang 4ea463d83f fix for art-pi smart 2024-04-19 18:17:20 +08:00
xiao-mang 98204c249b fix for art-pi smart 2024-04-19 18:17:20 +08:00
xiao-mang 4de96450be fix for art-pi smart 2024-04-19 18:17:20 +08:00
Rbb666 61fac62521 [bsp][renesas]fix ra6m3 can't use lcd problem. 2024-04-18 22:51:03 -04:00
Abner cd77f988cd
[bsp][nxp]修改 drv_filesystem_spi_flash 驱动 (#8811)
Co-authored-by: yandld <1453363089@qq.com>
Co-authored-by: Meco Man <920369182@qq.com>
2024-04-18 21:00:49 -04:00
zhangyan de32f35016
[bsp/phytium]部分设备驱动修改 (#8794)
* update

* 修改 SDIF 驱动,支持同时使用 TF 卡和 eMMC,更换飞腾派自启动镜像

* drivers debug

* update

* update

* update config

* update

* modify format

---------

Co-authored-by: 朱耿宇 <zhugengyu@phytium.com.cn>
2024-04-19 08:52:09 +08:00
Yaochenger 6493b2356f [bsp][cvitek] 修正PIN设备的控制宏 2024-04-18 20:34:02 -04:00
Rbb666 3f515f29c5 [bsp][renesas]Modify the mdk template project of ra8. 2024-04-18 20:32:47 -04:00
Rbb666 3c9b7b1f96 [bsp][renesas][stm32]Fix some bsp probelm in 5.1.x. 2024-04-18 20:32:47 -04:00
Yuqiang Wang 204c3253be [bsp][driver][renesas] Unified Renesas SCI driver 2024-04-18 20:21:59 -04:00
QTbin 9229aee1d7
[BSP][HT32]新增合泰ht32f52352和ht32f12366 2024-04-17 23:44:25 -04:00
Abner a2bec29019 [bsp][nxp]增加了drv_filesystem_spi_flash驱动 2024-04-16 18:48:37 +08:00
Abner bbac8e954d [bsp][nxp]增加了drv_filesystem_spi_flash驱动 2024-04-16 18:48:37 +08:00
yandld 47d9c03937 update spi flash mount 2024-04-16 18:48:37 +08:00
Meco Man a225d26a8a [bsp][stm32f103-fire-arbitrary] fix missing header file 2024-04-16 01:39:30 -04:00
Meco Man d10fb37c05 [bsp] revert delete of stm32f407-sparkfire RTduino pinout 2024-04-15 22:41:00 -04:00
liYangYang 9c359fd4c8
[bsp][cvitek] 在Milk-V Duo 256M开发板中支持ARM核运行RT-Thread标准版和Smart版内核 (#8800)
* Supports ARM core of Milk-V Duo 256M development board

* add fip.bin(arm)
2024-04-16 09:49:41 +08:00
yuanzihao 1a8b8522f7
[BSP][STM32]add stm32f407-lckfb-skystar 2024-04-13 08:00:15 -04:00
Yuqiang Wang c6d20e47ac [bsp][renesas] Add HMI rw007 initialization configuration by default 2024-04-13 13:32:30 +08:00
wirano e88bb51fb5 bsp/tm4c123: move i2c clk config to tm4c123_config.c 2024-04-12 19:02:49 -04:00
wirano 5e9257fcd1 bsp/tm4c123: add hardware i2c support 2024-04-12 19:02:49 -04:00
Rbb666 86f1a0d2b2 Improve renesas LCD driver. 2024-04-12 19:01:59 -04:00
Rbb666 5d64ea1ed6 [bsp][renesas]Fix ek-ra8d1 spi binding error problem. 2024-04-12 19:01:59 -04:00
wirano dbce35ba2b bsp/stm32: remove duplicate if condition 2024-04-12 19:01:26 -04:00
Abner d5aff0c963 [bsp][nxp] 增加drv_spi_sample_rw007驱动 2024-04-12 18:35:31 +08:00
Abner 98c6a741c5 [bsp][nxp] 增加drv_spi_sample_rw007驱动 2024-04-12 18:35:31 +08:00
liYangYang 48b86cbb8e
[bsp][zynqmp] 为 DFZU2EG MPSoC 开发板支持标准版和Smart版内核 (#8773)
zynqmp support RT-Thread  and RT-smart
2024-04-12 15:57:06 +08:00
Rbb666 6dbdf9c360 Add ra8 ra_pin_get support. 2024-04-11 18:50:23 -04:00
Rbb666 90f4d94ce8 Add ek-ra8d1 rw007 support. 2024-04-11 18:50:23 -04:00
Rbb666 a93722c3e1 Update ra8 readme. 2024-04-11 18:50:23 -04:00
Rbb666 d2555d2169 [bsp][renesas]Update drv_adc,i2c dirvers. 2024-04-11 18:50:23 -04:00
Rbb666 30c3eb9a56 [bsp][renesas]Fix ek-ra8d1 mdk build error. 2024-04-11 18:50:23 -04:00
Shicheng Chu ca90d3f6c3 [bsp][stm32]fix stm32f103 default console uart name 2024-04-11 18:49:10 -04:00
LZerro e50fbe8b94
[SBP] Stm32F407-rt-spark adapts to RTduino 2024-04-11 18:46:52 -04:00
StackYuan 83bd05391f
[add] Readme doc for stm32h7s7-disco BSP (#8767)
[bsp][stm32] add English version readme doc for BSP stm32h7s7-st-disco.
2024-04-11 14:55:34 +08:00
Rbb666 1497a3117a
[bsp][renesas]Add cortex-r52 rzt2m adaptation 2024-04-10 20:47:53 -04:00
zhangyan 81df7bcdde
[bsp/phytium]中断相关修改 (#8742)
* update smp 4
2024-04-11 00:09:17 +08:00
Shell b14e0c08e1
[bsp/rpi4] fixup startup failure (#8754)
[bsp/rpi4] fixup startup issues

Signed-off-by: Shell <smokewood@qq.com>
2024-04-11 00:02:49 +08:00
StackYuan 87d47bf935 [fix] fixup spaces and add in ci. 2024-04-10 16:04:28 +08:00
StackYuan 187e69a698 [BSP] add bsp for st's new platform stm32h7s7-st-disco.
[drv] STM32H7RSxx_HAL bsp fixed and update.
  [add] bsp stm32h7s7-dk README.md
2024-04-10 16:04:28 +08:00
Yuqiang Wang d08ae0bfd1
[driver][soft-spi] spi device driver framework adds pin init function function
为什么提交这份PR (why to submit this PR)
ps:在设备初始化阶段不应该存在对硬件的操作

你的解决方案是什么 (what is your solution)
ps:添加一个pin_init函数,在spi设备使用时调用该函数来完成硬件引脚的状态初始化,而不是在设备初始化阶段对硬件进行操作,已经在瑞萨HMI上通过验证
2024-04-09 18:33:29 -04:00
flyingcys 62cd7ad961 support cvitek bsp spinor flash 2024-04-09 18:09:54 -04:00
Meco Man 38204386b3
[ci] add vi package checking (#8737)
* [ci] add vi package checking

* [ci] add MultiButton software package checking
2024-04-09 21:36:04 +08:00
Meco Man 9352624c4e [hmi-board][rtduino] remove switchToPWM 2024-04-08 21:14:24 +08:00
flyingcys b1a6508929
[bsp/cvitek]update cv18xx series README.md
update cv18xx series README.md
2024-04-07 12:35:53 -04:00
flyingcys 9c938e51a6
[bsp/cvitek]add gitignore file
提交 cvitek 下大核 被gitignore 编译依赖文件
2024-04-07 09:56:42 -04:00
Siwei Xu dd55489839 [bsp][nxp] Add SPI1 config for FRDM-MCXN947 board 2024-04-06 13:18:06 -04:00
xhackerustc e0e9eb8b15
[nxp/mcxn] add SPI6 support (#8704)
* [bsp][nxp] add missing drv_spi.h

Otherwise when building spi users such as u8g2, gcc will complain can't
find the drv_spi.h.

* [bsp][nxp] enable spi6

* [bsp][nxp] add spi sample code which uses spi6 to loopback

Connect spi6's MISO <--> MSIO, I.E P3_20 and P3_22 with Dupont Line
The sample usage and output would be:

msh >spi_sample
spi rbuf : 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f

spi loopback mode test over!
2024-04-04 20:08:39 -04:00
Zhang 447a10c964 [bsp][nxp] mcxn947基础上去除多余修改: 2024-04-03 17:57:46 -04:00
Zhang 42e01a80a0 [bsp][nxp]基于MCXN947的spi_driver添加spi7读写W25Q64_Flash: 2024-04-03 11:12:19 +08:00
flyingcys 1b857df4e0
support cv181x-riscv for RT-SMART (#8724) 2024-04-03 07:37:45 +08:00
Dyyt587 34fb8d2f10
[bsp][stm32] fix hardware i2c driver bug 2024-04-01 23:21:09 -04:00
zealsoftstudio 79e2946467
[nxp/mcxn] support Ethernet 2024-04-01 18:44:26 -04:00
Jingbao Qiu c24280f6ef [bsp][CV1800B] add SPI driver for CV1800B
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@gmail.com>
2024-04-01 17:41:09 -04:00
白熊 1ea7ddfa9a
[bsp][ch32v307v]添加了硬件iic驱动 2024-04-01 00:40:55 -04:00
Yuqiang Wang 4ceffbf06a
[bsp][renesas] rtduino supports the soft spi switch to pwm function
1.修改drv_gpio.c:R_IOPORT_Open()函数只需执行一次,修改位置为init时执行
2.默认HMI-Board使能rtduino后支持soft spi,通过switch_pwm可切换为pwm功能
2024-03-31 20:31:27 -04:00
wdfk-prog 5cfa9c6390 [bsp][stm32][spi] 优化H7 DMA数据非字节对齐的处理流程 2024-03-31 20:30:56 -04:00
Meco Man 8691ed3767 [pico][ci] add RTduino libraries check 2024-03-31 20:30:10 -04:00
Shicheng Chu e7311d170a
[bsp][rtduino] pico rtduino support spi 2024-03-31 13:59:48 -04:00
liYangYang 9a1996ef59
[bsp][art-pi-smart] 关闭内存对齐检查来避免数据访问异常 2024-03-29 21:43:57 -04:00
Meco Man d2c12e2da8 [RTduino] change the pinout group name 2024-03-29 21:49:13 +08:00
Shell 83e95bdff4
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
flyingcys 40e26f4909
support cv181x c906_little (#8680) 2024-03-28 23:35:54 +08:00
Yuqiang Wang 221e469049 [bsp][renesas] fix FSP could not be recognized after being imported into studio 2024-03-27 18:44:44 -04:00
Yuqiang Wang 9ba6782cde [bsp][renesas] Fixed some problems after importing HMI-Board into studio 2024-03-27 18:44:44 -04:00
liYony 61c1041d47 [rt-smart][art-pi] update imx6ull-smart bsp 2024-03-27 18:40:56 -04:00
Yuqiang Wang f0f9c965b2
[bsp][ch32] Fixed the issue that importing ch32v307 project into studio would not compile (#8678) 2024-03-26 17:43:12 -04:00
Shicheng Chu 3ff4fe5395
[bsp][stm32] drv_rtc.c中包含drv_common.h 避免找不到 error_handle实现 (#8676) 2024-03-26 00:57:03 -04:00
ShaquilleLiu 99dafb1fef
[bsp] frdm-mcxn947 增加dac驱动 (#8667) 2024-03-24 22:52:11 -04:00
0BitBiscuits 2a069bb20a [bsp][renesas]Redundant configuration information is removed 2024-03-24 21:44:59 -04:00
Siwei Xu 809c3687fa [bsp][nxp] Fix menuconfig error in scons created project 2024-03-24 22:27:58 +08:00
Meco Man 3782127116 [bsp] format drivers code 2024-03-24 09:18:25 +08:00
Meco Man 6a9c42a19d [bsp][drv_gpio] fix the error code return when pin number is illegal 2024-03-24 09:18:25 +08:00
kk 2549b82bd6
[pin] pin_read/write rt_uint8_t to rt_ssize_t 2024-03-23 14:50:31 -04:00
Siwei Xu b6f725c7e4 [bsp][nxp] Fix scons command can not found 'sdk_dist' 2024-03-23 14:44:28 -04:00
ShaquilleLiu 0b0baf2e4f
[bsp][nxp]修复frdm_mcxn947上 adc设备无法注册及编译不过问题
驱动的Kconfig中添加 BSP_USING_ADC0 宏信息
芯片级的SConscript中添加缺失的 fsl_lpadc.c 和 fsl_spc.c
2024-03-23 14:43:57 -04:00
tianshnegming 2cb9d2bc94
[bsp][at32]修复由于ADC转换完成标志未清除导致ADC多通道读取时概率性地通道错位 2024-03-23 14:43:09 -04:00
Jisheng Zhang 15190b5972 [bsp][nxp] fix link error when enabling SPI
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.o: in function `spixfer':
rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:150:(.text.spixfer+0x102): undefined reference to `LPSPI_MasterTransferEDMA'
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:160:(.text.spixfer+0x16c): undefined reference to `LPSPI_MasterTransferEDMA'
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.o: in function `rt_hw_spi_init':
rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:211:(.text.rt_hw_spi_init+0x22e): undefined reference to `LPSPI_MasterTransferCreateHandleEDMA'
2024-03-21 23:12:56 -04:00
Shell 1b07378261
[bsp] update config for vexpress a9 (#8652)
Signed-off-by: Shell <smokewood@qq.com>
2024-03-21 20:03:18 +08:00
qiujingbao 0499617556
[bsp][CV1800B] add POR driver which support reboot 2024-03-21 01:13:52 -04:00
Rbb666 f3cbb8d58e [bsp][driver][Infineon]Fix timer interrupt callback conflict 2024-03-21 01:11:39 -04:00
Meco Man 3f26998f9c [bsp] update projects 2024-03-21 11:23:29 +08:00
Evlers e25f287ff3
[bsp][gd32][drivers] add serial v2 and dma driver support 2024-03-20 21:19:26 -04:00
Jingbao Qiu 9e6ca17259 [bsp][CV1800B] add RTC Alarm function for CV1800B
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@gmail.com>
2024-03-20 18:22:20 -04:00
Yuqiang Wang 73850e24c6 Disable unnecessary user menu configuration 2024-03-20 22:43:55 +08:00
Yuqiang Wang 9d4b20c0fa commit 2024-03-20 22:43:55 +08:00
Yuqiang Wang 489e7c3126 keep necessary file for mdk 2024-03-20 22:43:55 +08:00
Yaochenger d3aedc7bf2 [bsp][gd32]Update mdk project 2024-03-20 02:30:16 -04:00
Rbb666 cf77937dac {bsp][Infineon]Update Infineon mdk project. 2024-03-20 02:28:55 -04:00
Ruixuan Zhang bc85f5aaf4
[bsp][stm32]Add stm32l431-tencentos-tiny-EVB_MX+ remaining drivers 2024-03-19 19:06:54 -04:00
StackYuan a582c0cc31 [fix] NXP bsp for RT-Thread 5.1.0 fixed up. 2024-03-19 08:13:00 -04:00
Jiabing c8851d15a8
[bsp][ST]Update mdk project 2024-03-19 08:07:33 -04:00
rbb666 1162b55c86 [bsp][stm32]Update mdk project 2024-03-19 08:04:12 -04:00
Yaochenger 0689748eaf
[bsp] 更新GD32 rtconfig.h中的配置新 2024-03-19 08:02:37 -04:00
rbb666 08d75e613f [bsp][stm32]Update stm32l5 mdk project 2024-03-19 08:01:39 -04:00
Yuqiang Wang 4d7071a1d5 [bsp][stm32] Standardize the pin configuration 2024-03-19 08:01:19 -04:00
Zhang 2b5bff15b0 [bsp][nxp] 在FRDM-MCXN947上增加UART5/UART2并精简代码 2024-03-19 11:15:32 +08:00
Jingbao Qiu 42e8191b34 [bsp][CV1800B] fix cv1800b polarity reversal error
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@gmail.com>
2024-03-18 20:46:43 -04:00
Rbb666 2d7770ecdc [bsp][renesas]Update mdk project 2024-03-18 20:38:58 -04:00
Meco Man 6071e8aa14 [bsp][stm32g474-nucleo][RTduino] support SPI 2024-03-17 12:30:56 -04:00
Meco Man cd1c08b3cd
[bsp][RTduino] format Kconfig (#8621) 2024-03-17 19:49:34 +08:00
Meco Man aa49e8ada9 [bsp][stm32pandora] fix SConscript gramma issues 2024-03-16 23:31:54 -04:00
Meco Man 9ac8b47eb2 [sensor-v2] enable sensor v2
fix the confilcts with sensor v1
2024-03-16 23:31:54 -04:00
Meco Man b3e073864f [stm32][stm32f103-100ask-pro] fix missing drv_gpio.h in spi_flash_init.c 2024-03-16 23:31:40 -04:00
Z8MAN8 d7b66c62de [bsp][bl]update adc driver 2024-03-16 16:21:26 -04:00
Meco Man 7f3f6e9beb [bsp][stm32f469-disc][RTduino] fix Kconfig 2024-03-16 10:21:58 -04:00
Meco Man 7218127a83 [bsp][stm32f072-nucleo][RTduino] support SPI 2024-03-16 10:21:58 -04:00
Ruixuan Zhang 5a6b5be77c
[bsp][stm32] add a new stm32L431_tencentos bsp (#8613) 2024-03-15 22:19:14 -04:00
刘伟 0ff23d8951 [bsp][stm32] eth driver support phy YT8512C 2024-03-15 19:12:46 -04:00
Yuqiang Wang 62b0d4fd2e
[bsp][HMIBoard] config rtduino peripheral with HMI (#8610) 2024-03-14 18:20:33 -04:00
Yuqiang Wang 6aa1442f64 [bsp][renesas] add renesas soft spi driver 2024-03-14 11:38:28 +08:00
zhangyan fad78950ea
[bsp/phytium]Adapter aarch64/aarch32 (#8580) 2024-03-13 18:07:03 +08:00
kurisaW 15125bdba0 [bsp][renesas] add ra8 en docs 2024-03-12 11:04:26 +08:00
Zhang 55a5c20661 [bsp][nxp] 在FRDM-MCXN947上增加UART5/UART2 2024-03-11 18:05:00 +08:00
Meco Man 2b7a4ea7a3 [bsp][nxp][imx] move imx BSPs into nxp/imx folder 2024-03-10 23:19:22 -04:00
Meco Man f71d4f33ea [bsp][nxp][lpc] move lpc BSPs into nxp/lpc folders 2024-03-10 23:19:22 -04:00
Meco Man 46967ef56f [bsp][nxp][mcx] move mcxa/n to nxp/mcx folder 2024-03-10 23:19:22 -04:00
Meco Man adaa44c911 [bsp][stm32f469-disco] support RTduino SPI 2024-03-09 21:43:23 -05:00
Meco Man b85c4cade2 [bsp][stm32] format code of i2c hardware drivers 2024-03-08 13:29:32 +08:00
Dyyt587 4e1626703f
[bsp][stm32] add hardware i2c driver 2024-03-07 22:59:47 -05:00
Meco Man 384a370c9a [stm32][tim-config] fix F4 TIM6's IRQ source in STM32F412 2024-03-08 09:39:57 +08:00
Meco Man 5f87e10032 [stm32f469-disc] support RTduino Tone feature 2024-03-08 09:39:57 +08:00
Meco Man 1a240798fa [RTduino] pins_arduino.h add limit check 2024-03-08 09:39:57 +08:00
Meco Man e961b051f9 [stm32f412-nucleo] support RTduino Tone feature 2024-03-08 09:39:57 +08:00
sp-cai cddab69d77 [BSP][HC32] drv_usart.c fix macro switch error 2024-03-07 20:26:14 -05:00
Shicheng Chu 5d70f98e4d
[bsp][cvitek] add rtc driver (#8586) 2024-03-07 17:18:53 -05:00
Zhang c3416c5868 [bsp][nxp]修复FRDM-MCXN947 Keil编译错误 2024-03-07 18:15:13 +08:00
Rbb666 d31c05a44c [tools]Fix project compilation errors generated by mdk and iar 2024-03-05 19:53:53 -05:00
Rbb666 784f764a27 Update the description of RA BSP and add the vision board 2024-03-05 16:47:43 +08:00
Rbb666 e1b80650d9 [bsp][renesas]add ra8d1-vision-board support 2024-03-05 16:47:43 +08:00
Wind 859781232c
Bug fixed while using UTEST framework (#8577) 2024-03-05 10:25:28 +08:00
Z8MAN8 5e892607fa [bsp][cvitek] add wdt driver 2024-03-03 14:40:15 -05:00
flyingcys aa04a59805
[bsp/cvitek]add pwm driver (#8571) 2024-03-02 16:16:22 +08:00
zhangyan 76202e2141
🎯 [libcpu/arm/cortex-a]修改arm/cortex-a启动方式,解决cortex-a开启SMP工作异常问题 (#8517)
Co-authored-by: wangzongqiang <wangzongqiang1322@phytium.com.cn>
2024-03-02 16:06:07 +08:00
Shell 53754ff50a
[fixup] check NULL pointer before access (#8573)
Signed-off-by: Shell <smokewood@qq.com>
2024-03-02 16:05:19 +08:00
Rbb666 bb8dcbc42a
[bsp][nxp-mcx]修改默认下载器为Dap-Link (#8569) 2024-02-29 19:21:13 -05:00
flyingcys 3816d9fba4
[bsp/cvitek]add adc driver (#8562) 2024-02-28 00:04:31 +08:00
sheltonyu b14f299e7d
[bsp/at32] update usb host driver (#8560) 2024-02-26 23:17:07 -05:00
Yilin Sun 1f69929b0b [bsp][nxp/mcxn] Add support for MCXN CTIMER PWM driver.
This patch adds support for PWM generation using CTIMER on MCXN devices.

Each CTIMER provides 4 PWM channels, channels sharing the same
CTIMER instance will have the same period settings, and the duty
cycle will be maintained if period is changed through one of the four
channels.

The period channel is automatically assigned and will be transferred
to one of the other available channels if that channel is used for PWM
generation, no glitches should be expected during the transition.

The patch also provides a sample PWM output configuration connected to
the on-board green LED which can be enabled through Kconfig.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-26 23:16:43 -05:00
Meco Man 0400fffafc [stm32f412] support RTduino SPI 2024-02-23 19:50:33 -05:00
Shell 71560bafb5
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
skllii 6fe69d7431
[bsp][hc32] support hc32f448 2024-02-22 12:34:35 -05:00
Yilin Sun c224278d3e [bsp][nxp/mcxn] hwtimer: initial support for MRT.
This patch adds support for hwtimer using MRT0 instance which simulates
4 independent timers. The frequency is fixed to AHB bus frequency and
not adjustable.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-21 18:01:17 -05:00
Yilin Sun 1b81128747 [bsp][nxp/mcxn] kconfig: update hwtimer config.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-21 18:01:17 -05:00
Yuqiang Wang c6bdee3c50
[ci] open ci check with function declaration warning (#8546) 2024-02-20 22:45:04 -05:00
Yilin Sun fd4e390d10 [bsp][mcxa] FRDM-MCXA153: GNU toolchain: fixed flags.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-20 18:24:21 -05:00
Yilin Sun e28ea7ad97 [bsp][nxp/mcxa] FRDM-MCXA153: Added GNU linker script.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-20 18:24:21 -05:00
Wangzongqiang 28f3e037b6
[bsp][phytium ] support dc driver with ops
修改bsp/phytium中DC驱动接口,利用ops注册相关驱动
2024-02-19 21:51:58 -05:00
Yilin Sun 9538f569e7 [bsp][nxp/mcxn10] Initial support for RTC driver.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-19 19:17:52 -05:00
yandld 66cc1f5da1 [bsp][nxp] fix gpio and sw pin issue 2024-02-19 12:06:01 -05:00
Jiangrunnan 4cbc1a41f6 [GD32_ARM] Fix bugs in drv_adc when enable multiple channel. 2024-02-19 01:24:37 -05:00
Yilin Sun 49c8ff2531 [bsp][nxp/mcxn10] GNU toolchain: fix broken port.
Details: Please check #8525

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-18 23:38:56 -05:00
Yilin Sun 08983b74c5 [bsp][nxp/mcxn10] Add RTT constant table sections to GNU lds.
Details: Please check #8525

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-18 23:38:56 -05:00
Meco Man a8629421ba [ci][attach] add AT CI check attach files 2024-02-18 21:28:45 -05:00
flyingcys ac2f7f05bf
[bsp][cvitek] 修复cv1800b默认中断号的配置问题 2024-02-18 12:42:06 -05:00
Shicheng Chu 0c000b403f
添加 BSP_USING_WIFI 宏控制 (#8536) 2024-02-16 20:20:42 +08:00
Shicheng Chu abba40183e
[bsp][cvitek]: add c906_little i2c driver (#8535) 2024-02-15 18:05:39 -05:00
杨熙 41e08084f8
Bsp nxp support (#8530)
Co-authored-by: StackYuan <yuanjyjyj@outlook.com>
2024-02-16 00:30:50 +08:00
Meco Man 35eea4bc46
[ci][arduino] 将Arduino库CI检查平台由STM32F411改为412 (#8534) 2024-02-13 21:51:23 +08:00
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