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

about NRF_POWER->GPREGRET

Hi,all.I have a question that NRF_POWER->GPREGRET will change it's value in what conditions?Power on or App reset?Can someone help me ?

Parents
  • For an unmodified bootloader: If the application that you have uploaded is not valid for any reason, then the device will start up in bootloader mode after power on reset. The bootloader will also read the GPREGRET register in order to know if a peer device (central device) wants to initiate bootloader mode or not. Perhaps you need to debug the bootloader code in order to know what is going on in your case.

    What development board are you using. If you are using the nRF51822/nRF51422 development kit together with the nRF6310 motherboard, then you need to connect the configured bootloader pin P0.7 to the button, otherwise it will be detected as pushed and you will always start up in bootloader mode.

    There is also a bootloader intro blog available here

Reply
  • For an unmodified bootloader: If the application that you have uploaded is not valid for any reason, then the device will start up in bootloader mode after power on reset. The bootloader will also read the GPREGRET register in order to know if a peer device (central device) wants to initiate bootloader mode or not. Perhaps you need to debug the bootloader code in order to know what is going on in your case.

    What development board are you using. If you are using the nRF51822/nRF51422 development kit together with the nRF6310 motherboard, then you need to connect the configured bootloader pin P0.7 to the button, otherwise it will be detected as pushed and you will always start up in bootloader mode.

    There is also a bootloader intro blog available here

Children
No Data
Related