Re: [devel] How to generate .hex image

Tidy(Chun hua)Jiang <tidyjiang@...>

Hi Boie,

Got it, thanks!

2017年1月18日 00:41于 "Boie, Andrew P" <andrew.p.boie@...>写道:

At the moment, you can add these two lines to your soc or arch-level Makefile to get ihex files generated.

A better enhancement would be to control this with Kconfig.


zephyr: $(KERNEL_HEX_NAME)



From: Tidy(ChunHua) Jiang [mailto:tidyjiang@...]
Sent: Sunday, January 15, 2017 6:40 PM
To: devel@...
Subject: [devel] How to generate .hex image



When building, some BOARDs will generate both .bin and .hex, but others only .bin.
Is there a build switch to control this ?

My current stupid method is that, enter the directory where zephyr.elf is located, and then type:
/opt/zephyr-sdk/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-eabi/arm-poky-eabi-objcopy -S -O ihex -R .note -R .comment -R COMMON -R .eh_frame zephyr.elf zephyr.hex




Join to automatically receive all group messages.