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.
Hi,
MCAN interrupt stops occurring after breakpoint anywhere in the code.
How can I prevent a breakpoint from disabling interrupts?
Ari.
Ari,
In case you are working with a C2000ware example, could you kindly specify the C2000ware version?
If it is a custom example, could you share the code of the ISR?
Thanks.
Ari,
What are the values for the DBGSUSP_FREE and AUTOWAKEUP bits? Can you change those values and try?
Hareesh,
After MCAN initialization in the mcan_ex4_receive example:
DBGSUSP_FREE = 0;
AUTOWAKEUP = 0;
There was no effect on changing the value of AUTOWAKEUP.
If I set DBGSUSP_FREE = 1, breakpoints no longer disable MCAN interrupts from occurring.
I would like to know in which case it would be useful to set DBGSUSP_FREE = 0, why would I want debug to disable MCAN?
Ari
Sahil,
I'm using C2000Ware_5_00_00_00, this is not a custom example, it is the mcan_ex4_receive.
Ari
I would like to know in which case it would be useful to set DBGSUSP_FREE = 0, why would I want debug to disable MCAN?
That bit is used for debug purposes. For normal use-case (like a customer application), it must be set to 1. We will add a note in our documentation.