Skip to main content
TViT
Visitor II
February 26, 2022
Question

STM32F103RET6 - Not work callback - HAL_CAN_RxCpltCallback.

  • February 26, 2022
  • 0 replies
  • 521 views

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