Generate .hex file

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Post Reply
iakrout
Newbie
Posts: 6
Joined: Fri Mar 29, 2019 10:24 am

Generate .hex file

Post by iakrout » Fri Mar 29, 2019 3:41 pm

Hello, I am working on programming Aurix TC264 B-step. After compiling with Hightec Toolchaine Erika os v3, I obtained .elf format. I want to generate .hex.
thanks

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Generate .hex file

Post by paolo.gai » Mon Apr 01, 2019 11:49 am

The compiler provides tools for this. Please check the compiler manual.

Paolo

iakrout
Newbie
Posts: 6
Joined: Fri Mar 29, 2019 10:24 am

Re: Generate .hex file

Post by iakrout » Tue Apr 02, 2019 10:45 am

Hello,
In the ee.mk file modify the "TARGET := $(TARGET_NAME).hex" , add "export APP_TARGETS := $(TARGET_NAME).hex" (L241) to the ee_arch_compiler_gcc.mk file.

In the ee_arch_rules.mk add "$(TARGET_NAME).hex: $(TARGET_NAME).elf
$(EE_OBJCOPY) -O ihex $< $@ "

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Generate .hex file

Post by paolo.gai » Tue Apr 02, 2019 12:02 pm

Thanks for the suggestion!

PJ

Post Reply