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.

TMS320C6678: Cannot capture NMI, exception and SWE

Part Number: TMS320C6678

Hi,

In a bare-metal application, I'm trying to test by exception handler, using the SWE instruction as trigger, but the NMI handler is never activated.

I suppose I have properly setup the CPU since I'm able to capture normal interrupts:

- I set up the ISTP=handler_table (4K aligned)

- I enable GIE, that is CSR|=1

- I enable NMI: IER|=0x03

If I try to generate an IR4 (with CCS debug), my I4 handler is correctly invoked, while if I execute an SWE, nothing happens.

The CPU is running in Supervisor mode.

Do I miss some initialization?  How can generate by SW an NMI or an internal exception?

.