Tool/software: Code Composer Studio
Greetings everyone!
I have a code which uses the yellow highlighted interrupts as shown in attached image. Basically the code is supposed to read the values from ADC and display it on a CAN bus. With this code, DSP can also receive CAN messages, decode it and take some decisions. This works completely fine until I insert the external interrupt code! The ISR for XINT1 starts executing but it doesn’t seem to come out of the ISR and the CAN bus stops transmission completely.
I would be really grateful if someone could go through the C code (project file attached), the only problem area in the code is this function void controlLLC(void), there is an if statement, when this is satisfied, it goes into the XINT1 ISR and the CAN bus stops communication.
BR
Malvika
CAN_communication.zip