ds30 Loader free edition forums

Full Version: dsPIC compiler issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying my luck on the dspic33FJ128GP804 and tryed compiling code with:
  • ASM 30
  • C30
  • XC16
All of them get the same results:
Code:
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/Dropbox/EV/2015 Software/Car Devolopment software/_bootloader/ds30_Loader_140817_test/ds30 Loader/firmware_16-bit'
make  -f nbproject/Makefile-default.mk dist/default/production/firmware_16-bit.production.hex
make[2]: Entering directory 'D:/Dropbox/EV/2015 Software/Car Devolopment software/_bootloader/ds30_Loader_140817_test/ds30 Loader/firmware_16-bit'
"C:\Program Files (x86)\Microchip\xc16\v1.23\bin\xc16-gcc.exe"   src/ds30loader.s  -o build/default/production/src/ds30loader.o  -c -mcpu=33FJ128GP804  -omf=elf -Wa,-MD,"build/default/production/src/ds30loader.o.d",--defsym=__MPLAB_BUILD=1,-g,--no-relax
src/ds30loader.s: Assembler messages:
src/ds30loader.s:62: Error: can't open settings.inc for reading
src/ds30loader.s:63: Error: can't open user_code.inc for reading
src/ds30loader.s:94: Error: bad or irreducible absolute expression
src/ds30loader.s:121: Error: bad or irreducible absolute expression
src/ds30loader.s:129: Error: bad or irreducible absolute expression
src/ds30loader.s:136: Error: Invalid mnemonic: 'userinit'
src/ds30loader.s:276: Error: non-constant expression in ".if" statement
src/ds30loader.s:391: Error: non-constant expression in ".if" statement
src/ds30loader.s:457: Error: Invalid operands specified ('bset NVMCON,#WR').
src/ds30loader.s:457:        Check operand #2. Operand must be between 0 and 15, inclusive.
src/ds30loader.s:461: Error: Invalid operands specified ('btsc NVMCON,#WR').
src/ds30loader.s:461:        Check operand #2. Operand must be between 0 and 15, inclusive.
src/ds30loader.s:479: Error: Invalid mnemonic: 'userexit'
src/ds30loader.s:491: Error: can't open uart.inc for reading
nbproject/Makefile-default.mk:100: recipe for target 'build/default/production/src/ds30loader.o' failed
make[2]: Leaving directory 'D:/Dropbox/EV/2015 Software/Car Devolopment software/_bootloader/ds30_Loader_140817_test/ds30 Loader/firmware_16-bit'
nbproject/Makefile-default.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/Dropbox/EV/2015 Software/Car Devolopment software/_bootloader/ds30_Loader_140817_test/ds30 Loader/firmware_16-bit'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [build/default/production/src/ds30loader.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

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


Do I have somthing misconfiggured? 

slacker

I've had the same errors, these warnings "src/ds30loader.s:62: Error: can't open settings.inc for reading" mean it can't find the .inc files and because of that it fails to build.
In my case it was because I was using MPLABX and it created its own project folder in the same directory as the src folder so I had to go through the files and change any reference to src/somefilename.inc to ../src/somefilename.inc to give it the correct path to the files relative to the new project folder, or I guess I could have moved the src folder into the MPLABX generated folder.
I've used it with the same pic and it works fine using XC16.
I have the software compiling now. Moving the files to the root directory of the project worked for me. I need to configure PPs next. Thanks for the help!