ds30 Loader free edition forums

Full Version: compile error #include syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to compile in MPlab x w/ Cx8 compiler. 

I am getting this:
Code:
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/New folder/FSAE/2015/Software/Car Devolopment software/_bootloader/ds30_Loader_140817/firmware_PIC18F/ds30Loader.X'
make  -f nbproject/Makefile-default.mk dist/default/production/ds30Loader.X.production.hex
make[2]: Entering directory 'D:/New folder/FSAE/2015/Software/Car Devolopment software/_bootloader/ds30_Loader_140817/firmware_PIC18F/ds30Loader.X'
"C:\Program Files (x86)\Microchip\xc8\v1.33\bin\xc8.exe" -C  --chip=18F45K22 -Q -G  --double=24 --float=24 --emi=wordwrite --opt=default,+asm,+asmfile,-speed,+space,-debug --addrqual=ignore --mode=free -P -N255 --warn=0 --asmlist --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,+plib --output=-mcof,+elf --stack=compiled "--errformat=%f:%l: error: (%n) %s" "--warnformat=%f:%l: warning: (%n) %s" "--msgformat=%f:%l: advisory: (%n) %s"  -obuild/default/production/_ext/1360937237/ds30loader.obj  ../src/ds30loader.asm
../src/devices_PIC18F.inc:17: error: (109) #include syntax error
../src/devices_PIC18F.inc:30: error: (109) #include syntax error
../src/devices_PIC18F.inc:33: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:35: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:36: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:43: error: (109) #include syntax error
../src/devices_PIC18F.inc:46: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:48: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:49: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:56: error: (109) #include syntax error
../src/devices_PIC18F.inc:59: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:61: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:62: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:68: error: (109) #include syntax error
../src/devices_PIC18F.inc:74: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:81: error: (109) #include syntax error
../src/devices_PIC18F.inc:84: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:86: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:87: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:93: error: (109) #include syntax error
../src/devices_PIC18F.inc:99: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:105: error: (109) #include syntax error
../src/devices_PIC18F.inc:108: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:111: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:117: error: (109) #include syntax error
../src/devices_PIC18F.inc:123: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:129: error: (109) #include syntax error
../src/devices_PIC18F.inc:132: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:134: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:135: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:141: error: (109) #include syntax error
../src/devices_PIC18F.inc:147: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:153: error: (109) #include syntax error
../src/devices_PIC18F.inc:156: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:159: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:165: error: (109) #include syntax error
../src/devices_PIC18F.inc:171: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:177: error: (109) #include syntax error
../src/devices_PIC18F.inc:182: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:183: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:189: error: (109) #include syntax error
../src/devices_PIC18F.inc:192: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:195: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:198: warning: (111) redefining preprocessor macro "ROWSIZEW" (../src/devices_PIC18F.inc: 27)
../src/devices_PIC18F.inc:201: error: (109) #include syntax error
../src/devices_PIC18F.inc:207: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:213: error: (109) #include syntax error
../src/devices_PIC18F.inc:219: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:222: warning: (111) redefining preprocessor macro "ROWSIZEW" (../src/devices_PIC18F.inc: 27)
../src/devices_PIC18F.inc:225: error: (109) #include syntax error
../src/devices_PIC18F.inc:231: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:233: warning: (111) redefining preprocessor macro "ROWSIZEW" (../src/devices_PIC18F.inc: 27)
../src/devices_PIC18F.inc:236: error: (109) #include syntax error
../src/devices_PIC18F.inc:239: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
../src/devices_PIC18F.inc:241: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
../src/devices_PIC18F.inc:242: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:245: warning: (111) redefining preprocessor macro "ROWSIZEW" (../src/devices_PIC18F.inc: 27)
../src/devices_PIC18F.inc:274: error: (109) #include syntax error
(908) exit status = 1
make[2]: *** [build/default/production/_ext/1360937237/ds30loader.obj] Error 1
../src/devices_PIC18F.inc:277: warning: (111) redefining preprocessor macro "MAX_FLASH" (../src/devices_PIC18F.inc: 20)
make[1]: *** [.build-conf] Error 2
../src/devices_PIC18F.inc:279: warning: (111) redefining preprocessor macro "RAM_SIZEB" (../src/devices_PIC18F.inc: 22)
make: *** [.build-impl] Error 2
../src/devices_PIC18F.inc:280: warning: (111) redefining preprocessor macro "DEVICEID" (../src/devices_PIC18F.inc: 23)
../src/devices_PIC18F.inc:286: error: (109) #include syntax error
../src/devices_PIC18F.inc:286: advisory: (1) too many errors (21)
nbproject/Makefile-default.mk:100: recipe for target 'build/default/production/_ext/1360937237/ds30loader.obj' failed
make[2]: Leaving directory 'D:/New folder/FSAE/2015/Software/Car Devolopment software/_bootloader/ds30_Loader_140817/firmware_PIC18F/ds30Loader.X'
nbproject/Makefile-default.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/New folder/FSAE/2015/Software/Car Devolopment software/_bootloader/ds30_Loader_140817/firmware_PIC18F/ds30Loader.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

Code is attached bellow.. any ideas? 
ds30 Loader free edition is built with MPASM and not MPLAB XC8. You cannot use C-style config pragma.
(2015-02-04, 11:37:21)Mikael Gustavsson Wrote: [ -> ]ds30 Loader free edition is built with MPASM and not MPLAB XC8. You cannot use C-style config pragma.

Would I use the MPLABx ASM compiler? 
MPASMX should work fine as well. It's part of MPLAB X IDE.
I got it to compile. Wink Thanks for the help