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.

How to detect RM48x debug mode by software?

RM48x 16/32-Bit RISC Flash Microcontroller Technical Reference Manual explains in section 9.3.5 that any kind of lockstep testing won't work if the RM48x is in debug mode.

My question: Is it possible for the software to detect (by means of inspecting any register contents etc.) if the RM48x is in debug mode?

It would be cool if the software could bypass the CCM-R4 test functions if debug mode is detected.

Regards,

Erik

  • Erik,

    It should be possible to detect the debug status with the help of the ARM debug registers. This register interface is designed and described by ARM, please refer to the Cortex-R4F TRM for a detailed register description.
    On Hercules based devices those registers are memory mapped to address 0xFFA01000. I think you should be able to detect the debug state with the help of the DBGAUTHSTATUS register. Which unfortunately seems to be described wrongly in the TRM for the r1p3(C) but the TRM for the r1p4 seems to be ok.

    Best Regards,
    Christian