This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 0ccc7adce6a43887e13709242e6ba10a18f9c728
Author: raiden00pl <[email protected]>
AuthorDate: Tue Nov 24 17:26:24 2026 +0100

    boards/nucleo-c092rc: Set the FDCAN resynchronization jump width.
    
    The CAN configurations use 192 time quanta per bit with the default
    SJW of 1 quantum, 0.5 % of the bit time, so the controller could not
    resynchronize to another node.  A peer sending to the board got errors
    and went bus-off.  Use SJW = TSEG2 = 48 quanta.
    
    Tested at 250 kbit/s against an stm32h735g-dk FDCAN: the peer went
    bus-off after a few frames before, after it sends 2000 frames at line
    rate without errors.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 boards/arm/stm32c0/nucleo-c092rc/configs/can/defconfig     | 1 +
 boards/arm/stm32c0/nucleo-c092rc/configs/cansock/defconfig | 1 +
 2 files changed, 2 insertions(+)

diff --git a/boards/arm/stm32c0/nucleo-c092rc/configs/can/defconfig 
b/boards/arm/stm32c0/nucleo-c092rc/configs/can/defconfig
index 923d636df2e..9dab941e421 100644
--- a/boards/arm/stm32c0/nucleo-c092rc/configs/can/defconfig
+++ b/boards/arm/stm32c0/nucleo-c092rc/configs/can/defconfig
@@ -46,6 +46,7 @@ CONFIG_START_YEAR=2013
 CONFIG_STDIO_DISABLE_BUFFERING=y
 CONFIG_STM32_FDCAN1=y
 CONFIG_STM32_FDCAN1_BITRATE=250000
+CONFIG_STM32_FDCAN1_NSJW=48
 CONFIG_STM32_FDCAN1_NTSEG1=143
 CONFIG_STM32_FDCAN1_NTSEG2=48
 CONFIG_STM32_USART2=y
diff --git a/boards/arm/stm32c0/nucleo-c092rc/configs/cansock/defconfig 
b/boards/arm/stm32c0/nucleo-c092rc/configs/cansock/defconfig
index f8d6ce2466b..f1c00eca88c 100644
--- a/boards/arm/stm32c0/nucleo-c092rc/configs/cansock/defconfig
+++ b/boards/arm/stm32c0/nucleo-c092rc/configs/cansock/defconfig
@@ -51,6 +51,7 @@ CONFIG_START_MONTH=10
 CONFIG_START_YEAR=2014
 CONFIG_STM32_FDCAN1=y
 CONFIG_STM32_FDCAN1_BITRATE=250000
+CONFIG_STM32_FDCAN1_NSJW=48
 CONFIG_STM32_FDCAN1_NTSEG1=143
 CONFIG_STM32_FDCAN1_NTSEG2=48
 CONFIG_STM32_FDCAN_SOCKET=y

Reply via email to