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

BOOTLOADER considers application is not valid

Hello to all,I have developed a board using the NRF51822; Currently I am using SDK v11, S130 v2.

I have a problem in my bootloader, since bootloader_app_is_valid (from the ble_dfu example from Nordic) is always false.

My application just blinks a led. The application works if there is no bootloader

I am using pure eclipse-gcc under eclipse mars.

i am using nRFgo studio within jlink arm and command line nrfjprog to upload all the softwares to the nRF51822.

I tried all the mergehex options (from devzone.nordicsemi) I even write 0x00000001 to bootloader_settings address and nothing changes.

Any idea on how can i update my code to check if a valid application is stored in flash?

thanks to all Miguel

Parents
  • You write that you have tried writing 0x00000001 to the bootloader settings address so it may be a dead end, but can you have written it to the correct address? You could do it in your application code as described in this post.

    Another question: you write that your blinky applications works without a bootloader. I assume that is with the SoftDevice also flashed onto the device? Or does your application start at address 0, leaving no room for the SoftDevice?

Reply
  • You write that you have tried writing 0x00000001 to the bootloader settings address so it may be a dead end, but can you have written it to the correct address? You could do it in your application code as described in this post.

    Another question: you write that your blinky applications works without a bootloader. I assume that is with the SoftDevice also flashed onto the device? Or does your application start at address 0, leaving no room for the SoftDevice?

Children
No Data
Related