Hello
I have just set up a new project with a PIC. Here is the same problem with the I2C GLCD SSD1306 module as under HC05 Error.
It does not compile. Always the same error
Target folder: C:\Users\uwe.kapuschinski\Documents\Flo
Source name: C:\Users\uwe.kapuschinski\Documents\Flo\Flowcode2.fcfx
Title:
Description:
Device: PIC.18F.18F27K40
Generated by: Flowcode v10.0.1.18
Date: Thursday, March 23, 2023 10:20:23
Users: 1
Registered to: SpeedPic32 (24146314)
Licence key: ZQ34CT
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\" 18F27K40 "C:\Users\uwe.kapuschinski\Documents\Flo\" "Flowcode2"
C:\Users\uwe.kapuschinski\Documents\Flo>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589C569E919D18CE8A1A34BBBAC3833A58DC4965B289802A73C711B8143522C2B69111B4A5DDD1F78C950CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE62F7CFE01D097A864378D9A0E5EA102BCFFF841E91EDD344372B6BE213A82E53320EB63F877F4A9A
C:\Users\uwe.kapuschinski\Documents\Flo>REM REVISION: 2.0
C:\Users\uwe.kapuschinski\Documents\Flo>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Users\uwe.kapuschinski\Documents\Flo>REM DATE: 02\03\2023
C:\Users\uwe.kapuschinski\Documents\Flo>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Users\uwe.kapuschinski\Documents\Flo>"C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F27K40 "Flowcode2.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
Flowcode2.c:7952:1: error: (984) type redeclared
Flowcode2.c:7952:1: error: (1098) conflicting declarations for variable "FCD_0cc51_gLCD_SSD1306_i2c1__PrintNumber" (Flowcode2.c:7951)
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
Thanks a lot
gLCD_SSD1306_i2c1 Error
-
- Posts: 278
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 2:35 pm
- Location: Germany
- Has thanked: 37 times
- Been thanked: 17 times
-
- Valued Contributor
- Posts: 1685
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: gLCD_SSD1306_i2c1 Error
Hi
Please see attached.
As before I deleted your display and then added it back in. Compiles to Hex OK for me.
Have you updated all your components?
Regards
Please see attached.
As before I deleted your display and then added it back in. Compiles to Hex OK for me.
Have you updated all your components?
Regards
- Attachments
-
- Flowcode2_I2C.fcfx
- (22.45 KiB) Downloaded 363 times
-
- Matrix Staff
- Posts: 2086
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 644 times
- Been thanked: 702 times
Re: gLCD_SSD1306_i2c1 Error
Hello.
This will be investigated to find the cause of the error.
In addition to chipfryer27 post
If you would like to fix this yourself in the future there are two ways.
If there are no component macros being used then delete the LCD and then add it again as chipfryer27 has stated.
If there are LCD component macros used, then select the LCD on the panel.
Right-Click, then select Replace
Select GLCD Base [2D]
Repeat the step once more, but this time select the GLCD Base and replace it with GLCD (SSD1306) I2C [2D]
This will be investigated to find the cause of the error.
In addition to chipfryer27 post
If you would like to fix this yourself in the future there are two ways.
If there are no component macros being used then delete the LCD and then add it again as chipfryer27 has stated.
If there are LCD component macros used, then select the LCD on the panel.
Right-Click, then select Replace
Select GLCD Base [2D]
Repeat the step once more, but this time select the GLCD Base and replace it with GLCD (SSD1306) I2C [2D]
Martin
-
- Posts: 278
- Joined: Thu Dec 10, 2020 2:35 pm
- Location: Germany
- Has thanked: 37 times
- Been thanked: 17 times
Re: gLCD_SSD1306_i2c1 Error
Hello
There is a mistake somewhere.
1. the PIC does not matter,. I can change it. This will not cause the error.
2. when I insert the display, the error occurs and I can correct it by changing it back and forth. That is possible, but it is still an error.
3. if I have replaced the display, I can compile without an error.
If I then insert the Bluetooth chip HC05 HC06, the error is there again.
This error can also be rectified by replacing the display and replacing it again.
Greetings to you
There is a mistake somewhere.
1. the PIC does not matter,. I can change it. This will not cause the error.
2. when I insert the display, the error occurs and I can correct it by changing it back and forth. That is possible, but it is still an error.
3. if I have replaced the display, I can compile without an error.
If I then insert the Bluetooth chip HC05 HC06, the error is there again.
This error can also be rectified by replacing the display and replacing it again.
Greetings to you
-
- Posts: 278
- Joined: Thu Dec 10, 2020 2:35 pm
- Location: Germany
- Has thanked: 37 times
- Been thanked: 17 times
Re: gLCD_SSD1306_i2c1 Error
I have discovered something else great.
When I right-click on HC05 HC06, the display appears for swapping.
If I then click on the exchange display, the display also appears.
the same goes backwards with the new display. there is even the possibility to swap the display further or back to Bluetooth.
This is tricky
When I right-click on HC05 HC06, the display appears for swapping.
If I then click on the exchange display, the display also appears.
the same goes backwards with the new display. there is even the possibility to swap the display further or back to Bluetooth.
This is tricky
-
- Valued Contributor
- Posts: 1685
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: gLCD_SSD1306_i2c1 Error
Hi
I think this is something Matrix will need to resolve but out of curiosity what version of FC are you using (click little ? icon on top right)?
Regards
I think this is something Matrix will need to resolve but out of curiosity what version of FC are you using (click little ? icon on top right)?
Regards
-
- Posts: 278
- Joined: Thu Dec 10, 2020 2:35 pm
- Location: Germany
- Has thanked: 37 times
- Been thanked: 17 times
-
- Valued Contributor
- Posts: 1685
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: gLCD_SSD1306_i2c1 Error
Hi
Might be worth completely uninstalling, doing a registry clean then reinstalling. That has solved a couple of W10 issues for me and doesn't take too long.
Regards
Might be worth completely uninstalling, doing a registry clean then reinstalling. That has solved a couple of W10 issues for me and doesn't take too long.
Regards
-
- Valued Contributor
- Posts: 1685
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 583 times
Re: gLCD_SSD1306_i2c1 Error
Hi
Definitely something funny going on.
If I open your chart and right click on any of your components, I don't get an option to delete (as well as a few other options)
If I open a new project and add in your component then I do get expected options.
I see you are using the Lagacy 2D panel in your chart, so I added a New 2D Panel, then cut n paste'd your display and I get expected options when right-clicking.
What happens if you create your chart only using the New 2D?
Regards
Definitely something funny going on.
If I open your chart and right click on any of your components, I don't get an option to delete (as well as a few other options)
If I open a new project and add in your component then I do get expected options.
I see you are using the Lagacy 2D panel in your chart, so I added a New 2D Panel, then cut n paste'd your display and I get expected options when right-clicking.
What happens if you create your chart only using the New 2D?
Regards
-
- Posts: 278
- Joined: Thu Dec 10, 2020 2:35 pm
- Location: Germany
- Has thanked: 37 times
- Been thanked: 17 times
Re: gLCD_SSD1306_i2c1 Error
I have created the New 2D diagram and only called up the display.
I can swap back and forth but the error remains. as soon as I set the display with I2C I get this error.
With kind regards
I can swap back and forth but the error remains. as soon as I set the display with I2C I get this error.
With kind regards