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

DFU addition not compiling

I had a working application and was trying to add DFU functionality to it. in order to do that i needed to add a bunch of files and i am at a point where i dont knwo what file i need to add in order to continue

Edit:I got it to compile after all but i still have a memory issue

Output/Release/Exe/sbd_mlock.elf section `.bootloader_settings_page' will not fit in region `UNPLACED_SECTIONS'

region `UNPLACED_SECTIONS' overflowed by 4096 bytes

Set Memory Segments 

FLASH RX 0x0 0x80000
RAM RWX 0x20000000 0x10000
bootloader_settings_page R 0x0007F000 0x1000
uicr_bootloader_start_address R 0x10001014 0x4

do i just need to change the bootloader_settings_page R 0x0007F000 0x1000 to bootloader_settings_page R 0x0007EB00 0x1500?

Edit: I found solution, but feel it is not a good one. I assume Segger Embedded Studio should generate a the flash_placement.xml file at each build, however, it appears it doesnt. as such i had to manually modify the the flash_placement.xml file to include the memory mapping locations even though i clearly set them in the set memory segment section.

Am i missing a setrttings option here to force SES to generate the flash_placement file?

Related