This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32H7 CAN FD issues

Hi everyone,

I find myself working on a board with this microcontroller and I just have to get the CAN bus working.

I have never done any programming with neither CAN or this micro.

The issue I am encountering is this one:

when I connect to the board with a CAN-usb connector and I want the board to receive data through the CAN bus, the canAnalyzer software returns countless errors and my code goes in the error handling function. I don't understand how it works: does it need me to write a line of code to retrieve data from the bus or it handles it with the interrupt? from the datasheet it seems like the latter oprtion but I still don't know how to proceed.

when I transmit from my board to the can, I am able to see data frames on the canAnalyzer software, but just once and all data frames are flagged as "other error"

I am very confused and I can't find any practical example to help me understand this. I am using Keil uVision.

Can you help me?

here is the code, thank you so much for your help.

0