cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407VET6 remap CAN1

ADry
Associate II

Hi,

I use CubeMX for STM32F407VET6.

I want to remap CAN1 pins for PB8, PB9, but that configuration initialzing with error.

Though CAN1 remap for PD0, PD1 is fine.

What does that mean?

Thank you very much in advance for your return guys!

2 REPLIES 2

PB8/PB9 via AF9 should be CAN1

You'd want to make sure you've got a transceiver attached and the pins themselves are functioning properly. That CAN1 and GPIOB clocks are enabled.

That CAN1 isn't mapped to any other pin pairs.

I supposed you'd have to look at the spot it is actually reporting the failure, and then step through the function to see why. At the library source is provided so you should be able to pinpoint the error/status causing the failure.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ADry
Associate II

Thank you for your answer.

Probably that happening through Init.Mode = CAN_MODE_SILENT_LOOPBACK for CAN1 & CAN2 together.

If I do set mode CAN1 NORMAL and CAN2 SILENT_LOOPBACK all right.