Skip to main content
ADry
Associate
June 8, 2019
Question

STM32F407VET6 remap CAN1

  • June 8, 2019
  • 2 replies
  • 689 views

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!

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
June 8, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
ADry
ADryAuthor
Associate
June 8, 2019

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.