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

Debug mode on nRF51822

Hi,

There were similar questions already anwsered but none of them work for me. So the situation is as follows. When i program the chip though SWD interface the chip probably enters debug mode and the power consumption is around 1mA which is a lot. The only way to get consumption down, is to turn the power off and then on again, physicaly resetting the chip.

Because this is acceptable in development environement we have a constant battery supply and we must do this programaticaly. How do we do this ?

While searhing for the anwser i stumbled upon an anwser which suggested writing to the reset register in power management section which actually bricked one of our prototypes. I cannot erase, program or read the chip anymore. So if you could help me oin this issue also that would be great.

All your anwsers are appreciated.

Parents
  • Hi,

    Thank you for replying. Trying that command resulted in error: pin_reset_ignore_pall (return code 8) which is a strange error since i cannot find it anywhere on the internet.

    In the meantime i rescued my prototype by trying recover command which seemed to have done the trick. So i did some more testing with the NRF_POWER->RESET register. Setting it to 1 seems to raise the power consumption from around 2mA to 4mA which is strange. Furthermore others than suggested toggling the reset pin to zero. From my understanding this is one of the progamming pins, but none of them helped lowering power consumption.

    Thank you from your help

  • Hi,

    Doing a --pinreset should do the trick. However, I have never seen the error you're referring to before. Can you post the version number of nrfjprog? (nrfjprog --version)

    Best regards Håkon

Reply Children
No Data
Related