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.

Exclusive Area should not be used inside Irq handling

MCAL: Jacinto 7

In Can_Irq.c inside each Irq handling is used Exclusive area :

        SchM_Enter_Can_CAN_EXCLUSIVE_AREA_0();
        Can_0_Int0ISR_Fun();
        SchM_Exit_Can_CAN_EXCLUSIVE_AREA_0();

Problem is that in case of Receive from Can_0_Int0ISR_Fun will be executed complete Com stack. From this function will be executed Can_mcanReadRxBuffInterrupt > CanIf_RxIndication > Com... > PduR 
For all this calls the interrupt will be disabled. In our case at the end we will try to Set an Event. 
According with Autosar specification Set event cannot be executed when interrupt are disabled. 
SchM_Enter_Can_CAN_EXCLUSIVE_AREA_0 and SchM_Exit_Can_CAN_EXCLUSIVE_AREA_0 should be removed.