Hello
I want to test my code ,about the esm interrupt.
please how to make lockstep errors.so my program can go into the esm interrupt
thank you
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.
Hello
I want to test my code ,about the esm interrupt.
please how to make lockstep errors.so my program can go into the esm interrupt
thank you
Hi Whong,
The CCM4 module supports error forcing mode. Writing 0x9 to MKEY will enable the error forcing mode.
The error forcing mode is similar to the compare mismatch. This test will generate "CCM-R4F compare error or CPU-lockstep (ESM 2.2)" error and "CCM-R4F self-test (ESM 1.31)" error.
Hi,
The error forcing mode (0x9) takes one cycle to complete. After that, the mode is automatically switched to lockstep mode (0x0).
After the error forcing is done, the error flag in ESM should be set.
1. ESM interrupt for group 1 should be enabled
2. Enable the ESM low interrupt:
3. Enable IRQ interrupt:
_enable_IRQ();
4. then ccmr5REG->CCMKEYR1 = 0x09; will generate ESM interrupt
Hello
I am using Debug mode with downloader. the interrupt dont response.
but when I disconnect the downlodaer,the cpu powerdown again .the program is endless loop.because I'm in an endless loop of interrupting content.
Does CCM test have anything to do with downloader and mode?
I see some links in this forum directions
why you can test
Hi Whong,
CCM diagnostic test should not be performed in debug mode.
Certain debug operations place the CPU in a halting debug state where the code execution is halted. Because halting debug events are asynchronous, there is a possibility for the debug requests to cause loss of lockstep. CCM-R5F will disable all functional diagnostics upon detection of halting debug requests. Core compare error will not be generated and flags will not update. A CPU reset is needed to ensure the CPUs are again in lockstep and will also re-enable the CCM-R5F.