HEX File generation with TASKING Compiler ( Solution)

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Locked
ChayMa

HEX File generation with TASKING Compiler ( Solution)

Post by ChayMa »

Hello everyone,

After a deep research and documentation about TASKING Compiler and ERIKA Enterprise makefile build system, I have been led to a solution for generating HEX file.
The conditions are :
ERIKA Enterprise GH65 latest release (Eclipse Photon + Rt-druid 3version)
TASKING Compiler path ( Using path of TASKING VX-Toolset version 6.1r1
I am working with AURIX TriCore Family.

Step 1 : ee.mk
line 117 remove the comment symbole and modify the TARGET $(TARGET_NAME).hex as following
TARGET := $(TARGET_NAME).hex

Step 2 : ee_arch_compiler_tasking_ctc.mk
Add the following instructions :
****************************************************************************************************************************************
OPT_CORE += $(EE_LINK) -C$(OSEE_TRICORE_MCU) --lsl-core=vtc --lsl-file=$(OSEE_LINKER_SCRIPT)\
-D__CPU__=$(OSEE_TRICORE_MCU) -Wl-D__PROC_$(OSEE_TRICORE_MCU_UC)__ $(OSEE_TRICORE_LINK_BMHD)
OPT_LTC += -o$(TARGET_NAME).hex:IHEX:4
****************************************************************************************************************************************
Modify the APP_TARGET to $(TARGET_NAME).hex as following
export APP_TARGETS := $(TARGET_NAME).hex

Step 3 : ee_arch_rules.mk
Add the following instructions:
*****************************************************************
##
## HEX files creation
##

$(TARGET_NAME).hex: $(TARGET_NAME).elf
$(OPT_CORE) $(OPT_LTC) $(OBJS) $(OPT_LIBS)
******************************************************************

After building the project the hex file will be generated in the out Repository.
The generated hex file has been tested by flashing it under AURIX board and the program was running successfully.

Best regards,
Locked