gLCD_SSD1306_i2c1 Error

Any bugs you encounter with Flowcode should be discussed here.
SpeedPIC32
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

Flowcode v10 gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

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
Attachments
Flowcode2.fcfx
(22.58 KiB) Downloaded 379 times

chipfryer27
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

Post by chipfryer27 »

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
Attachments
Flowcode2_I2C.fcfx
(22.45 KiB) Downloaded 363 times

medelec35
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

Post by medelec35 »

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]
Martin

SpeedPIC32
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

Post by SpeedPIC32 »

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

SpeedPIC32
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

Post by SpeedPIC32 »

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

chipfryer27
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

Post by chipfryer27 »

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

SpeedPIC32
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

Post by SpeedPIC32 »

Hi

I have the version 10.01.18
Regards :)

chipfryer27
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

Post by chipfryer27 »

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

chipfryer27
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

Post by chipfryer27 »

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)

Screenshot 2023-03-24 161327.png
Screenshot 2023-03-24 161327.png (69.52 KiB) Viewed 4036 times


If I open a new project and add in your component then I do get expected options.

Screenshot 2023-03-24 161459.png
Screenshot 2023-03-24 161459.png (80.63 KiB) Viewed 4036 times

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.

Screenshot 2023-03-24 162257.png
Screenshot 2023-03-24 162257.png (239.5 KiB) Viewed 4036 times

What happens if you create your chart only using the New 2D?

Regards

SpeedPIC32
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

Post by SpeedPIC32 »

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
Flowcode2_I2C.fcfx
(16.89 KiB) Downloaded 437 times

Post Reply