cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot make the CAN TX interrupt work (CAN RX int does work, though):

RWeis.0
Associate II

Using: stm32l476 on the ST eval board, I set the CAN INT as follows:

   if (HAL_CAN_ActivateNotification(&CanHandle, CAN_IER_TMEIE | CAN_IER_FMPIE0 | CAN_IER_ERRIE |

         CAN_IER_EPVIE | CAN_IER_BOFIE) != HAL_OK)

   {

      /* Notification Error */

      Error_Handler();

   }

Any idea?

4 REPLIES 4

Does it end up in the Error_Handler()?

Does it end up in the Default_Handler()?

Do you have body code for an CAN1_TX_IRQHandler?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RWeis.0
Associate II

​It end up in no handler, no exception. I do have a body code for CAN1_TX_IRQHandler()

NVIC?

 /* NVIC configuration for CAN1 Transmission interrupt */

 HAL_NVIC_SetPriority(CAN1_TX_IRQn, 1, 0);

 HAL_NVIC_EnableIRQ(CAN1_TX_IRQn);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RWeis.0
Associate II

​Damn! I'm so ashamed...