cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RET6 - Not work callback - HAL_CAN_RxCpltCallback.

TViT
Associate

Hello. I have project from 2 years ago. During testing, a problem was discovered when sending commands from the master device to the slave device through the CAN. For some reason don't call callback - HAL_CAN_RxCpltCallback (there I analyze the incoming packet). And I catch an error - HAL_CAN_ERROR_FOV0. Looking in the driver, I catch an error when debugging - HAL_CAN_STATE_BUSY_RX0.

After I reset the CAN and run HAL_CAN_Init(hcan) and HAL_CAN_Receive_IT(hcan, CAN_FIFO0)... After that, the data exchange on CAN starts working again, until the next periodic error.

Help me, what could be the problem of such a strange periodic behavior of the CAN?

Approximately once every 10 seconds or 20 seconds. Or maybe in the second second this problem will appear when turn on CAN.

This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0