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
finding Errors: - Illegal symbol name: %
Moderator: Benj
- 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: %
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.
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: %
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
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
- 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: %
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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: %
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".
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: %
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
How do I go about restoring the original code?
Ondra
- 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: %
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel