Arduino compilation error (Windows Path problem)
Posted: Fri Jan 05, 2018 4:13 pm
Hi I'm trying to use flowcode 7 with an arduino and can't get the compiler to launch, because of the way that windows doesn't like spaces in the directory address passed by flowcode. It's odd because windows doesn't mind the path when I compile the same code for a miac.
The compiler options are locked for avr/arduino and when I import a windows friendly path via an fcs file it is not saved but is overwritten with the default path.
Error messages from arduino compilation:
Target folder: C:\Users\areed.CCP\DOCUME~1\flowcode
Source name: C:\Users\areed.CCP\Documents\flowcode\arduino.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA328P
Generated by: Flowcode v7.2.1.4
Date: Friday, January 05, 2018 14:54:13
Users: 1
Registered to: itservices
Licence key: NH8X5C
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.elf" "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.c" "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.lst"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat reported error code 1
FINISHED
Success message from Miac compilation:
Target folder: C:\Users\areed.CCP\DOCUME~1\flowcode
Source name: C:\Users\areed.CCP\Documents\flowcode\arduino.fcfx
Title:
Description:
Device: PIC.18F.MIAC V2
Generated by: Flowcode v7.2.1.4
Date: Friday, January 05, 2018 14:50:57
Users: 1
Registered to: itservices
Licence key: NH8X5C
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=18F4550 "arduino.c" --MSGDISABLE=359,1273,1388 --CODEOFFSET=800h --ROM=default,-0-7FF
Microchip MPLAB XC8 C Compiler (Free Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
Employing 18F4550 errata work-arounds:
* Corrupted fast interrupt shadow registers
. . .
Memory Summary:
Program space used 11Ah ( 282) of 7800h bytes ( 0.9%)
Data space used 2Bh ( 43) of 800h bytes ( 2.1%)
Configuration bits used 7h ( 7) of 7h words (100.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space used 0h ( 0) of 8h bytes ( 0.0%)
Data stack space used 0h ( 0) of 7A0h bytes ( 0.0%)
You have compiled in FREE mode.
Using Omniscient Code Generation that is available in PRO mode,
you could have produced up to 60% smaller and 400% faster code.
See http://www.microchip.com/MPLABXCcompilers for more information.
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\tools\DoNothing\DoNothing.exe
Launching the programmer...
C:\Program Files (x86)\Flowcode 7\tools\mLoader\mLoader.exe -miac "arduino.hex"
Thanks,
Andrew
The compiler options are locked for avr/arduino and when I import a windows friendly path via an fcs file it is not saved but is overwritten with the default path.
Error messages from arduino compilation:
Target folder: C:\Users\areed.CCP\DOCUME~1\flowcode
Source name: C:\Users\areed.CCP\Documents\flowcode\arduino.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA328P
Generated by: Flowcode v7.2.1.4
Date: Friday, January 05, 2018 14:54:13
Users: 1
Registered to: itservices
Licence key: NH8X5C
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.elf" "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.c" "C:\Users\areed.CCP\DOCUME~1\flowcode\arduino.lst"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avra.bat reported error code 1
FINISHED
Success message from Miac compilation:
Target folder: C:\Users\areed.CCP\DOCUME~1\flowcode
Source name: C:\Users\areed.CCP\Documents\flowcode\arduino.fcfx
Title:
Description:
Device: PIC.18F.MIAC V2
Generated by: Flowcode v7.2.1.4
Date: Friday, January 05, 2018 14:50:57
Users: 1
Registered to: itservices
Licence key: NH8X5C
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=18F4550 "arduino.c" --MSGDISABLE=359,1273,1388 --CODEOFFSET=800h --ROM=default,-0-7FF
Microchip MPLAB XC8 C Compiler (Free Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
Employing 18F4550 errata work-arounds:
* Corrupted fast interrupt shadow registers
. . .
Memory Summary:
Program space used 11Ah ( 282) of 7800h bytes ( 0.9%)
Data space used 2Bh ( 43) of 800h bytes ( 2.1%)
Configuration bits used 7h ( 7) of 7h words (100.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space used 0h ( 0) of 8h bytes ( 0.0%)
Data stack space used 0h ( 0) of 7A0h bytes ( 0.0%)
You have compiled in FREE mode.
Using Omniscient Code Generation that is available in PRO mode,
you could have produced up to 60% smaller and 400% faster code.
See http://www.microchip.com/MPLABXCcompilers for more information.
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\tools\DoNothing\DoNothing.exe
Launching the programmer...
C:\Program Files (x86)\Flowcode 7\tools\mLoader\mLoader.exe -miac "arduino.hex"
Thanks,
Andrew