Page 1 of 1

finding Errors: - Illegal symbol name: %

Posted: Fri Feb 17, 2012 6:06 am
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

Re: finding Errors: - Illegal symbol name: %

Posted: Fri Feb 17, 2012 11:49 am
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.

Re: finding Errors: - Illegal symbol name: %

Posted: Fri Feb 17, 2012 2:42 pm
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

Re: finding Errors: - Illegal symbol name: %

Posted: Fri Feb 17, 2012 4:52 pm
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

Re: finding Errors: - Illegal symbol name: %

Posted: Fri Feb 17, 2012 5:02 pm
by Ondra
No this is not my code the same file compiles in V4.

Re: finding Errors: - Illegal symbol name: %

Posted: Mon Feb 20, 2012 9:17 am
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".

Re: finding Errors: - Illegal symbol name: %

Posted: Mon Feb 20, 2012 2:17 pm
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

Re: finding Errors: - Illegal symbol name: %

Posted: Mon Feb 20, 2012 3:01 pm
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.