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.matrixtsl.com
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
PIC16F1615 compiler error
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC16F1615 compiler error
Hi Barry,
Something wrong with the link.
Can you fix the link or post flowchart please?
Something wrong with the link.
Can you fix the link or post flowchart please?
Martin
-
- Posts: 3
- Joined: Sat Aug 31, 2019 2:29 pm
- Has thanked: 2 times
- Been thanked: 1 time
- Contact:
Re: PIC16F1615 compiler error
Hi Medelec35,
Have attached the full file it is for an 8-1 multiplexer.
Have attached the full file it is for an 8-1 multiplexer.
- Attachments
-
- Exp8_V2.fcfx
- (37.93 KiB) Downloaded 169 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC16F1615 compiler error
Hi Barry,
Your flowchart compiles for me:
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).
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.matrixtsl.com
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
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).
Martin
-
- Posts: 3
- Joined: Sat Aug 31, 2019 2:29 pm
- Has thanked: 2 times
- Been thanked: 1 time
- Contact:
Re: PIC16F1615 compiler error
Hi Martin,
Yes I have updated my version and it now compiles OK.
Many thanks for your help.
Barry
Yes I have updated my version and it now compiles OK.
Many thanks for your help.
Barry
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PIC16F1615 compiler error
You're welcome Barry,
Glad it's now working.
Thanks for letting us know.
Glad it's now working.
Thanks for letting us know.
Martin