Skip to main content
Associate III
May 20, 2024
Solved

Implement CAN Communication on STM32F407 discovery board.

  • May 20, 2024
  • 1 reply
  • 2144 views

Implement CAN Communication on STM32F407 discovery board using register level programming.

In which we transmit some messages and receive same messages in loopback mode. Can you please write the code for this.

Best answer by mƎALLEm

Hello,

There is no CAN code example with register level. Inspiring from HAL driver will not be a hard task to do and sorry, I don't think there will be people that will do that job in your place unless he/they did it already and share it with you. 

 

1 reply

mƎALLEm
Technical Moderator
May 20, 2024

Hello,

Simple: you can use CAN HAL examples and test then inspire from the diver implementation and see how it was implemented. And you need to use a CAN transceiver with the F407 discovery board in normal mode. The tranceiver is not needed in loopback mode.

"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."
Associate III
May 20, 2024

But I don't want to use HAL examples. I want register level programming. Could you please help me out.

mƎALLEm
Technical Moderator
May 20, 2024

I didn't say you have to use HAL, I said you can inspire from the driver implementation and the register sequence handling after testing a HAL example.

 

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