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

Device get stuck when trying to read MAC address via SWD

Hi,

I am using the command line tool nrfjprog to read the device MAC address using the following command:

nrfjprog --memrd 0x100000A4 --w 8 --n 6

I am connected using Segger J-link base. 

My problem is that after running this command the device get stuck and i have to reset it to make it work again.

Please let me know if i should do anything different as i need to be able to read the MAC address and continue working properly. 

Thank you,

Ibrahim Anabosi

Parents
  • Hi,

     

    This is the expected behavior.

    nrfjprog will halt the CPU when reading the flash. If your application uses the SoftDevice, you will assert if you call "nrfjprog --run" afterwards, as the CPU is only halted, not the peripherals, which will cause a timing assertion in the softdevice. Due to this, calling nrfjprog --reset makes sense after reading out the flash.

     

    If you are interested in seeing the sequence nrfjprog uses, add "--log" and then have a look at the generated log.log file.

    Kind regards,

    Håkon

Reply
  • Hi,

     

    This is the expected behavior.

    nrfjprog will halt the CPU when reading the flash. If your application uses the SoftDevice, you will assert if you call "nrfjprog --run" afterwards, as the CPU is only halted, not the peripherals, which will cause a timing assertion in the softdevice. Due to this, calling nrfjprog --reset makes sense after reading out the flash.

     

    If you are interested in seeing the sequence nrfjprog uses, add "--log" and then have a look at the generated log.log file.

    Kind regards,

    Håkon

Children
No Data
Related