CAN intermittent send message failures with Blue Pill board
I'm doing can-bus work with F103 and having a problem I can't figure out.
I'm listening for a specific message, it's on a 20ms interval, and then when that message arrives I right away broadcast a new message using the same id but with different data. To do this I'm setting a flag inside HAL_CAN_RxFifo0MsgPendingCallback and then monitor this flag inside the main loop. If the flag is set I'm calling HAL_CAN_AddTxMessage to send a new message and resetting the flag. This repeats.
Now, everything seems to be working most of the time, but at random times, it can be a minute or several minutes or longer, my messages are not sent for a second or few seconds or randomly sent/not sent for few seconds. Then everything will go back to normal for a while and then it might get "broken" again. This will repeat.
HAL_CAN_AddTxMessage() is always returning OK.
HAL_CAN_TxMailbox[0-2]CompleteCallback() are not being called when I notice the failures.
There are 3 other nodes on this network; one is my CAN analyzer and two are locked commercial devices.
Any help is appreciated. Thank you.
