Generate .hex file

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Locked
iakrout

Generate .hex file

Post by iakrout »

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: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Generate .hex file

Post by paolo.gai »

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

Paolo
iakrout

Re: Generate .hex file

Post by iakrout »

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: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Generate .hex file

Post by paolo.gai »

Thanks for the suggestion!

PJ
Locked