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
  • I said it the wrong way, when executing bootloader_util_settings_get(&p_bootloader_settings) p_bootloader_settings-> bank_0 gives BANK_INVALID_APP. I tried with -Wall -O0 -g3, but had to change the FLASH origin to FLASH (rx) : ORIGIN = 0x3A000, LENGTH = 0x5C00 (and also in dfu_types.h). The problem still remains, no change at all. In flash my application is: FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x10000

Reply
  • I said it the wrong way, when executing bootloader_util_settings_get(&p_bootloader_settings) p_bootloader_settings-> bank_0 gives BANK_INVALID_APP. I tried with -Wall -O0 -g3, but had to change the FLASH origin to FLASH (rx) : ORIGIN = 0x3A000, LENGTH = 0x5C00 (and also in dfu_types.h). The problem still remains, no change at all. In flash my application is: FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x10000

Children
No Data
Related