This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TDA2PXEVM: Getting Exception while posting event in mcan Rx ISR.

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hi,

In mcan Rx ISR I am posting an event, the event is causing exception.

 Event_post(mcanRxEvent,UTILS_MCAN_RX_EVENT);

It’s crashing from “Void Event_post(Event_Object *event, UInt eventId)” function when its checking for matching eventIds in Queue.

 

               /* examine pendElem on pendQ */

    elem = (Event_PendElem *)Queue_head(pendQ);

 

    /* check for match, consume matching eventIds if so. */

    elem->matchingEvents = Event_checkEvents(event, elem->andMask, elem->orMask);

Regards,

Bikash

  • Hi Bikash,

    Above can happen due to 2 reasons:

    1. 'event' is not properly getting created in the system.

    2. 'event' is getting corrupted after creation  and before ISR.

    Check the contents of 'event' after creation and in the ISR before posting on it.

    Can you put break-point just before failure point and see if 'event' is proper before posting on it? If not and it is getting corrupted, then you can put data watch-point on 'event' and see where exactly it is getting updated/corrupted.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd

  • Hi Bikash,

    Since we are talking about this thread on emails, I think we can close this thread.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd