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 there,
I am using HALCoGen generated code for the RM48L952, I am not using interrupts (they are disabled via _disable_interrupts_(), vim is also configured to not generate interrupts.
To check for errors I check esmREG->SR1[0..2], esmREG->SSR2 and the core cp15 registers (datafault, instructionfault..).
I want to run checkRAMUERRTest() generated by HALCoGen periodically.
When running without debugger connected (after PORST) this works fine.
However when I connect via JTAG a prefetchEntry interrupt is called at the end of the checkRAMUERRTest function. If I then restart (nRST) and re-run the program no prefetchEntry interrupt is generated.
In the prefetchEntry i read out the cp15 registers.
_coreGetInstructionFault_() returns 0xd indicating permission
_coreGetInstructionFaultAddress_() returns 0xe3cfefc6.
Any help on where or how to look for the instruction fault would be welcome.
Is this related to the MPU or CPU mode (sys, user, ..)?
Best regards,,
Karel