Start address for output .hex file

Asked by Michal Lauterbach on 2017-10-18

I'm using toolchain to convert .bin file to .hex file (intel hex). I need to specify start address of .hex file to 0x1F000. I tried this command:

arm-none-eabi-objcopy -I binary -O ihex --set-start 0x1F000 blinky.bin blinkyout.hex

but it's probably wrong, I'm getting

:040000031000F000F9
:100000003035002015F201001DF201001FF2010041

but I need something like this:

:020000040001F9
:10F000003035002015F201001DF201001FF2010051

What I should change?
Thank you for you answer.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU ARM Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-18
Last reply:
2017-10-18
Uwe Bonnes (bon) said : #1

Use the srecord package. Look at the man pages how to specify offset when mapping a bin file to a hex file.

Can you help with this problem?

Provide an answer of your own, or ask Michal Lauterbach for more information if necessary.

To post a message you must log in.