Replies: 1 comment 6 replies
-
I'm a bit confused as to why you have asked this here after asking this exact question on discord and getting an answer that imgtool does not support elf file processing, hence no it is not supported. You flash the signed hex file then in a debugger attach to the running target with the elf file |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I build my Zephyr application with
CONFIG_BOOTLOADER_MCUBOOT=y
and enable image signing, thezephyr.signed.bin
contains valid data, but thezephyr.elf
has zeros in the first 0x400 bytes (__rom_start_address
). When I load thezephyr.elf
via a debugger (Segger J-Link in Eclipse), this causes MCUboot to reject the image as invalid.I want to debug from the very start (not just after main()), so I need the debugger to load the signed image, including the correct header. Is there a way to generate an ELF that matches
zephyr.signed.bin
so the debugger uploads the real data instead of zeros?Thanks for help.
Beta Was this translation helpful? Give feedback.
All reactions