Skip to content

Instantly share code, notes, and snippets.

@pavel-kirienko
Last active January 24, 2024 19:19
Show Gist options
  • Save pavel-kirienko/6835194423df07f6160af19f7ea33a4d to your computer and use it in GitHub Desktop.
Save pavel-kirienko/6835194423df07f6160af19f7ea33a4d to your computer and use it in GitHub Desktop.
Converting flat binary into ARM ELF format, useful for firmware uploading via GDB
# The part .data=0x08000000 should be replaced with the correct base offset of the ROM.
# The value 0x08000000 is valid for STM32.
arm-none-eabi-objcopy -I binary -O elf32-little --change-section-address .data=0x08000000 input.bin output.elf
@pavel-kirienko
Copy link
Author

Relevant Dronecode Probe docs: https://kb.zubax.com/x/4YAh

@ubdussamad
Copy link

Thankyou, I was loking for this, saved me sme time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment