2022-05-18 03:57 AM
I was working on the STM32MP157A-DK1 board which has Cortex-A7 + Cortex-M4 processors. I wanted to configure the watchpoints present specifically on the Cortex-A7 processor via C code. The Cortex-A7 technical reference manual indicates the use of MRC and MCR instructions for the same, which I think should be inlined into my C code. But I am not completely sure about this. If I try to configure using MCR instruction, it would involve configuring the general-purpose register first(R0-R14) first to move some value into the debug register, which I was not able to do.
Kindly someone help me with some required documentation.