Home > other >  NRF51822SWD reset when debugging why register values are all wrong?
NRF51822SWD reset when debugging why register values are all wrong?

Time:09-16

Using KEIL5 environment, chip is nrf51822, can download program and debug, normal but reset when there is a problem
Thought for a long time still don't know where the problem is:

And after the reset I force the PC to the Startup file,

But in the executive LDR R0, after=SystemInit, R0 value but not SystemInit () address:

Even the address is not aligned.
But even so it can jump right SystemInit:

In executing the following sentence is then locked to 0 xfffffffe there



Someone had similar situation? How should solve??

CodePudding user response:

Soc has two cores, your own code and protocol stack is separate, debugging reset when the protocol stack are still in the running, programs run fly, can't synchronous debugging!

CodePudding user response:

After using the protocol stack, cannot the breakpoint, or it will run to fly,
  • Related