S32DS examples compile issue

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

S32DS examples compile issue

2,969 Views
weisenzhang
Contributor I

hi, 

I have problem on compiling when imported the examples.

here is my log:

arm-none-eabi-gcc -DCPU_S32K144HFT0VLLT -DS32K -I"E:\workspace\FreeRTOS_Example\Sources" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/examples/demo_apps/FreeRTOS/sources" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/rtos/FreeRTOS/Source/include" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/rtos/FreeRTOS/Source/portable/MemMang" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/platform/devices/S32K144/include" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/platform/devices/S32K144" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/platform/devices" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/platform/hal/inc" -I"d:\Freescale\S32_ARM_v1.2\S32DS\S32_SDK_EAR_0.8.1/platform/drivers/inc" -O0 -g3 -Wall -c -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -specs=nano.specs -specs=nosys.specs --sysroot="D:\Freescale\S32_ARM_v1.2\eclipse\../Cross_Tools/gcc-arm-none-eabi-4_9/arm-none-eabi/newlib" -MMD -MP -MF"Sources/main.d" -MT"Sources/main.o" -c -o "Sources/main.o" "../Sources/main.c"
../Sources/main.c:61:17: fatal error: Cpu.h: No such file or directory
#include "Cpu.h"

Labels (1)
3 Replies

1,939 Views
stanish
NXP Employee
NXP Employee

Hello,

It seems like generated files from Processor Expert do not exist.

I'd recommend you to generate the processor expert code first since build process does not trigger the code generator.

 pastedImage_3.png

When the generation is done you should see the new project folder "Generated Code" which includes e.g. "cpu.h" that was missing when you initially compiled main.c.

Now you can build the project and at the end of the process you should see executable elf file being created:

pastedImage_4.png

Hope it helps.

Stan

1,939 Views
taehokwon
Contributor I

Thanks.

0 Kudos
Reply

1,939 Views
weisenzhang
Contributor I

thanks, Stan, that's right, it works now.

0 Kudos
Reply