Skip to main content
Visitor II
September 28, 2024
Solved

STM32H563 NUCLEO CAN1 Problem

  • September 28, 2024
  • 3 replies
  • 989 views

PA11和PA12配置为FDCAN1 模式失效

Translation: PA11 and PA12 are configured as FDCAN1 mode.

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello @Erice ,

    PA11 and PA12 are already used by the USB and this prevents you to use FDCAN on these pins: 

    SofLit_0-1727690152386.pngSofLit_1-1727690207567.png

    You can use FDCAN on pins PD0 (FDCAN1_Rx) and PD1 (FDCAN1_Tx) on CN9 zio connector:

    From the board's user manual:

    SofLit_2-1727690420188.png

    Hope I answered your question.

     

    3 replies

    Super User
    September 28, 2024

    > PA11 and PA12 are configured to fail in FDCAN1 mode

    There's not enough information in your post to be useful.

    How to write your question to maximize your chance... - STMicroelectronics Community

     

    Perhaps pins are being used by something else. Perhaps the code is insufficient. Perhaps the pins are not hooked up as you think they are. Review the schematic or user manual to verify availability and connectivity.

    Technical Moderator
    September 30, 2024

    Hello @Erice ,

    Please provide more details on your issue.

    Check if you have conflicts with other functions on your board.

    When using STM32CubeMX, select PA11 and PA12 in the Pinout View and make sure to use the alternate function FDCAN1_Rx/Tx according to the GPIO you are using (PA11 or PA12).

    Please see the following screenshot

    ImenD_0-1727688014359.png

    PS: I've updated your STM32H7 label to STM32H5 (since you say in the title that you're using STM32H5).

    mƎALLEmAnswer
    Technical Moderator
    September 30, 2024

    Hello @Erice ,

    PA11 and PA12 are already used by the USB and this prevents you to use FDCAN on these pins: 

    SofLit_0-1727690152386.pngSofLit_1-1727690207567.png

    You can use FDCAN on pins PD0 (FDCAN1_Rx) and PD1 (FDCAN1_Tx) on CN9 zio connector:

    From the board's user manual:

    SofLit_2-1727690420188.png

    Hope I answered your question.