Page 1 of 1

Generate .hex file

Posted: Fri Mar 29, 2019 3:41 pm
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

Re: Generate .hex file

Posted: Mon Apr 01, 2019 11:49 am
by paolo.gai
The compiler provides tools for this. Please check the compiler manual.

Paolo

Re: Generate .hex file

Posted: Tue Apr 02, 2019 10:45 am
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 $< $@ "

Re: Generate .hex file

Posted: Tue Apr 02, 2019 12:02 pm
by paolo.gai
Thanks for the suggestion!

PJ