Compiling errors

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

keejay
Flowcode v5 User
Posts: 115
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 15 times
Contact:

Compiling errors

Postby keejay » Mon Mar 30, 2020 10:00 am

Hi,

I haven't done much work on Flow Code for a while. I've just started with a new project and am now suddenly getting a lot of errors when trying to compile to .hex. They all end with "Autoclose turned off". The latest program one was working fine until I added the GPS component. Even without using the component in the program it suddenly won't compile. Has there been an update that requires a settings change?

Please could someone assist.
Thanks in advance.
(I've added the messages below for reference - all errors were generated by just adding the GPS component, without using it anywhere in the program)

--------------------------------------------------------------------------------

Description:
Device: PIC.18F.18F46K22
Generated by: Flowcode v8.2.0.12
Date: Monday, March 30, 2020 10:51:32
Users: 1
Registered to: xxxxxxxxxx
License key: xxxxxx
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 18F46K22 "C:\Users\xxxxxx\Dropbox\ELECTR~1\PROJECTS\Bantam\ALTIME~1\SOFTWA~1\" "Altimeter"

C:\Users\xxxxxx\Dropbox\ELECTR~1\PROJECTS\Bantam\ALTIME~1\SOFTWA~1>C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=18F46K22 "Altimeter.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

Altimeter.c: myisr()
5811: switch (FCV_0ced1_GPS1__MX_IN_STATUS)
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_IN_STATUS"
5855: FCD_0ced1_GPS1__Process_String(FCV_0ced1_GPS1__MX_IN_LEN);
^ (361) function declared implicit int (warning)
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_IN_LEN"
5865: if (FCV_0ced1_GPS1__MX_IN_LEN < 80)
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_IN_LEN"
5870: FCV_0ced1_GPS1__MX_INCOMMING[FCV_0ced1_GPS1__MX_IN_LEN] = FCL_GPS_IN;
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_INCOMMING"
(981) pointer required ^
(981) pointer required ^
5882: FCV_0ced1_GPS1__MX_BUFF_OVERFLOW = 1;
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_BUFF_OVERFLOW"
5900: FCV_0ced1_GPS1__MX_IN_LEN = 0;
^ (192) undefined identifier "FCV_0ced1_GPS1__MX_IN_LEN"
5917: FCV_0ced1_GPS1__DATARECEIVED = 1;
^ (192) undefined identifier "FCV_0ced1_GPS1__DATARECEIVED"
(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

User avatar
LeighM
Matrix Staff
Posts: 2014
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 480 times
Been thanked: 691 times
Contact:

Re: Compiling errors

Postby LeighM » Mon Mar 30, 2020 11:04 am

Try adding GPS::Initialise()
These users thanked the author LeighM for the post:
medelec35 (Mon Mar 30, 2020 6:48 pm)
Rating: 5%
 

keejay
Flowcode v5 User
Posts: 115
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 15 times
Contact:

Re: Compiling errors

Postby keejay » Mon Mar 30, 2020 12:15 pm

Thanks, got it working.