Page 1 of 1

PIC16F1615 compiler error

Posted: Sat Aug 31, 2019 2:38 pm
by baz1952
Have tried to compile a pice of code and get a compiler error for the charlieplex module
posting.php?f=63&mode=post&sid=dcce8c3c ... 8c0fef279a#
Source name: C:\Intelligas\GDMS Exp 1\Exp8_V1.fcfx
Title:
Description:
Device: PIC.16F.16F1615
Generated by: Flowcode v7.3.0.5
Date: Saturday, August 31, 2019 14:19:09
Users: 1
Registered to: bARRY wETTON
Licence key: K4RR9E
NOT FOR COMMERCIAL USE
http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=16F1615 "Exp8_V1.c" --MSGDISABLE=359,1273,1388
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

Exp8_V1.c: FCD_02191_led_charlieplexed1__AllOff()
1611: FCL_DUMMY = (FC_CAL_Port_In_DDR__x((&FCP_PORT_B), (&FCP_TRIS_B), (0x1), (0x0)));
^ (192) undefined identifier "FCP_PORT_B"
(192) undefined identifier "FCP_TRIS_B" ^
1617: FCL_DUMMY = (FC_CAL_Port_In_DDR__x((&FCP_PORT_B), (&FCP_TRIS_B), (0x2), (0x1)));
^ (192) undefined identifier "FCP_PORT_B"
(192) undefined identifier "FCP_TRIS_B" ^
1623: FCL_DUMMY = (FC_CAL_Port_In_DDR__x((&FCP_PORT_B), (&FCP_TRIS_B), (0x4), (0x2)));
^ (192) undefined identifier "FCP_PORT_B"
(192) undefined identifier "FCP_TRIS_B" ^
1635: FCL_DUMMY = (FC_CAL_Port_In_DDR__x((&FCP_PORT_B), (&FCP_TRIS_B), (0x8), (0x3)));
^ (192) undefined identifier "FCP_PORT_B"
(192) undefined identifier "FCP_TRIS_B" ^
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1

Is this something that can be fixed quickly. Please help
Regards
Barry W

Re: PIC16F1615 compiler error

Posted: Sat Aug 31, 2019 9:39 pm
by medelec35
Hi Barry,
Something wrong with the link.
Can you fix the link or post flowchart please?

Re: PIC16F1615 compiler error

Posted: Mon Sep 02, 2019 1:19 pm
by baz1952
Hi Medelec35,
Have attached the full file it is for an 8-1 multiplexer.

Re: PIC16F1615 compiler error

Posted: Mon Sep 02, 2019 2:11 pm
by medelec35
Hi Barry,
Your flowchart compiles for me:

Code: Select all

Source name:   M:\Flowcode Testing\Exp8_V2.fcfx
Title:         
Description:   
Device:        PIC.16F.16F1615
Generated by:  Flowcode v7.3.0.7
Date:          Monday, September 02, 2019 13:40:52
Users:         1
Registered to: Martin
Licence key:   BA48R5
http://www.flowcode.co.uk
Launching the compiler...
M:\Flowcode 7\compilers\pic\bin\xc8.exe  --chip=16F1615 "Exp8_V2.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (PRO Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

. . . . . . . . . . . .

using updated 32-bit floating-point libraries; improved accuracy might increase code size
M:\Flowcode 7\CAL\internals.c: 72: (1090) variable "_FCI_TMP_INT" is not used (warning)
M:\Flowcode 7\CAL\internals.c: 71: (1090) variable "_FCI_TMP_STR" is not used (warning)
Exp8_V2.c: 1540: (1090) variable "FCD_02191_led_charlieplexed1__LEDOn@FCL_DUMMY" is not used (warning)
Exp8_V2.c: 1726: (1090) variable "FCD_02191_led_charlieplexed1__AllOff@FCL_INDEX" is not used (warning)
Exp8_V2.c: 1727: (1090) variable "FCD_02191_led_charlieplexed1__AllOff@FCL_DUMMY" is not used (warning)
. . . . . . . .


Memory Summary:
    Program space        used   401h (  1025) of  2000h words   ( 12.5%)
    Data space           used    34h (    52) of   400h bytes   (  5.1%)
    EEPROM space         None available
    Data stack space     used     0h (     0) of   3CCh bytes   (  0.0%)
    Configuration bits   used     3h (     3) of     3h words   (100.0%)
    ID Location space    used     0h (     0) of     4h bytes   (  0.0%)


Launching the linker/assembler...
M:\Flowcode 7\tools\DoNothing\DoNothing.exe  


FINISHED
I have noticed you are running an older version of Flowcode.
Can you make sure you have 7.3.0.7
You will need to visit this post To update with the latest version (first post).

Re: PIC16F1615 compiler error

Posted: Mon Sep 02, 2019 2:58 pm
by baz1952
Hi Martin,
Yes I have updated my version and it now compiles OK.
Many thanks for your help.
Barry

Re: PIC16F1615 compiler error

Posted: Mon Sep 02, 2019 3:01 pm
by medelec35
You're welcome Barry,
Glad it's now working.
Thanks for letting us know.