This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need to change BOOTLOADER_SETTINGS_ADDRESS when changing BOOTLOADER_REGION_START

Hello

I have some trouble with my DFU bootloader, because I changed the BOOTLOADER_REGION_START. This is, because I need some more space for bootloader.

Do I have to also change the BOOTLOADER_SETTINGS_ADDRESS?

So this are my current addresses:

#define BOOTLOADER_REGION_START         0x0003AC00
#define BOOTLOADER_SETTINGS_ADDRESS     0x0003E800

But, if I try to compile this, I get a linker error that the linker is unable to place the settings automatically with the required base address. I used the same offset between REGION_START and SETTINGS_ADDRESS as in the Nordic example (0x3C00). How can I get a working new SETTINGS_ADDRESS. Or do I even have to change the SETTINGS_ADDRESS?

Regards, BTprogrammer

Parents
  • Did you made the corresponding changes in the Toolchain(KEIL, GCC) too ? If you are using KEIL MDK5, then you need to update IROM1 (option for target -> target). You can keep the IRAM1 as it is.

  • Ok Vidar, thanks for your help! I changed my START_ADDRESS to

    #define BOOTLOADER_REGION_START         0x0003AB00 
    

    and my SETTINGS_ADDRESS to:

    #define BOOTLOADER_SETTINGS_ADDRESS     0x0003FC00
    

    Now it compiles and I can use the standard app_valid_setting_apply.hex file. Is it right, that this address settings "waste" a complete page only for the settings? Is there another way to save some bytes? Regards, BTprogrammer

Reply
  • Ok Vidar, thanks for your help! I changed my START_ADDRESS to

    #define BOOTLOADER_REGION_START         0x0003AB00 
    

    and my SETTINGS_ADDRESS to:

    #define BOOTLOADER_SETTINGS_ADDRESS     0x0003FC00
    

    Now it compiles and I can use the standard app_valid_setting_apply.hex file. Is it right, that this address settings "waste" a complete page only for the settings? Is there another way to save some bytes? Regards, BTprogrammer

Children
No Data
Related