XC8 1.45 syntax error programming PIC18F47K40
Posted: Tue Dec 08, 2020 10:24 am
Hello.
I hope someone could please help me.
Launching the Compiler / Linker, I'm experiencing the following error from the XC8 Compiler (version 1.45, free mode):
Target folder: C:\Users\ORS\Desktop\FLOWCODE
Source name: C:\Users\ORS\Desktop\FLOWCODE\CABLE_TESTER.fcfx
Title:
Description:
Device: PIC.18F.18F47K40
Generated by: Flowcode v8.2.2.15
Date: Monday, November 30, 2020 21:29:18
Users: 1
Registered to:
License key: *****
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 18F47K40 "C:\Users\ORS\Desktop\FLOWCODE\" "CABLE_TESTER"
C:\Users\ORS\Desktop\FLOWCODE>C:\PROGRA~4\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=18F47K40 "CABLE_TESTER.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
. . . . . . . . . . . . . . . . . . . . . . . . .
using updated 32-bit floating-point libraries; improved accuracy might increase code size
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CABLE_TESTER.as: 11546: (876) syntax error
CABLE_TESTER.as: 11550: (876) syntax error
CABLE_TESTER.as: 11554: (876) syntax error
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
Autoclose turned off
FINISHED
The C-Code lines the errors are related to, apparently do not have syntax error problem.
Trying compiling with 2.30 version of XC8, I got a different type of error:
error: (296) out of memory
The project should tests the continuity or the isolation between several Input / Output pins over a total of 24 different electrical cables, in order to confirm that the cable under test is correctly assembled and welded. The PIC commands some Multiplexers/Demultiplexers (CD4067) which feeds a positive +5 Volt to one Pin on the Input connector and connect the PIC ADC to one Pin on the Output connector of the electrical cable.
Since the program will be quite long, after adding a small amount of code, I try to compile the program in order to see if I've made some mistakes on the last code added.
If I delete any cable's macro (and the related "marco call"), it correctly get compiled so the issue would seem to be related to memory usage ..
But those errors came out after adding only a small amount of code and the used Program space in the previously correctly compiled program was only 38.6% so the issue shouldn't be related to the PIC's used memory.
Am I doing something wrong?
Many thanks in advance and best regards
Rov
I hope someone could please help me.
Launching the Compiler / Linker, I'm experiencing the following error from the XC8 Compiler (version 1.45, free mode):
Target folder: C:\Users\ORS\Desktop\FLOWCODE
Source name: C:\Users\ORS\Desktop\FLOWCODE\CABLE_TESTER.fcfx
Title:
Description:
Device: PIC.18F.18F47K40
Generated by: Flowcode v8.2.2.15
Date: Monday, November 30, 2020 21:29:18
Users: 1
Registered to:
License key: *****
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 18F47K40 "C:\Users\ORS\Desktop\FLOWCODE\" "CABLE_TESTER"
C:\Users\ORS\Desktop\FLOWCODE>C:\PROGRA~4\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=18F47K40 "CABLE_TESTER.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
. . . . . . . . . . . . . . . . . . . . . . . . .
using updated 32-bit floating-point libraries; improved accuracy might increase code size
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CABLE_TESTER.as: 11546: (876) syntax error
CABLE_TESTER.as: 11550: (876) syntax error
CABLE_TESTER.as: 11554: (876) syntax error
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
Autoclose turned off
FINISHED
The C-Code lines the errors are related to, apparently do not have syntax error problem.
Trying compiling with 2.30 version of XC8, I got a different type of error:
error: (296) out of memory
The project should tests the continuity or the isolation between several Input / Output pins over a total of 24 different electrical cables, in order to confirm that the cable under test is correctly assembled and welded. The PIC commands some Multiplexers/Demultiplexers (CD4067) which feeds a positive +5 Volt to one Pin on the Input connector and connect the PIC ADC to one Pin on the Output connector of the electrical cable.
Since the program will be quite long, after adding a small amount of code, I try to compile the program in order to see if I've made some mistakes on the last code added.
If I delete any cable's macro (and the related "marco call"), it correctly get compiled so the issue would seem to be related to memory usage ..
But those errors came out after adding only a small amount of code and the used Program space in the previously correctly compiled program was only 38.6% so the issue shouldn't be related to the PIC's used memory.
Am I doing something wrong?
Many thanks in advance and best regards
Rov