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

Can I use nrfjprog to read the debug port (DP) register

Is there a way on the command-line to read the debug port (DP) register or access port (AP) register for nRF52 via the the nrjfprog program?

I do not want to write my own code and build against the DLL but just call the nrfjprog like:

C:> nrfjprog --family nrf52 --readreg XXX

Thanks

Parents
  • Hi guraaf, I think the nrfjprog does more than just putting the device to debug mode. As it is using the Segger DLL's under the hood, it will try to communicate with the ATMEL chip that segger is using as an debug interface. I think this is not a good starting point for you to reverse engineer its traffic.

    For the starter, just read the "Debug and Trace" chapter to see how the nRF chip be put in debug mode. This is better way if you want to control the SWD lines completely.

Reply
  • Hi guraaf, I think the nrfjprog does more than just putting the device to debug mode. As it is using the Segger DLL's under the hood, it will try to communicate with the ATMEL chip that segger is using as an debug interface. I think this is not a good starting point for you to reverse engineer its traffic.

    For the starter, just read the "Debug and Trace" chapter to see how the nRF chip be put in debug mode. This is better way if you want to control the SWD lines completely.

Children
No Data
Related