Compilation error for lwip_mpc5748g code

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

Compilation error for lwip_mpc5748g code

1,313 Views
rajani_sureja33
Contributor III

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)

Labels (1)
3 Replies

980 Views
stanish
NXP Employee
NXP Employee

Hi

Before you compile the project, please generate the configuration files first.

Right click on .pe file and select "Generate Processor Expert Code"

When the code is generated press Build button

pastedImage_1.png

hope it helps.

Stan

980 Views
rajani_sureja33
Contributor III

Hi Sliva,

I have go through the steps provided by you. but still i got the same error. Attached screenshot for error information.

FYI. I am not getting error for all the example code which are provided by s32 design studio. for some of the examples, i cant able to fetch the source files and that's why come through error message like this.

If you provide lwip source files - sdk (.zip) for this specific board or platform then also it will be good. Screenshot from 2019-01-25 15-02-58.png

Regards,

Rajani Sureja

0 Kudos

980 Views
raresvasile
NXP Employee
NXP Employee

Hi Rajani Sureja,

Unfortunately, SDK is not supported under Linux environment. You can use a Windows system to run the examples and to use the SDK.

You can find the LWIP sources in SDK/middleware/tcpip and you should include:

   lwip + subfolders

   tcpip_stack/ + subfolders(without ports/platform)

   tcpip_stack/ports/platform/<device>

Best regards,

Rares