Skip to main content
Explorer
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.

    This topic has been closed for replies.
    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

    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.

    Explorer
    May 20, 2024

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

    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.