This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.0 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4497bb8e727a065c4c37b0b061e8f99efcfa66d9 Author: Javier Alonso <[email protected]> AuthorDate: Thu Aug 6 17:03:39 2026 +0200 arch/s32k3xx: initializers clobbering rx_pin instead of enable_high The `rx_pin` configuration when `CONFIG_S32K3XX_FLEXCAN2` is defined is overwritten if `PIN_CAN2_ENABLE` is defined, breaking the flexcan config for S32K3 MCU. Signed-off-by: Javier Alonso <[email protected]> --- arch/arm/src/s32k3xx/s32k3xx_flexcan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c index e27d2fcc377..fe4b18d6151 100644 --- a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c +++ b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c @@ -305,11 +305,11 @@ static const struct flexcan_config_s s32k3xx_flexcan2_config = .rx_pin = PIN_CAN2_RX, .no_buffers = 64, #ifdef PIN_CAN2_ENABLE - .enable_pin = PIN_CAN2_ENABLE, + .enable_pin = PIN_CAN2_ENABLE, .enable_high = CAN2_ENABLE_OUT, #else - .enable_pin = 0, - .rx_pin = 0, + .enable_pin = 0, + .enable_high = 0, #endif #ifdef PIN_CAN2_STB .stb_pin = PIN_CAN2_STB,
