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

Clear config after succesful DFU?

Hi,

We have a little issue that we at the moment need to cycle power on v3 nRF51822 after DFU.

We have determined the the reason has something to do with the whole complicated system configs - we use a customised bootloader that uses button, leds etc - and the app itself uses PWM (app_pwm patched my Mr Koppel). Issue now is that after DFU, the app freezes to nrf_drv_gpiote_out_init while initializing PWM.

I'm looking for a robust way to clear config after DFU to comparable to power cycle - how can we do that? Is there any suitable API? We do still want to utilise RAM retention for bonding info.

Br, //HS

Parents
  • Hi Henris,

    It's true that we don't reset the register configuration before we jump from bootloader to application. The application should not give assumption that all register is in reset state when it starts. It should configure all registers when start using the peripheral. Do you have the issue when you test with your bootloader + our example application ?

    If possible please provide us a simple example(bootloader + application) that show the issue that we can reproduce the issue here (prefer if it can be tested on nRF51 DK board).

Reply
  • Hi Henris,

    It's true that we don't reset the register configuration before we jump from bootloader to application. The application should not give assumption that all register is in reset state when it starts. It should configure all registers when start using the peripheral. Do you have the issue when you test with your bootloader + our example application ?

    If possible please provide us a simple example(bootloader + application) that show the issue that we can reproduce the issue here (prefer if it can be tested on nRF51 DK board).

Children
No Data
Related