finding Errors: - Illegal symbol name: %

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

finding Errors: - Illegal symbol name: %

Post by Ondra »

Trying to compile a file I got the following errors:-

ZibbeeLCDRev2.2._V5fcf.c(711): Illegal symbol name: %

How do I find the the location in my flowcharts.

Ondra

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Steve »

Try double-clicking the line in the "compiler messages" window - that may take you to the place with the error.

Alternatively, open the C code file that Flowcode generates and go to line 711. If the code for any of the components has been customised, then you should look carefully at this code, or perhaps revert the code back to the original.

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Ondra »

Hi Steve, below is a list of all the errors listed. Below the error list I have pasted the code that is having the issue.
I opened the c file using notepad++.


ZibbeeLCDRev2.2._V5fcf.c(676): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(677): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(678): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(679): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(680): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(681): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(682): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(683): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(684): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(685): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(686): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(687): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(688): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(689): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(690): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(691): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(692): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(693): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(694): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(695): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(698): Illegal symbol name: %
ZibbeeLCDRev2.2._V5fcf.c(706): Illegal symbol name: %

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

#define %s_PORT0 LCD_2_
#define %s_TRIS0 b
#define %s_PORT1 b
#define %s_TRIS1 b
#define %s_PORT2 b
#define %s_TRIS2 b
#define %s_PORT3 b
#define %s_TRIS3 3
#define %s_PORT4 2
#define %s_TRIS4 1
#define %s_PORT5 0
#define %s_TRIS5 5
#define %s_BIT0 4
#define %s_BIT1 2
#define %s_BIT2 20
#define %s_BIT3 %p
#define %s_RS %q
#define %s_E %r
#define %s_ROWCNT %t
#define %s_COLCNT %u

#ifdef _BOOSTC
#define %s_DELAY delay_10us(10)
#endif
#ifdef _C2C_
#define %s_DELAY delay_us(100)
#endif
#ifdef HI_TECH_C
#define %s_DELAY __delay_us(120)
#endif
#ifndef %s_DELAY

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Benj »

Hello,

The compiler is not liking the %s in your program. Is this your own C code?

You could do a search and replace on your C code to rename the %s to something that is supported eg. LCD1

EG

#define %s_PORT0 LCD_2_
#define %s_TRIS0 b
#define %s_PORT1 b

Becomes

#define LCD1_PORT0 LCD_2_
#define LCD1_TRIS0 b
#define LCD1_PORT1 b

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Ondra »

No this is not my code the same file compiles in V4.

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Steve »

Hi Ondra,

The code you are using for the LCD is definitely not the one that comes with Flowcode V5. I think the code has been customized. You should right-click the LCD component and select "Custom Code". This screen will show you which functions have been customized.

Either that, or you are using a "Custom" component or "Supplementary Code".

Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Ondra »

Looking at "Customize Component Code" there aren't any bold names to indicate any changes to the original. And no I'm not using any custom or supplementary code.
How do I go about restoring the original code?

Ondra

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: finding Errors: - Illegal symbol name: %

Post by Benj »

Hello Ondra,

It looks like you are using a v4 component c file with v5 which is why the %s substitutions are not working correctly.

I would maybe suggest you uninstall v5, delete the contents of the Flowcode v5 folder and then reinstall to see if this resolves the problem.

Post Reply