ldmia instruction is causing an exception on Nucleo-F103RB board
Hello,
Recently I tried to execute that code:
mov r0, =data
ldmia r0, {r4-r8}
And it generates an exception. The handler WWDG_IRQHandler is getting called, causing an infinite loop. If I try that instruction with lower registers (r0-r3 for example), it works. I assume the problem is the security level. How can I modify the CPSR register? Where is the initialization routine, which sets the contents of CPSR? How can I modify it?
Thanks in advance.