08-14-2018 08:00 AM - edited 08-15-2018 02:43 PM
08-27-2018 02:32 AM
Not sure if I understood properly the complete use case but I would say you can use objcopy to generate the bin file from the ELF so you can load it.
06-13-2019 02:35 PM
06-13-2019 02:59 PM
So, as Ibai said, you can use the mb-objcopy to convert the elf to binary:
mb-objcopy -O binary executable.elf executable.bin
You can use the -j to copy just certain sections in the ELF. For example, here I copy just the vector sections.
mb-objcopy -O binary -j .vectors.reset -j .vectors.sw_exception -j .vectors.interrupt -j .vectors.hw_exception user_application.elf vector_section.bin
In your application, you could use somew thing similar to the use case here:
Then use mb-objcopy to copy just this section to a binary file.