Commit Graph
7999 Commits
Author SHA1 Message Date
GuEe-GUI f7258a6bb8 [bsp/raspberry-pi] update DM support
- reorganize common Raspberry Pi drivers under the device framework
- add the Raspberry Pi 5 BSP, configuration and documentation
- add BCM2712 and DesignWare AXI DMA controller support
- distinguish BCM2712 DMA32 and DMA40 channels by channel mask
- restore DesignWare AXI DMA enable bits after controller reset
- support a shared AXI maximum burst length across DMA channels

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-16 19:56:03 +08:00
GuEe-GUI 2bcc47d418 [bsp/zynqmp-a53-dfzu2eg] Port to the MACB for QEMU
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-14 16:45:29 +08:00
hanzhijian 0c1a9a429a [bsp][loongson] Clamp CAN receive DLC 2026-08-14 13:02:20 +08:00
GUI f2c05253d1 [dm][dma] Update DMA (#11678)
* [dm][dma] update DMA interface

Extend DMA mapping to honor OFW dma-ranges even
when no reserved memory pool is present,
and add PCI host-bridge DMA-region translation for PCI devices.
Prefer 32-bit-addressable allocations for translated devices,
improve pool allocation fallbacks and synchronization,
and establish a linear mapping for installed DMA pools when possible.

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

* [dm][dma] fixup PL330 work flow

Fix PL330 channel allocation so device-tree cells
select peripheral request lines rather than execution channels.
Generate proper peripheral DMA microcode using DMAWFP, DMALDP, DMASTP, and DMAFLUSHP,
encode burst lengths correctly,
honor transfer direction and non-secure attributes,
and allocate microcode from DMA-coherent memory.

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

* style: format code with clang-format

* style: format complete changed files with clang-format

* drivers: dma: fix diagnostic format types

* style: format DMA changes for current master

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-14 12:42:01 +08:00
rcitach 76b0267361 fix(ra6w1): two “board.h” files are in conflict 2026-08-13 15:51:17 +08:00
CYFS dad92df985 [bsp]: select RT_USING_SERIAL for UART configurations 2026-08-13 09:40:54 +08:00
CYFS 82a2fd64b1 [bsp][nxp]:Minimize bsp and switch to ci-attach for mcxa366 2026-08-13 09:39:12 +08:00
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_tzZandOnlyoutzZ 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 Chenandmoment-NEW 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
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
ToolsCI / Tools (push) Canceled after 0s
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Canceled after 0s
doc_doxygen / doxygen_doc generate (push) Canceled after 0s
MemBrowse Memory Report / load-targets (push) Canceled after 0s
pkgs_test / change (push) Canceled after 0s
utest_auto_run / A9 :components/dfs.cfg (push) Canceled after 0s
utest_auto_run / A9 :components/lwip.cfg (push) Canceled after 0s
utest_auto_run / A9 :components/netdev.cfg (push) Canceled after 0s
utest_auto_run / A9 :components/sal.cfg (push) Canceled after 0s
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Canceled after 0s
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Canceled after 0s
utest_auto_run / A9-rtsmart :default.cfg (push) Canceled after 0s
utest_auto_run / RISCV-rtsmart :default.cfg (push) Canceled after 0s
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Canceled after 0s
utest_auto_run / AARCH64 :default.cfg (push) Canceled after 0s
utest_auto_run / AARCH64-smp :default.cfg (push) Canceled after 0s
utest_auto_run / A9 :default.cfg (push) Canceled after 0s
utest_auto_run / A9-smp :default.cfg (push) Canceled after 0s
utest_auto_run / RISCV :default.cfg (push) Canceled after 0s
utest_auto_run / RISCV-smp :default.cfg (push) Canceled after 0s
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Canceled after 0s
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Canceled after 0s
utest_auto_run / A9-rtsmart :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / RISCV-rtsmart :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / XUANTIE-rtsmart :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / A9 :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / A9-smp :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / RISCV :kernel/ipc.cfg (push) Canceled after 0s
utest_auto_run / A9-rtsmart :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / RISCV-rtsmart :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / XUANTIE-rtsmart :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / A9-smp :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / RISCV :kernel/kernel_basic.cfg (push) Canceled after 0s
utest_auto_run / AARCH64-rtsmart :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / A9-rtsmart :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / RISCV-rtsmart :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / XUANTIE-rtsmart :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / AARCH64 :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / AARCH64-smp :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / A9 :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / A9-smp :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / RISCV :kernel/mem.cfg (push) Canceled after 0s
utest_auto_run / RISCV-smp :kernel/mem.cfg (push) Canceled after 0s
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Canceled after 0s
RT-Thread BSP Static Build Check / collect-artifacts (push) Canceled after 0s
doc_doxygen / deploy (push) Canceled after 0s
MemBrowse Memory Report / analyze (push) Canceled after 0s
MemBrowse Memory Report / mark-identical (push) Canceled after 0s
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.
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
ToolsCI / Tools (push) Has been cancelled
MemBrowse Memory Report / load-targets (push) Has been cancelled
MemBrowse Memory Report / analyze (push) Has been cancelled
MemBrowse Memory Report / mark-identical (push) Has been cancelled
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
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
doc_doxygen / doxygen_doc generate (push) Has been cancelled
doc_doxygen / deploy (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :components/sal.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9-smp :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9-smp :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / A9-smp :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/mem.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :kernel/mem.cfg (push) Has been cancelled
ToolsCI / Tools (push) Has been cancelled
MemBrowse Memory Report / load-targets (push) Has been cancelled
MemBrowse Memory Report / analyze (push) Has been cancelled
MemBrowse Memory Report / mark-identical (push) Has been cancelled
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