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

sdk9.0 bootloader settings?

image description

what does the mean of the statements the red line marked  on  above picture ? In my product ,i want to combine the softdevice,application and bootloader into one hex,and burn this all_in_one hex to nrf51822 chip with the tool jlink ,this method is ok? 
Parents
  • Hi,

    It means that the default bootloader in the SDK does not know that there is a valid application on the chip and will not branch to the application. You can however change this with one line of code such that you can flash the bootloader, SoftDevice and application at once using e.g. jlink. See this post for how.

    Ole

  • Thank you for your help to solve my question. I had solved this problem. For bootloader example of sdk 9.0, once i change the code :

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

    to

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

    the bootloader_settings.hex is not needed which i found in the invalid link [https://devzone.nordicsemi.com/questi...] . NOW,I have successfuly combined the bootloader.hex, SoftDevice.hex and application.hex into one hex and everything is ok.

Reply
  • Thank you for your help to solve my question. I had solved this problem. For bootloader example of sdk 9.0, once i change the code :

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

    to

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

    the bootloader_settings.hex is not needed which i found in the invalid link [https://devzone.nordicsemi.com/questi...] . NOW,I have successfuly combined the bootloader.hex, SoftDevice.hex and application.hex into one hex and everything is ok.

Children
No Data
Related