PIC24F FATFS example not compiling?
I have been trying to use the pic24 example that comes with the FATFS library download on MPLAB X, but everytime I go to build the project this appears on the output:
CLEAN SUCCESSFUL (total time: 6s)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/Ben/MPLABXProjects/FATFS test.X'
make -f nbproject/Makefile-default.mk dist/default/production/FATFS_test.X.production.hex
make[2]: Entering directory `C:/Users/Ben/MPLABXProjects/FATFS test.X'
"C:\Program Files (x86)\Microchip\xc16\v1.20\bin\xc16-gcc.exe" C:/Users/Ben/Documents/FATFS/examples/pic24/ccsbcs.c -o build/default/production/_ext/2024670909/ccsbcs.o -c -mcpu=24FJ64GA002 -MMD -MF "build/default/production/_ext/2024670909/ccsbcs.o.d" -g -omf=elf -mlarge-code -mlarge-data -O0 -msmart-io=1 -Wall -msfr-warn=off
make[2]: Leaving directory `C:/Users/Ben/MPLABXProjects/FATFS test.X'
make[1]: Leaving directory `C:/Users/Ben/MPLABXProjects/FATFS test.X'
make[2]: *** No rule to make target `build/default/production/_ext/2024670909/diskio.o', needed by `dist/default/production/FATFS_test.X.production.hex'. Stop.
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 5s)
There are no visible errors (red underlined sections) in any of the source files, and I have not modified the code from the download. I have checked and the correct device is set under project properties. I am using XC16 v1.23, and I am sure that all the source files that are used have been included.
Comments
6 years ago
Its odds-on you're missing a library somewhere.
Answer 6 years ago
Not sure what was going on. I restarted the IDE and it worked fine...
Answer 6 years ago
+1