Skip to main content
prashanth.mohan22
Associate III
May 9, 2019
Question

CAN interrupt callback while using FreeRTOS. As ususal ,I'm trying to access the CANRxFrame through RX callback interrupt, but while using freeRTOS , the interrupt is not getting generated.

  • May 9, 2019
  • 2 replies
  • 696 views

..

    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Employee
    May 9, 2019

    Hello prashanth ,

    Have you enable the CAN interruption and set the corresponding IO Settings ?

    You should use the debugger and check the status of your CAN IP.

    Best Regards

    Erwan

    prashanth.mohan22
    Associate III
    May 9, 2019

    Hello Erwan,

    Thanks for your prompt response.

    Now, it is working fine.

    Actually, there was some mismatching in pin mapping while code generation.  That's why both transmit and receive APIs aren't working correctly.

    I've another question here, where can I find the piece of code, in which the data pointer to CAN0TX and CAN0RX are mapped to PB[0] & PB[1]?  This could help me even understand better.

    Thanks in advance.

    Prashanth Mohan.