gLCD_SSD1306_i2c1 Error

Any bugs you encounter with Flowcode should be discussed here.
SpeedPIC32
Posts: 257
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

Target folder: C:\Users\uwe\Documents\Daten\Flowcode_10
Source name: C:\Users\uwe\Documents\Daten\Flowcode_10\Flowcode2_I2C.fcfx
Title:
Description:
Device: PIC.18F.18F27K40
Generated by: Flowcode v10.0.1.18
Date: Saturday, March 25, 2023 08:01:34
Users: 1
Registriert für: SpeedPic32 (24146314)
Lizenzschlüssel:H7PVJQ
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Start des Compilers...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\picv2\" 18F27K40 "C:\Users\uwe\Documents\Daten\Flowcode_10\" "Flowcode2_I2C"

C:\Users\uwe\Documents\Daten\Flowcode_10>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589C569E919D18CE8A1A34BBBAC3833A58DC4965B289802A73C711B8143522C2B69111B4A5DDD1F78C950CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE62F7CFE01D097A864378D9A0E5EA102BCFFF841E91EDD344372B6BE213A82E53320EB63F877F4A9A

C:\Users\uwe\Documents\Daten\Flowcode_10>REM REVISION: 2.0

C:\Users\uwe\Documents\Daten\Flowcode_10>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

C:\Users\uwe\Documents\Daten\Flowcode_10>REM DATE: 02\03\2023

C:\Users\uwe\Documents\Daten\Flowcode_10>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat

C:\Users\uwe\Documents\Daten\Flowcode_10>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F27K40 "Flowcode2_I2C.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:261:2: error: (195) expression syntax
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:262:2: error: (195) expression syntax
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:336:1: error: (192) undefined identifier "tris"
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:650:2: error: (195) expression syntax
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

Autoclose turned off


BEENDET

SpeedPIC32
Posts: 257
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

this may be the actual error.
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_I2C.c:336:1: error: (192) undefined identifier "tris"

With kind regards

SpeedPIC32
Posts: 257
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

Hello

I have now tried this with FC9.
Result: Error
can also not be exchanged :shock:

With kind regards
Test 1.fcfx
(8.93 KiB) Downloaded 53 times

medelec35
Matrix Staff
Posts: 1465
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 515 times
Been thanked: 474 times

Re: gLCD_SSD1306_i2c1 Error

Post by medelec35 »

Hello, tris errors are when a connection is not assigned to any pins.
You will need to connect the SCL & SDA to the required microcontroller pins.
When you use the Replace option all the properties will change back to the default status as though you are adding the component for the first time.
Martin

SpeedPIC32
Posts: 257
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Flowcode v9 Re: gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

the SCL B8 and SDA B9 pins are connected to the correct microcontroller pins Channel 1 after all.
Nevertheless, the error occurs.

Greetings

medelec35
Matrix Staff
Posts: 1465
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 515 times
Been thanked: 474 times

Re: gLCD_SSD1306_i2c1 Error

Post by medelec35 »

I have just used FC9 to compile to hex, and there were no errors generated for me.
Have you checked you are up-to-date with the latest version and components?
I'm running 9.3.1.36
If you select help, Library updates and tick Show up-to-date files.
The LCD revision I'm using 9, so check that is the version you are using as well
Martin

SpeedPIC32
Posts: 257
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: gLCD_SSD1306_i2c1 Error

Post by SpeedPIC32 »

I also use 9.3.1.36 and use LCD revision 9.
Is it possible that something got mixed up by installing fc10?

greetings

Post Reply