Page 1 of 2

gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 9:22 am
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 2:02 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 2:12 pm
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]

Re: gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 7:18 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 7:27 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Thu Mar 23, 2023 8:43 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Fri Mar 24, 2023 6:11 am
by SpeedPIC32
Hi

I have the version 10.01.18
Regards :)

Re: gLCD_SSD1306_i2c1 Error

Posted: Fri Mar 24, 2023 8:47 am
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Fri Mar 24, 2023 4:26 pm
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 4047 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 4047 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 4047 times

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

Regards

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 7:08 am
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