This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I avoid halting the CPU when reading/writing RAM from debugger?

I want to read and write RAM (target=nRF51822) from a custom C application while the CPU is running. Now, I can do this using the nrfjprog.dll and I get the expected values out. Only problem is that the CPU is halted and I can't seem to start it going again (calling the run function does nothing).

If I use the command line tool nfrjprog (as opposed to using the DLL in my own application) I see the same behavior.

If I try to simulate the same read/write behavior using JLink Commander the CPU is not halted and everything works as expected. I could change my application to use the Segger tools directly but that requires purchasing the SDK.

I use the PCA10001 evaluation board for programming the target.

Parents Reply Children
No Data
Related