Hi,I'am try to update the bootloader. But it stop at 1%. I don't what I miss.
Hi,I'am try to update the bootloader. But it stop at 1%. I don't what I miss.
Hi James,
Thanks for the files. Looking at the files I can see that it exceed the maximum size of the bootloader. In your case your bootloader has the size of 0x4000 (16384) when the maximum size of the bootloader should only be DFU_BL_IMAGE_MAX_SIZE (BOOTLOADER_SETTINGS_ADDRESS - BOOTLOADER_REGION_START)
In SDK v9, by default it's 0x3C00. (1 page is used for bootloader setting)
Which modification you added in your bootloader?
If you need to extend the size of the bootloader, you would need to move it down from address 0x3C000 to make more room for the bootloader (when you would need to modify BOOTLOADER_REGION_START define in dfu_types.h accordingly)
@James: The problem is that the binary doesn't have address. So if you have some code at address 0x3C000 and then some code at address 0x3FC00 (the bootloader setting) then the binary will be from 0x3C000 to 0x3FCFF. If you change the start address to 0x3A000 for example the binary file will be increased from 0x3A000 to 0x3FCFF. It's doesn't matter if you have some blank pages in between, they will be 0xFFFFFF in the binary file.
@James: The problem is that the binary doesn't have address. So if you have some code at address 0x3C000 and then some code at address 0x3FC00 (the bootloader setting) then the binary will be from 0x3C000 to 0x3FCFF. If you change the start address to 0x3A000 for example the binary file will be increased from 0x3A000 to 0x3FCFF. It's doesn't matter if you have some blank pages in between, they will be 0xFFFFFF in the binary file.