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

Bootloader shutdown after DFU instead of resetting

Hi ,

I am using the secure bootloader example (SDK 15) as a template for my DFU solution. 

I am experiencing issue with the update process as the device shuts down after the update instead of reset. 

I tried to debug and saw that it reach the function bootloader_reset and run the NVIC_SystemReset function however it then shutdown. 

I am using a LDO for the voltage regulation in the circuit and initially i thought that it is related however i am using an app on the board that uses the same function to reset in order to go to the bootloader and that works fine. 

 

I verified it with the example in the SDK  without changes as well as my modified version. 

Please assist as i dont have any solid lead here.

 thanks in advance, 

Ibrahim

Parents
  • I tried to debug and saw that it reach the function bootloader_reset and run the NVIC_SystemReset function however it then shutdown. 

     There is no shutdown feature in nRF chips, the closest is the System OFF mode and calling NVIC_system reset should not make it go into that mode. Are you sure that this behavior happens due to the call NVIC_SystemReset? I highly doubt it.

  • Hi Aryan, 

    We Are using LDO to regulate the system voltage which might be the cause for this.

    It has an enable pin that is set to a logic "1" and my guess is that during the reset it falls and the system shutdown. 

    The reason it is weird for us is that we use the same function on the application and it does a reset correctly. 

    Does the NVIC_SystemReset change all the pins to logic "0"? if so why is it different from the way it works on the application side and can we change it to avoid changing the pins?

Reply
  • Hi Aryan, 

    We Are using LDO to regulate the system voltage which might be the cause for this.

    It has an enable pin that is set to a logic "1" and my guess is that during the reset it falls and the system shutdown. 

    The reason it is weird for us is that we use the same function on the application and it does a reset correctly. 

    Does the NVIC_SystemReset change all the pins to logic "0"? if so why is it different from the way it works on the application side and can we change it to avoid changing the pins?

Children
Related