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.

TMS570LS1114: CAN message box interrupt disable and enable while running is not working.

Part Number: TMS570LS1114

Hello,

I had used to disable the can message interrupt for message box dynamically while program is running by using the below code snippet,

while ((canREG1->IF2STAT & 0x80U) == 0x80U);

canREG1->IF2MCTL = 00001088uL;
canREG1->IF2CMD = 0xC0u;
canREG1->IF2NO = 1u;

while ((canREG1->IF2STAT & 0x80U) == 0x80U);

And this function is successful. Please let me know is there any problem in this code snippet.