打印
[PIC32/SAM]

新手小白求助,在MPLAB X IDE上编译一直报错

[复制链接]
1009|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
maxs2017|  楼主 | 2019-6-14 09:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我是按照教程的步骤,编译EtherCAT SSC集成到LAN9252 SDK后的程序,用的XC32编译器,编译一直报这个错误,怎么找也找不到原因。求大神指导感激不尽。

不太会发图片,编译后报错如下:
清除已成功 (总时间: 2ms)
make -f nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/Administrator/Desktop/test-zhijieyong/new-method/SDK/SSC/PIC32-SPI'
make  -f nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk dist/SPI_XC32_PIC32MX795F512L/production/PIC32-SPI.production.hex
make[2]: Entering directory 'C:/Users/Administrator/Desktop/test-zhijieyong/new-method/SDK/SSC/PIC32-SPI'
ϵͳ�Ҳ���ָ����·����
"C:\Program Files (x86)\Microchip\xc32\v1.20\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX795F512L -DPIC32_STARTER_KIT -DPIC32_HW -DUSE_SPI -I../Common -MMD -MF build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/9252_HW.o.d -o build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/9252_HW.o ../Common/9252_HW.c
ϵͳ�Ҳ���ָ����·����
make[2]: *** [build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/9252_HW.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/coeappl.o] Error 1
"C:\Program Files (x86)\Microchip\xc32\v1.20\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX795F512L -DPIC32_STARTER_KIT -DPIC32_HW -DUSE_SPI -I../Common -MMD -MF build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/coeappl.o.d -o build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/coeappl.o ../Common/coeappl.c
nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk:237: recipe for target 'build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/9252_HW.o' failed
nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk:243: recipe for target 'build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/coeappl.o' failed
ϵͳ�Ҳ���ָ����·����
make[2]: *** [build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatappl.o] Error 1
"C:\Program Files (x86)\Microchip\xc32\v1.20\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX795F512L -DPIC32_STARTER_KIT -DPIC32_HW -DUSE_SPI -I../Common -MMD -MF build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatappl.o.d -o build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatappl.o ../Common/ecatappl.c
nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk:249: recipe for target 'build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatappl.o' failed
ϵͳ�Ҳ���ָ����·����
make[2]: *** [build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatcoe.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
"C:\Program Files (x86)\Microchip\xc32\v1.20\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX795F512L -DPIC32_STARTER_KIT -DPIC32_HW -DUSE_SPI -I../Common -MMD -MF build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatcoe.o.d -o build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatcoe.o ../Common/ecatcoe.c
nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk:255: recipe for target 'build/SPI_XC32_PIC32MX795F512L/production/_ext/2108356922/ecatcoe.o' failed
make[2]: Leaving directory 'C:/Users/Administrator/Desktop/test-zhijieyong/new-method/SDK/SSC/PIC32-SPI'
nbproject/Makefile-SPI_XC32_PIC32MX795F512L.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/Administrator/Desktop/test-zhijieyong/new-method/SDK/SSC/PIC32-SPI'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

编译已失败 (退出值2, 总时间: 1s)

使用特权

评论回复
沙发
小灵通2018| | 2019-6-16 17:44 | 只看该作者
下载个官方的工程试试。

使用特权

评论回复
板凳
systemchip| | 2019-6-17 09:54 | 只看该作者
Clean and Build 试一试

使用特权

评论回复
地板
hu9jj| | 2019-6-17 12:02 | 只看该作者
试试用MCC来新建一个项目。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝