AnsweredAssumed Answered

CAN BUS, cube not receiving message

Question asked by l.marek on Feb 7, 2015
Latest reply on Jul 24, 2015 by y.pol
Hello, I have been using standard libraries but when CUBE got released I switched. I cant receive any CAN messages with CUBE.

-I am using f072
-Configured clocks, baud rate, filters(default)
-Using interrupt
-Silent loopback mode
-Hcan structure is filled correctly.
-I havent found any pin configuration in cube generated code

I can see TX data flow on oscilloscope with loopback mode. But It never generates the HAL_CAN_Rx_CpltCallback event when using HAL_CAN_Receive_IT. When debugging I also tried to put break point into CAN interrupt handler itself but it stops in timer interrupt handler bellow. Its interesting that program stops in different location from where breakpoint is.
I couldnt understand and find on community where the problem might be. I saw that few people had similar problems.

Outcomes