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 f37739d62c14a747b593ab20d1633b69bb79245a
Author: raiden00pl <[email protected]>
AuthorDate: Mon Oct 12 16:33:54 2026 +0200

    arch/arm/stm32: Select NET_CAN features only with NET_CAN.
    
    STM32_FDCAN on H7 selected the NET_CAN_HAVE_* symbols unconditionally,
    which gives unmet dependency warnings when the FDCAN is used without
    SocketCAN (character driver).
    
    Tested: stm32h735g-dk:fdcan configures without Kconfig warnings,
    nucleo-h743zi2:socketcan builds unchanged.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/common/stm32/Kconfig.periph | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/src/common/stm32/Kconfig.periph 
b/arch/arm/src/common/stm32/Kconfig.periph
index 514f07c9858..7d035e11e68 100644
--- a/arch/arm/src/common/stm32/Kconfig.periph
+++ b/arch/arm/src/common/stm32/Kconfig.periph
@@ -27,10 +27,10 @@ config STM32_CAN
 
 config STM32_FDCAN
        bool
-       select NET_CAN_HAVE_ERRORS if ARCH_CHIP_STM32H7
-       select NET_CAN_HAVE_CANFD if ARCH_CHIP_STM32H7
-       select NET_CAN_EXTID if ARCH_CHIP_STM32H7
-       select NET_CAN_HAVE_TX_DEADLINE if ARCH_CHIP_STM32H7
+       select NET_CAN_HAVE_ERRORS if ARCH_CHIP_STM32H7 && NET_CAN
+       select NET_CAN_HAVE_CANFD if ARCH_CHIP_STM32H7 && NET_CAN
+       select NET_CAN_EXTID if ARCH_CHIP_STM32H7 && NET_CAN
+       select NET_CAN_HAVE_TX_DEADLINE if ARCH_CHIP_STM32H7 && NET_CAN
 
 config STM32_DAC
        bool

Reply via email to