2381213_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2381213_en-US

2381213_en-US

Linker Error While Integrating ERIKA RTOS on SPC563 (e200Z3)

Dear Team,

I am currently using CodeWarrior 2.9 for the SPC563XX(Power Architecture e200Z3), which is equivalent to the MCP563xx microcontroller.

While attempting to integrate the ERIKA RTOS for the MCP56xx family, I am encountering the following linker errors:

mwldeppc: undefined: 'EE_hal_terminate_savestk' 

mwldeppc: Referenced from 'EE_oo_thread_stub' in ee_tstub.o

Upon investigation, I found that the function EE_hal_terminate_savestk() is defined in an assembly (.S) file, which does not seem to be included in the compilation process.

To address this, I updated the default.mk script as shown below:

EE_CASM_SRCS += SW/ERIKA/pkg/cpu/e200zx/src/ee_oo.S 

EE_SRCS += $(call asm_to_c_filename,$(EE_CASM_SRCS))


However, the toolchain still does not include this file in the build, and the linker error persists.

Could you please advise on how to properly include this assembly file and resolve the compilation issue?


Thank you for your support.

Best regards,
Nagendra Pothula,  SW Architect

AVL ITC India

Re: Linker Error While Integrating ERIKA RTOS on SPC563 (e200Z3)

The linker error indicates that the function EE_hal_terminate_savestk is not being linked because the corresponding assembly file (.S) is not actually compiled by the assembler. Adding it to the makefile is correct, but you also need to ensure that it is processed by the assembler (not the C compiler) and that the resulting object file is included in the link step. Renaming or treating the .S file as .c is not a valid approach.

Please note that ERIKA Enterprise is a third-party open-source RTOS (OSEK/AUTOSAR-like) and is not an NXP product, so its integration and build setup are outside of NXP’s scope and need to be handled on your side.

For reference, you may find the following documentation helpful:
Freescale PPC e200 (MPC56xx) support page: https://erika.tuxfamily.org/wiki/index.php?title=Freescale_PPC_e200_%28MPC_56xx%29

Thank you for your understanding.

Tags (1)
No ratings
Version history
Last update:
‎06-16-2026 03:32 AM
Updated by: