2017-06-28 04:58 AM
The CANX_TX_IRQ is called unexpected cause the HAL_CAN_Receive_IT enables the CAN_IT_TME. As a result every can rx irq also the
can tx irq is called.
This costs time and i've some other side effects in my application.
In the F3 Lib the CAN_IT_TME is not enabled in the HAL_CAN_Receive_IT.
Am I wrong ?
Must STM change the Library ?
I've changed the following:
// __HAL_CAN_ENABLE_IT(hcan, CAN_IT_EWG |
// CAN_IT_EPV |// CAN_IT_BOF |// CAN_IT_LEC |// CAN_IT_ERR |// CAN_IT_TME ); __HAL_CAN_ENABLE_IT(hcan, CAN_IT_EWG | CAN_IT_EPV | CAN_IT_BOF | CAN_IT_LEC | CAN_IT_ERR );2017-06-28 06:28 AM
Hi
Silberer.Bernhard
,I will check and raise internally your reported issue, then I will keep you informed about the taken actions or explanation.
Regards
Imen
2017-07-12 04:05 AM
Hi,
Any News ?
Regards
Bernhard
2017-07-12 08:26 PM
Hmm, I just observed my F2 mcu go into TxIRQ after receiving messages, too. Found the same code in HAL_CAN_Receive_IT and changed according to your suggestion. Will test now. Sounds reasonable though - I wouldn't know why TME needs to be enabled for receiving.