AnsweredAssumed Answered

Compilation error for lwip_mpc5748g code

Question asked by Rajani Sureja on Jan 24, 2019
Latest reply on Jan 29, 2019 by Rares Vasile

Hello Team,

 

I am using s32 design studio for MPC5748G and want to use lwip example code for DEVKIT-MPC5748G.

 

But during compilation i got build error as below,

 

Would you please help me out for this?

 

14:52:30 **** Build of configuration Debug_RAM for project lwip_mpc5748g ****
make -j4 all
Building file: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/core0_intc_sw_handlers.S
Building file: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/startup_MPC5748G.S
Building file: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/interrupt_vectors.S
Executing target #1 /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/core0_intc_sw_handlers.S
Executing target #3 /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/startup_MPC5748G.S
Building file: ../Sources/main.c
Executing target #2 /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/interrupt_vectors.S
Invoking: Standard S32DS Assembler
powerpc-eabivle-gcc "@Project_Settings/Startup_Code/core0_intc_sw_handlers.args" -c -o "Project_Settings/Startup_Code/core0_intc_sw_handlers.o" "/home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/core0_intc_sw_handlers.S"
Invoking: Standard S32DS Assembler
Executing target #4 ../Sources/main.c
powerpc-eabivle-gcc "@Project_Settings/Startup_Code/interrupt_vectors.args" -c -o "Project_Settings/Startup_Code/interrupt_vectors.o" "/home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/interrupt_vectors.S"
Invoking: Standard S32DS Assembler
powerpc-eabivle-gcc "@Project_Settings/Startup_Code/startup_MPC5748G.args" -c -o "Project_Settings/Startup_Code/startup_MPC5748G.o" "/home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/startup_MPC5748G.S"
Invoking: Standard S32DS C Compiler
powerpc-eabivle-gcc "@Sources/main.args" -MMD -MP -MF"Sources/main.d" -MT"Sources/main.o" -c -o "Sources/main.o" "../Sources/main.c"
Finished building: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/interrupt_vectors.S
 
Finished building: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/core0_intc_sw_handlers.S
 
Finished building: /home/rajani/NXP/S32DS_Power_v2017.R1/S32DS/S32_SDK_MPC574xx_BETA_0.9.0/platform/devices/MPC5748G/startup/gcc/startup_MPC5748G.S
 
../Sources/main.c:19:17: fatal error: Cpu.h: No such file or directory
 #include "Cpu.h"
                 ^
compilation terminated.
Sources/subdir.mk:32: recipe for target 'Sources/main.o' failed
make: *** [Sources/main.o] Error 1

 

14:52:30 Build Finished (took 180ms)

Outcomes