Commit Graph

7992 Commits

Author SHA1 Message Date
chen13587 0a5a829004
[bsp][nxp] Add RTduino support for FRDM-MCXA366 (#11594)
* 在FRDM-MCXA366工程内 修改main函数 添加uart_int_sample程序,实现串口的交互。在BOARD_InitPins函数内添加串口3的引脚初始化代码

* 根据 FRDM-MCXA366 的 Arduino 接口定义(J1/J2),完成了 RTduino 引脚映射表的编写。完成RTduino的D13(对应板子的P3_10)引脚控制测试,串口测试

* 已删除 RTE 文件夹,已恢复原始 main.c 的 LED 闪烁功能

* 完成ci

* remove RTE folder from tracking
2026-08-12 17:36:27 +08:00
Onlyou_tzZ b71a16830a
[bsp/n32]上传Nsing LCDC和SDRAM的驱动#11682 2026-08-12 15:37:21 +08:00
Rbb666 46fdeefb32 refactor(pic): dispatch NVIC IRQs through traps 2026-08-12 12:54:50 +08:00
Rbb666 abce28f15c feat(renesas): add RA8P1 GPIO and external IRQ DM drivers
Add M85 device-tree GPIO and external-interrupt controllers, IRQ20 FSP integration, built-in DTB support, and BSP usage documentation.
2026-08-12 12:54:50 +08:00
Rbb666 655aea948e feat(stm32): add GPIO and EXTI device model drivers
Add device-tree GPIO/EXTI controllers, built-in DTB support for GCC and ArmClang, and BSP integration for STM32F407 RT-Spark and STM32H750 ART-Pi. Document how BSP users enable the DM drivers.
2026-08-12 12:54:50 +08:00
rcitach 5c76c21f32 完善ra6w1的基础BSP驱动 2026-08-11 09:56:34 +08:00
nxp-ran bdd050fb5b
[BSP][NXP] Add new features of multicore, hyperram, cherryUSB, NETC and etherCAT (#11672)
* updated template files, conifg files and script files to support hypperram, multicore kickoff, rpmsg-lite, netc, cherryusb and ethercat.

* updated different link files of GCC, IAR and KEIL, for supporting multicore kick-off and different loading methods

* Updated .ini files to support debugging in keil. And updeated .mac files to support deugging in iar.

* Updated template files, conifg files and script files of CM7 to support hypperram, multicore kickoff, rpmsg-lite, netc, cherryusb and ethercat.

* Updated different link files of GCC, IAR and KEIL of CM7 project, for supporting multicore kick-off and different loading methods.

* Modify LittleFS to use the last 1 MB of flash and update CM7 support for LittleFS on QSPI flash.

* Updated different link files of loading to hyperram.

* Updated .ini files of CM7 to support debugging in keil. And updeated .mac files of CM7 to support deugging in iar.

* Remove Keil projects and keep templates only.

* Remove RAMFUNC due to IAR compilation issues, and use linker configuration to place all flash operation code in RAM.

* Add related code to support kick-offing CM7 and rpmsg-lite.

* Add codes to support cherryUSB for CM33 and CM7.

* Add mnt.c to support littleFS for CM7.

* Add codes to support etherCAT for CM7.

* Add codes to support USART12 for RT1180.

* Modify the drv_uart_v2.c to fix some bug to make it can work in CM33, but still cannot work in CM7. Will continue to update in next version.

* Updated README with both Chinese and English versions.

* Move the EtherCAT code into the packages\nxp-imxrt-sdk-latest.

* Remove EtherCAT-related sources, keep only SConscript.

* updated ci.attachconfig.yml for cm33 and cm7 projects.

* Fixed BSP_ROOT path error in rtconfig.py.

* Added drv_netc.c and updated SConscript for netc.

* Updated cherryusb_port.c to avoid worning.

* Updated sconscript to locate multicore directory in packages for header inclusion.

* Updated cm33/board/board.c to avoid worning when enable cm33_kickoff_cm7.

* Deleted peripheral.ethercat, because the related protocol stack has not been uploaded. And added CONFIG_BSP_USING_GPIO=y for Peripheral.netc.:

* Removed the SConscript of multicore and ethercat to packages.

* Added CONFIG_BSP_USING_GPIO=y to Peripheral.hyperflash_dma.

* Added CONFIG_BSP_USING_GPIO=y for Peripheral.hyperflash.

* Reformat code according to coding standards.

* Reformat code according to coding standards.
2026-08-10 14:44:37 +08:00
GUI 19e9be8779
[dm][ufs] fixup the ufs supported (#11646)
* [dm][block] add 4K support for EFI partion

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [dm][ufs] fixup the linkup flow

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* style: format code with clang-format

* style: format complete changed files with clang-format

* drivers: address UFS review feedback

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-07 16:54:29 +08:00
rcitach 71fd997662 RA6W1基础BSP内容 2026-08-05 14:52:20 +08:00
Old-Ding b26ae7d8d9 bsp: Use raw regex strings in upgrade tools
Python warns about invalid escape sequences in the heap update regex patterns. Mark the patterns as raw strings so the regex values stay unchanged without relying on invalid Python escapes.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-27 17:52:19 +08:00
CYFS3 b1cd917f9a bsp: rename Libraries directories to lowercase 2026-07-27 13:17:02 +08:00
CYFS 17712f5e5f bsp: support RA8P1 Titan dual-core projects 2026-07-27 13:15:58 +08:00
CYFS 03ecbdd823 bsp: fix RA8P1 Titan Keil startup 2026-07-27 13:15:58 +08:00
Onlyou_tzZ f08217a883
[bsp/n32]n32h760zil7-stb bsp修复完善,添加 n32h497zgl7-evb和n32h487zgl7-evb bsp (#11627)
1、修改n32\n32gxx_lxx\n32g4frml-stb中的GCC启动文件bl entry
2、修复完善n32h760zil7-stb bsp,支持GCC环境、支持更多外设
3、添加n32h487zgl7-evb初版BSP
4、添加n32h497zgl7-evb初版BSP
5、删除n32g452xx这个bsp

---------

Co-authored-by: OnlyoutzZ <OnlyoutzZ+github[bot]@noreply.github.com>
2026-07-22 17:06:34 +08:00
CYFS 622c55248c bsp: raspberry-pico: fix SDK sub-build invocation 2026-07-22 13:47:46 +08:00
CYFS bb85278748 [bsp] Fix HC32 and HT32 variant builds 2026-07-22 13:32:41 +08:00
CYFS 55cf9cd3fa [bsp] Place SConscript outputs under build directories 2026-07-22 13:32:41 +08:00
Just Chen 9657b3ce10
[bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题 (#11633)
* [bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题

* style: format code with clang-format [skip ci]

* [bsp][stm32]refactor:(spi_config):去除尚不支持的DMA相关配置

* [bsp][stm32]refactor(spi_config):格式化SPI_CONFIG.H

---------

Co-authored-by: moment-NEW <moment-NEW+github[bot]@noreply.github.com>
2026-07-21 11:58:33 +08:00
CYFS 1fa451feea
[bsp][nxp]:keep imxrt1180 mini bsp#11629 2026-07-20 17:34:08 +08:00
CYFS 25212f3745 fix: name anonymous Kconfig choices 2026-07-20 13:05:46 +08:00
CYFS 0e0f403cc1 bsp: fix GD32VW55x lwIP mem ownership 2026-07-20 12:01:32 +08:00
Old-Ding df959080fc bsp: zynqmp-r5: Fix IGMP multicast range check
Reject IPv4 addresses outside 224.0.0.0/4 before updating the multicast MAC hash. The previous condition used AND, so it could never reject a non-multicast first octet.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-20 10:21:31 +08:00
Old-Ding 858433a0a1 bsp: fm33lc026: Fix GPIO IRQ map lookup
Keep pin2irqindex within the pin_irq_map bounds and handle the first map entry without reading index -1. Pass encoded pin values to the IRQ map lookup path, and validate the lookup result before indexing the map.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-20 10:20:33 +08:00
shannon2000 247f540f6b
[bsp][nxp]support imxrt1180-evk board gpio and LPUART, Serial V2, DMA (V2) (#11489)
* support gpio and LPUART, Serial V2, DMA (V2)

* remove unused ci comment workflows

* fix: correct YAML indentation on line 12 in ci workflow files

* [bsp][nxp]support imxrt1180-evk board gpio and LPUART, Serial V2, DMA V2

* fix: address review feedback - revert CI/drv_uart.c/dev_serial.c, remove drv_uart_v2.h, use drv_uart.h instead

* revert: remove framework file changes per review feedback

* fix: remove unused variable 'value' in imxrt_pin_read

* fix: remove trailing whitespace in pin_mux.c
2026-07-20 09:08:53 +08:00
Yu+ 23c05e48a1
MCX A366 SLCD BSP driver support (#11608)
* SLCD BSP driver support

* style: format code with clang-format [skip ci]

* Update default for SLCD display configuration

Change default setting for onboard SLCD display to 'n'.

* add ci.attach for slcd

---------

Co-authored-by: yuplus <yuplus+github[bot]@noreply.github.com>
Co-authored-by: WANGYU <yuplus@126.com>
2026-07-17 16:29:30 +08:00
yuplus f827d1bc01 style: format code with clang-format [skip ci] 2026-07-17 15:03:04 +08:00
WANGYU c54a2d246b CANFD BSP driver support and ci.attach support 2026-07-17 15:03:04 +08:00
CYFS 5363e4ed4c [bsp][drivers][soft_spi] unify the software SPI driver 2026-07-17 09:41:51 +08:00
Jasontek f42337ba03
[bsp/nxp]imxrt1180 nxp evk lpadc&hyperflash#11529 2026-07-16 15:13:49 +08:00
CYFS 414ff7f371 [bsp][drivers][soft_i2c] unify the software I2C driver 2026-07-16 13:19:57 +08:00
Leeto1970 aff47231e6 [HC32] Format files by newer clang-format. 2026-07-14 19:55:12 +08:00
Leeto1970 d513da02db [HC32] Add HC32F4A2/HC32F467 BSP support
- Add chip macro for driver
 - Modify 'IDLE_THREAD_STACK_SIZE' to 512
 - Modify 'HWTIMER' to 'CLOCK_TIMER'
 - Use 'clang-format' format driver and BSP code
 - Fix SPI clock division configuration
2026-07-14 19:55:12 +08:00
CYFS c96551a7dd [bsp][stm32]:update templates files 2026-07-14 14:45:24 +08:00
HonestQiao 2f992bdd4c
[bsp][imxrt1180-nxp-evk]add I2C adapter support 2026-07-14 11:59:09 +08:00
CYFS d86e4d93ba [ci][format] Ignore BSP rtconfig.h files 2026-07-13 17:39:35 +08:00
HonestQiao 66d3070c80
[bsp][imxrt1180-nxp-evk]add TIMER support (#11511)
* [bsp][imxrt1180-nxp-evk]add TIMER support

* [bsp][imxrt1180-nxp-evk]update TIMER support

* [bsp][imxrt1180-nxp-evk] move fsl_gpt.c inclusion to SDK package SConscript

* [bsp][imxrt1180-nxp-evk] restore main.c to original Hello_World version

* [bsp][imxrt1180-nxp-evk] remove libraries/drivers/drv_timer.h

* [bsp][imxrt1180-nxp-evk]update TIMER support
2026-07-12 20:58:13 +08:00
CYFS b7eb6fb0e4
[ci][format] Use clang-format for format check#11582 2026-07-10 11:34:58 +08:00
CYFS dd7da0fd79 bsp: support env shared package paths 2026-07-09 17:29:51 +08:00
CYFS f12485a60e bsp: fix ra8p1 titan board keil build 2026-07-09 16:32:06 +08:00
CYFS 205c713b3c bsp: update renesas MDK5 projects
同步 Renesas BSP 的 MDK5 工程生成方式,移除对 RASC gpdsc/build hook 的依赖,并更新由 scons 生成的 Keil 工程。

已保留存在实际 via 文件的 BSP 配置,仅移除缺失 via 文件的引用。
2026-07-09 10:36:08 +08:00
Old-Ding ac6dc197a0 bsp: hpmicro: clear full ENET buffers
rt_hw_eth_init() clears ENET descriptor tables using element size times count, but the RX/TX data buffers used sizeof(size), which only covers the width of the size field.

Use the configured buffer count and size so the whole RX/TX buffer areas are initialized before handing them to the ENET descriptor configuration.

Make the Cppcheck intent explicit for the HPM placement macros and the LPI_CSR register read so the touched file passes static analysis.

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:03:58 +08:00
Old-Ding 9e2ab35e17 bsp: rockchip: Fix CAN-FD bit timing copy size
RT_CAN_CMD_SET_BITTIMING receives an array of struct rt_can_bit_timing entries. The Rockchip CAN-FD driver used sizeof(&timing->items[n]) when copying those entries, so only pointer-sized bytes were copied into the device configuration.

Use the element size so both arbitration and data phase timing structures are copied completely.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 14:02:42 +08:00
Old-Ding 1648becff8 bsp: ft2004: Clear full QSPI command pack
Reset the whole FQSpi_CmdPack object before reusing it in the QSPI debug commands. Using sizeof(&cmd_pack) only clears the pointer-sized prefix and can leave stale fields in the command pack.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:40:24 +08:00
Old-Ding 965fc8e992 bsp: nxp: Bound VGLite buffer reader access
Check the buffer limits before reading ptr[i] in bufferred_fgets(). Also guard CR/LF skipping against the available input bytes so reading a full buffer does not inspect one byte past the source.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:38:32 +08:00
Old-Ding d8a7e3eeb0 bsp: renesas: Fix LCD framebuffer bounds
The Renesas LCD helper treats LCD_WIDTH and LCD_HEIGHT as pixel counts. The framebuffer clear loop and lcd_draw_pixel() accepted those count values as valid indexes, which can write one pixel past the framebuffer.

Use strict bounds for the 0-based framebuffer indexes and adjust the 180-degree rotation mapping to target the last valid row and column.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:21:51 +08:00
wdfk-prog 937be2c97d
feat[ADC]: 新增 ADC V2 驱动支持 (#11440)
* feat[ADC V2]: add ADC V2 driver support

add ADC V2 core APIs, session state management, and sequence read support
add STM32 ADC V2 HAL backend with internal-channel and VREF handling
add per-series STM32 ADC V2 default configuration headers
wire ADC V2 Kconfig and SConscript integration for components and STM32 BSP drivers
keep ADC V2 mutually exclusive with the legacy ADC driver path

* feat[ADC V2]: add ADC V2 MSH special channel read support

add generic ADC V2 MSH commands for probing, configuring, raw reads, voltage reads, and sequence reads
add STM32 ADC V2 backend special commands for VREFINT, temperature sensor, and VBAT reads
add STM32 helper APIs for special logical channels, sampling time, resolution, and temperature calculation
wire ADC V2 MSH sources through Kconfig and SConscript

* feat[ADC V2]: add ADC V2 stream DMA support

add ADC V2 stream APIs with latest-frame and FIFO buffering policies
wire STM32 ADC V2 to circular DMA stream mode with per-instance Kconfig options
extend STM32 ADC config headers and DMA helpers for stream DMA configuration
add FinSH stream commands for start, read, cancel, and stop operations
handle Cortex-M7 cache-safe DMA buffers for STM32 stream sampling

* feat[ADC V2]: add timer trigger support for ADC V2 streams

add ADC V2 trigger configuration, validation, and lifecycle coordination
add timer update trigger support through clock timer TRGO controls
map STM32 ADC V2 timer update triggers to HAL external trigger selector fields
add Kconfig, SConscript, and MSH entries for ADC trigger setup and inspection

* feat[ADCV2]: add timer and comparator trigger selectors

add ADC V2 timer compare and analog comparator trigger configuration support
extend clock timer trigger config with compare event and channel fields
wire STM32 ADC external trigger selector mappings for TIM update, TIM compare, and COMP output
add FinSH trigger_set commands and Kconfig switches for timer and comparator trigger backends

* fix[ADC V2]: resolve ADC V1 compatibility Kconfig loop

* ci[ADC V2][stm32]: add ADC v2 peripheral config for stm32f407-rt-spark BSP
2026-07-07 08:59:22 +08:00
Old-Ding 31e634376f bsp: renesas: Fix RA pin name digit checks
Validate the second and third digits of RA PXXX pin names against their own characters. The previous checks used name[1] for those upper bounds, so non-digit suffixes could pass validation.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 13:03:28 +08:00
Old-Ding 5882e6a127 docs: clarify STM32 BSP template usage 2026-07-05 16:01:03 +08:00
rcitach 313e159031 Fix the CAN driver bug 2026-07-05 16:00:12 +08:00
Old-Ding 2b75ff3463 [bsp][gd32] add PWM ci attach config 2026-07-05 15:52:24 +08:00