PIC18F87J50 Not compiling in Flowcode 9 was working in FC8

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
jonathanm
Posts: 2
http://meble-kuchenne.info.pl
Joined: Thu Dec 31, 2020 12:51 am
Has thanked: 2 times

PIC18F87J50 Not compiling in Flowcode 9 was working in FC8

Post by jonathanm »

Hi I have been using a PIC18F87J50 with FC8 for some time and the other day it stopped opening, tried reinstalling which did not work.

So I installed a trial copy of FC9 and it will now open but will not compile to hex.

See bellow the following message from the compiler and the attached source code.



Target folder: E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working
Source name: E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working\LC02 Firmware - ULP V2.03 - 210412.fcfx
Title:
Description:
Device: PIC.18F.18F87J50
Generated by: Flowcode v9.1.0.27
Date: Monday, April 12, 2021 11:14:29
Users: 1
Registered to: jonathanm (jonathanm)
Licence key: Ladder
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 18F87J50 "E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working\" "LC02 Firmware - ULP V2.03 - 210412"

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982F2C26BF78BFC32C650CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1BF2A9420263CDAEEC22F549213B2E20A6A0704CBC762DED

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>REM REVISION: 1.0

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>REM DATE: 29\03\2021

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat

E:\_TEFTRONIX\Tefol\Control Systems (Cards)\LC02\Flowcode 8\LC02 Firmware\Working>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8.exe" --chip=18F87J50 "LC02 Firmware - ULP V2.03 - 210412.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\pic\bin\picc18 --chip=18F87J50 LC02 Firmware - ULP V2.03 - 210412.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
LC02 Firmware - ULP V2.03 - 210412.c:
34387: #warning "This interrupt has previously been enabled, so the macro <Main_Int> may never get called."
^ (162) #warning: "This interrupt has previously been enabled, so the macro <Main_Int> may never get called." (warning)
34400: #warning "This interrupt has previously been enabled, so the macro <Main_Int> may never get called."
^ (162) #warning: "This interrupt has previously been enabled, so the macro <Main_Int> may never get called." (warning)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Enable_1()
3112: old_tris = *tris_reg;
^ (192) undefined identifier "old_tris"
^ (192) undefined identifier "tris_reg"
^ (981) pointer required
^ (981) pointer required
3113: *tris_reg = old_tris | tris_mask;
^ (981) pointer required
^ (981) pointer required
^ (192) undefined identifier "tris_mask"
. .

(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Autoclose turned off


FINISHED
Attachments
LC02 Firmware - ULP V2.03 - 210412.fcfx
(1.4 MiB) Downloaded 262 times

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: PIC18F87J50 Not compiling in Flowcode 9 was working in FC8

Post by medelec35 »

Hi, jonathanm,
I have created a temporary fix.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.

C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC
Replace the existing file with the attached file.
Hopefully you will be able to recompile after reloading flowchart.
Attachments
PIC_CAL_ADC.c
(126.9 KiB) Downloaded 307 times
Martin

jonathanm
Posts: 2
Joined: Thu Dec 31, 2020 12:51 am
Has thanked: 2 times

Re: PIC18F87J50 Not compiling in Flowcode 9 was working in FC8

Post by jonathanm »

Thanks.

Works well. :D

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: PIC18F87J50 Not compiling in Flowcode 9 was working in FC8

Post by medelec35 »

That's great.
Thanks for the update.
Martin

Post Reply