Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

Home Forums MPLAB XC8 Tutorial Discussions How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater? Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

#2519

Karalan
Participant

Am using XC8 compiler version 1.42 and I tried with your suggestion but still I couldn’t. I got following 2 error with lot of warning:

 

CLEAN SUCCESSFUL (total time: 53ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory ‘C:/Users/CEERI/MPLABXProjects/SD_Card.X’
make -f nbproject/Makefile-default.mk dist/default/production/SD_Card.X.production.hex
make[2]: Entering directory ‘C:/Users/CEERI/MPLABXProjects/SD_Card.X’
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –pass1 –chip=18F4620 -Q -G –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” -obuild/default/production/ffsystem.p1 ffsystem.c
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –pass1 –chip=18F4620 -Q -G –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” -obuild/default/production/diskio.p1 diskio.c
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –pass1 –chip=18F4620 -Q -G –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” -obuild/default/production/ff.p1 ff.c
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –pass1 –chip=18F4620 -Q -G –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” -obuild/default/production/newmain.p1 newmain.c
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –pass1 –chip=18F4620 -Q -G –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” -obuild/default/production/ffunicode.p1 ffunicode.c
ffsystem.c:44: warning: (179) nested comments
diskio.c:31: warning: (361) function declared implicit int
diskio.c:38: warning: (361) function declared implicit int
diskio.c:45: warning: (361) function declared implicit int
diskio.c:69: warning: (361) function declared implicit int
diskio.c:76: warning: (361) function declared implicit int
diskio.c:83: warning: (361) function declared implicit int
diskio.c:112: warning: (361) function declared implicit int
diskio.c:121: warning: (361) function declared implicit int
diskio.c:130: warning: (361) function declared implicit int
diskio.c:160: warning: (361) function declared implicit int
diskio.c:169: warning: (361) function declared implicit int
diskio.c:178: warning: (361) function declared implicit int
ff.c:877: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:880: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:943: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:1002: warning: (373) implicit signed to unsigned conversion
ff.c:1008: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:1013: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:1076: warning: (373) implicit signed to unsigned conversion
ff.c:1081: warning: (373) implicit signed to unsigned conversion
ff.c:1099: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:1508: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:2197: warning: (373) implicit signed to unsigned conversion
ff.c:2304: warning: (373) implicit signed to unsigned conversion
ff.c:2564: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:2565: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:2846: warning: (373) implicit signed to unsigned conversion
ff.c:2934: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3019: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3060: warning: (373) implicit signed to unsigned conversion
ff.c:3101: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3107: warning: (373) implicit signed to unsigned conversion
ff.c:3163: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3165: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3166: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3176: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3179: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3180: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3182: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3202: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3204: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3220: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3224: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3225: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3226: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3229: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3232: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3324: warning: (373) implicit signed to unsigned conversion
ff.c:3342: warning: (373) implicit signed to unsigned conversion
ff.c:3436: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3498: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3499: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3623: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3707: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:3789: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4183: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4235: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4487: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4490: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4543: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4607: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
ff.c:4814: warning: (359) illegal conversion between pointer types
pointer to unsigned char -> pointer to const unsigned char
“C:\Program Files (x86)\Microchip\xc8\v1.42\bin\xc8.exe” –chip=18F4620 -G -mdist/default/production/SD_Card.X.production.map –double=24 –float=24 –emi=wordwrite –opt=+asm,+asmfile,-speed,+space,-debug,-local –addrqual=ignore –mode=free -P -N255 –warn=-3 –asmlist -DXPRJ_default=default –summary=default,-psect,-class,+mem,-hex,-file –output=default,-inhx032 –runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,-plib –output=-mcof,+elf:multilocs –stack=compiled:auto:auto:auto “–errformat=%f:%l: error: (%n) %s” “–warnformat=%f:%l: warning: (%n) %s” “–msgformat=%f:%l: advisory: (%n) %s” –memorysummary dist/default/production/memoryfile.xml -odist/default/production/SD_Card.X.production.elf build/default/production/newmain.p1 build/default/production/diskio.p1 build/default/production/ff.p1 build/default/production/ffsystem.p1 build/default/production/ffunicode.p1
Microchip MPLAB XC8 C Compiler (Free Mode) V1.42
Build date: Apr 12 2017
Part Support Version: 1.42
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

:: advisory: (1233) Employing 18F4620 errata work-arounds:
:: advisory: (1234) * Corrupted fast interrupt shadow registers
:: advisory: (1234) * Data in RAM location can be corrupted if async. reset occurs during write
:: warning: (1273) Omniscient Code Generation not available in Free mode
newmain.c:17: error: (1250) could not find space (559 bytes) for variable _FatFs
newmain.c:18: error: (1250) could not find space (548 bytes) for variable _Fil
(908) exit status = 1
nbproject/Makefile-default.mk:189: recipe for target ‘dist/default/production/SD_Card.X.production.hex’ failed
make[2]: Leaving directory ‘C:/Users/CEERI/MPLABXProjects/SD_Card.X’
nbproject/Makefile-default.mk:84: recipe for target ‘.build-conf’ failed
make[1]: Leaving directory ‘C:/Users/CEERI/MPLABXProjects/SD_Card.X’
nbproject/Makefile-impl.mk:39: recipe for target ‘.build-impl’ failed
make[2]: *** [dist/default/production/SD_Card.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 1s)