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
  • Thanks Aryan. I had tried that but it seems to generate more transactions on the SWCLK/SWDIO than I expected so I was hoping to just read (or write) a DP register. To keep transactions to a minimum. I am trying to bringup the SWD interface from a different MCU to nRF52 and using the J-link as a sample to learn/reverse-engineer the protocol.

Reply
  • Thanks Aryan. I had tried that but it seems to generate more transactions on the SWCLK/SWDIO than I expected so I was hoping to just read (or write) a DP register. To keep transactions to a minimum. I am trying to bringup the SWD interface from a different MCU to nRF52 and using the J-link as a sample to learn/reverse-engineer the protocol.

Children
No Data
Related