S32DS examples compile issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32DS examples compile issue

3,657 次查看
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"

标签 (1)
3 回复数

2,627 次查看
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

2,627 次查看
taehokwon
Contributor I

Thanks.

0 项奖励
回复

2,627 次查看
weisenzhang
Contributor I

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

0 项奖励
回复