S32DS After changing the workspace, compile error

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

S32DS After changing the workspace, compile error

跳至解决方案
1,244 次查看
liyongfeng
Contributor II

After changing S32DS the workspace, compile and report the error:

make all
Building file: ../src/main.c
Invoking: GHS C Compiler for ARM Standalone
ccarm -preprocess_assembly_files -c99 --gnu_asm -g -dwarf2 -Onone -DSTART_FROM_FLASH -DINIT_STDBY_RAM -DARMCM7_SP -D__ITCM_INIT -D__DTCM_INIT -I"D:/D/FS_BmsProject/DEMO123/include" -cpu=cortexm7 -thumb -MD -c -o "src/main.o" "../src/main.c"
/bin/sh: ccarm: command not found
make: *** [src/subdir.mk:20: src/main.o] Error 127
"make all" terminated with exit code 2. Build might be incomplete.

 

0 项奖励
回复
1 解答
1,225 次查看
mikedoidge
NXP Employee
NXP Employee

Hello,

Could you please provide more details about what you mean by changing the workspace?

Did you create a new workspace and then open the project from another workspace? Or did you copy the project directory to the new workspace and then load existing project?

Did you use the import existing project wizard?

Did you try a Clean Build command first? It might be trying to perform an incremental build from the previous workspace.

Please check the path variable is set correctly for the project:

mikedoidge_0-1683745264086.png

Best Regards,

Mike

在原帖中查看解决方案

2 回复数
1,226 次查看
mikedoidge
NXP Employee
NXP Employee

Hello,

Could you please provide more details about what you mean by changing the workspace?

Did you create a new workspace and then open the project from another workspace? Or did you copy the project directory to the new workspace and then load existing project?

Did you use the import existing project wizard?

Did you try a Clean Build command first? It might be trying to perform an incremental build from the previous workspace.

Please check the path variable is set correctly for the project:

mikedoidge_0-1683745264086.png

Best Regards,

Mike

1,170 次查看
liyongfeng
Contributor II

谢谢回复。和你说的一样,更换workspace后编译器路径丢失了,重新配置好就可以了。

0 项奖励
回复