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
  • Hello Einar, and thanks again. I tried your suggestion and the result was: After calling bootloader_app_is_valid(), in bootloader_settings.c the function bootloader_util_settings_get always returns BANK_INVALID despite of using this:

    uint8_t m_boot_settings[CODE_PAGE_SIZE] __attribute__ ((section(".bootloaderSettings"))) = {BANK_VALID_APP};
    

    I don't understand this issue.

    Thanks in advance

Reply
  • Hello Einar, and thanks again. I tried your suggestion and the result was: After calling bootloader_app_is_valid(), in bootloader_settings.c the function bootloader_util_settings_get always returns BANK_INVALID despite of using this:

    uint8_t m_boot_settings[CODE_PAGE_SIZE] __attribute__ ((section(".bootloaderSettings"))) = {BANK_VALID_APP};
    

    I don't understand this issue.

    Thanks in advance

Children
No Data