Skip to main content
Visitor II
June 24, 2024
Question

Unable to receive CAN interrupt on STM32F0 when send data from STM32f4 to STM32f0 hardware.

  • June 24, 2024
  • 1 reply
  • 3149 views

Greetings to all,

I want to send and receive the data via CAN between STM32F4 and STM32f0. But when I send the data from STM32F4 to STM32F0 I cannot get the interrupt at F0 end. I have tried to communicate between F0 and F0 that works fine I can receive the interrupt and send the data. Also when communicating between F4 and F4 that also works. But when communicating between F4 and F0 I cannnot get the receive interrupt at F0 end. Below are the configurations of F0.

schou_0-1719207081227.pngschou_1-1719207127138.png

I am unable to understand why do I cannot get the interrupt.

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    June 24, 2024

    Hello @schou ,

    You need to provide more than that as information.

    Need to share the two projects of F4 and F0 including their ioc files.

    Are you sure about the bitrate i.e. the two MCUs having the same CAN bitrate?

    What is the system clock source of F4 and F0? 

    schouAuthor
    Visitor II
    June 24, 2024

    Kindly check the shared ioc files.

    As you said I have checked the bitrate it seems to be right.

    Technical Moderator
    June 24, 2024

    Hello,

    Cheking your ioc files, I noticed that from F0 side you selected HSI48 as a clock source for the system clock which is not recommended for CAN communication. You need to use HSE with an external precise clock source such as a crystal (like you did for F4).

    Which board you are using for STM32F042? NUCLEO-F042K6?