Add STM32 FDCAN transceiver adapter#416
Draft
nhuvaoanh123 wants to merge 5 commits into
Draft
Conversation
nhuvaoanh123
added a commit
to nhuvaoanh123/openbsw
that referenced
this pull request
Mar 30, 2026
Add fault handling and watchdog safety infrastructure: - hardFaultHandler: ARM Cortex-M4 HardFault handler in assembly — captures register state (R0-R12, LR, PC, PSR) for post-mortem analysis - safeBspMcuWatchdog: IWDG (Independent Watchdog) driver with configurable timeout, kick interface, and reset-reason detection - SafetyManager: Board-level safety lifecycle integration for G474RE Milestone: cmake configures with safety modules. Watchdog activates with PR 6 (RTOS). Depends on eclipse-openbsw#416 (PR 4: FDCAN transceiver). PR 5 of 10.
This was referenced Mar 30, 2026
81f2625 to
733a108
Compare
nhuvaoanh123
pushed a commit
to nhuvaoanh123/openbsw
that referenced
this pull request
Mar 30, 2026
Add fault handling and watchdog safety infrastructure: - hardFaultHandler: ARM Cortex-M4 HardFault handler in assembly — captures register state (R0-R12, LR, PC, PSR) for post-mortem analysis - safeBspMcuWatchdog: IWDG (Independent Watchdog) driver with configurable timeout, kick interface, and reset-reason detection - SafetyManager: Board-level safety lifecycle integration for G474RE Milestone: cmake configures with safety modules. Watchdog activates with PR 6 (RTOS). Depends on eclipse-openbsw#416 (PR 4: FDCAN transceiver). PR 5 of 10.
733a108 to
f839e14
Compare
nhuvaoanh123
added a commit
to nhuvaoanh123/openbsw
that referenced
this pull request
Mar 30, 2026
Add fault handling and watchdog safety infrastructure: - hardFaultHandler: ARM Cortex-M4 HardFault handler in assembly — captures register state (R0-R12, LR, PC, PSR) for post-mortem analysis - safeBspMcuWatchdog: IWDG (Independent Watchdog) driver with configurable timeout, kick interface, and reset-reason detection - SafetyManager: Board-level safety lifecycle integration for G474RE Milestone: cmake configures with safety modules. Watchdog activates with PR 6 (RTOS). Depends on eclipse-openbsw#416 (PR 4: FDCAN transceiver). PR 5 of 10.
f839e14 to
8a177ed
Compare
nhuvaoanh123
added a commit
to nhuvaoanh123/openbsw
that referenced
this pull request
Mar 31, 2026
Add fault handling and watchdog safety infrastructure: - hardFaultHandler: ARM Cortex-M4 HardFault handler in assembly — captures register state (R0-R12, LR, PC, PSR) for post-mortem analysis - safeBspMcuWatchdog: IWDG (Independent Watchdog) driver with configurable timeout, kick interface, and reset-reason detection - SafetyManager: Board-level safety lifecycle integration for G474RE Milestone: cmake configures with safety modules. Watchdog activates with PR 6 (RTOS). Depends on eclipse-openbsw#416 (PR 4: FDCAN transceiver). PR 5 of 10.
8a177ed to
899021b
Compare
nhuvaoanh123
added a commit
to nhuvaoanh123/openbsw
that referenced
this pull request
Mar 31, 2026
Add fault handling and watchdog safety infrastructure: - hardFaultHandler: ARM Cortex-M4 HardFault handler in assembly — captures register state (R0-R12, LR, PC, PSR) for post-mortem analysis - safeBspMcuWatchdog: IWDG (Independent Watchdog) driver with configurable timeout, kick interface, and reset-reason detection - SafetyManager: Board-level safety lifecycle integration for G474RE Milestone: cmake configures with safety modules. Watchdog activates with PR 6 (RTOS). Depends on eclipse-openbsw#416 (PR 4: FDCAN transceiver). PR 5 of 10.
3f3f817 to
f07a53e
Compare
Import the STM32F4 and STM32G4 CMSIS device headers from STMicroelectronics' dedicated RIM-tracked repositories. Keep only the F413 and G474 headers needed by the STM32 MCU foundation and record the unused upstream headers as RIM ignores.
Add the STM32 platform entry point, chip CMake files, bspMcu startup code, a software reset wrapper, and the STM32 unit-test presets. The platform reuses the shared CMSIS core from libs/3rdparty/cmsis instead of carrying a local copy.
Add STM32 BSP modules for clock, UART, GPIO, timer, ADC, and EEPROM, plus interrupt handling primitives and the ETL platform glue.
5f4c91e to
c936b83
Compare
Add bxCAN and FDCAN device drivers with STM32 CAN tests. Add the bxCAN transceiver adapter and unit-test registration.
Add the FDCAN transceiver implementation and STM32 test coverage. Wire the FDCAN transceiver into the chip-family CMake selection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this PR
Description
Fourth PR in the STM32 platform series. Adds the FDCAN transceiver adapter, completing CAN support for both STM32 families.
Module added
fdCanTransceiverICanTransceiveradapter for STM32G4 FDCAN peripheralMirrors the bxCAN transceiver (PR 3) but supports FD frames with up to 64-byte payload and extended filter configuration.
Milestone
Both CAN transceiver variants (bxCAN + FDCAN) now available. Tests: FdCanTransceiverTest, FdCanTransceiverIntegrationTest.
Depends on #415 (PR 3: CAN drivers). PR 4 of 10.
Related Issues
Part of STM32 platform port — see #413 for series overview.
Breaking Changes
Test Plan
cmake --preset tests-stm32-debugcmake --build --preset tests-stm32-debug && ctest --preset tests-stm32-debugRegression Tests
Have tests been added/updated? [x] Yes [ ] No