Hi,
I'm using SES 4.52b with a (custom) nR52840 board.
SES generates both .elf and .hex files.
I've defined the following MemorySegment in the flash_placement.xml:
When I now start the debugger (which loads the .elf) the unused sections in this MemorySegment are filled with 0's. When I load the .hex file, the unused sections are properly filled with 0xff.
Is this a bug in the .elf loader? Or is there a way to make sure the unused sections remain untouched while loading an .elf?
Thanks in advance.
Kind regards,
Remco Poelstra
I'm using SES 4.52b with a (custom) nR52840 board.
SES generates both .elf and .hex files.
I've defined the following MemorySegment in the flash_placement.xml:
XML Source Code: flash_placement.xml
- <MemorySegment name="UICR" start="0x10001000" size="0x308">
- <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_bootloader_start_address" address_symbol="__start_uicr_bootloader_start_address" end_symbol="__stop_uicr_bootloader_start_address" start = "0x10001014" size="0x4" />
- <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_mbr_params_page" address_symbol="__start_uicr_mbr_params_page" end_symbol="__stop_uicr_mbr_params_page" start = "0x10001018" size="0x4" />
- <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_regout0" start="0x10001304" size="4"/>
- </MemorySegment>
Is this a bug in the .elf loader? Or is there a way to make sure the unused sections remain untouched while loading an .elf?
Thanks in advance.
Kind regards,
Remco Poelstra