Skip to main content
RWeis.0
Associate II
December 23, 2018
Question

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

  • December 23, 2018
  • 3 replies
  • 1246 views

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?

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    December 23, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    RWeis.0
    RWeis.0Author
    Associate II
    December 23, 2018

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

    Tesla DeLorean
    Guru
    December 23, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    RWeis.0
    RWeis.0Author
    Associate II
    December 24, 2018

    ​Damn! I'm so ashamed...