Page 2 of 2

Re: gLCD_SSD1306_i2c1 Error

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

Re: gLCD_SSD1306_i2c1 Error

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

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 1:05 pm
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 438 times

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 1:38 pm
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.

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 2:36 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 3:28 pm
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

Re: gLCD_SSD1306_i2c1 Error

Posted: Sat Mar 25, 2023 4:54 pm
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