cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563 NUCLEO CAN1 Problem

Erice
Associate

PA11和PA12配置为FDCAN1 模式失效

Translation: PA11 and PA12 are configured as FDCAN1 mode.

3 REPLIES 3
TDK
Guru

> 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.

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

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).

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
SofLit
ST Employee

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.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.