2019-06-08 02:10 PM
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!
2019-06-08 02:39 PM
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.
2019-06-08 03:43 PM
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.