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

How to make nrf51422 boot loader work in NRF51822

Hi,

I am using SDK 10 and Dev kit nrf51422 and used \nRF51_SDK_10.0.0_dc26b5e\examples\dfu\bootloader\pca10028\dual_bank_ble_s110\arm5_no_packs to make the bootloader work. It works fine. Now i need to make it work in nrf51822. When i used same boot loader, sfotdevice, app it does not work. The chip never responds.
Please help. Thanks

Parents
  • In order to flash a combined SoftDevice, Bootloader and Application, where the device jumps to the application without having to perform a OTA update to set the valid application flag, you have to set the BANK_VALID_APP flag in bootloader_settings.c, i.e. change the line

    uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used));   
    

    to the following

    uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) = {BANK_VALID_APP};
    

    -Bjørn

Reply
  • In order to flash a combined SoftDevice, Bootloader and Application, where the device jumps to the application without having to perform a OTA update to set the valid application flag, you have to set the BANK_VALID_APP flag in bootloader_settings.c, i.e. change the line

    uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used));   
    

    to the following

    uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) = {BANK_VALID_APP};
    

    -Bjørn

Children
No Data
Related