I2C Display - Fails to compile

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

I2C Display - Fails to compile

Post by John_RSD »

Hi

After updating to 6.1 I chose to have a go at using the I2C display component which I have been looking to play with for some time.

Device is a 18F4550

So just to start easy I added a 1s tick on a led (that works fine on its own) and downloaded it to hardware and all is ok.

However every time I add the compo0nent to the dashboard, set the I2C component to use RB0/RB1 (Channel 1) and the address to 0x40 and 2x16 I get this during preprocessing and that is where it fails.

Code: Select all

SW_LCD_RLY_V61.c
Starting preprocessor: D:\FC6\compilers\pic\boostc\pp.exe SW_LCD_RLY_V61.c -i D:\FC6\compilers\pic\boostc\include -d _PIC18F4550 -la -c2 -o SW_LCD_RLY_V61.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX 

............
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(468:2): error: unknown identifier 'sspcon3'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(468:2): error: invalid operand 'sspcon3'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(468:10): error: failed to generate expression
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(469:2): error: unknown identifier 'sspmsk'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(469:2): error: invalid operand 'sspmsk'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(469:9): error: failed to generate expression
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(543:8): error: unknown identifier 'sspcon3'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(543:8): error: failed to generate expression
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(543:8): error: invalid operand 'sspcon3'
D:\FC6\CAL\PIC\PIC_CAL_I2C.c(543:17): error: failed to generate expression
SW_LCD_RLY_V61.c success

failure
..
Completed BoostC compilation, return = 1

D:\FC6\compilers\pic\boostc\boostc_18F.exe reported error code 1
Is there something obvious I am missing here in configuring this component ? Set I2C type, Address, start, clear and sand strings should be all that is needed ?

Any help greatly appreciated

John
Attachments
I2C-DISP-TEST-V61.fcfx
(5.03 KiB) Downloaded 258 times
Many thanks

John

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: I2C Display - Fails to compile

Post by Benj »

Hello John,

Looks like this bug has crept in as part of the modifications for the I²C Slave.

Hopefully this updated CAL file should solve the problem for you.
PIC_CAL_I2C.c
(20.63 KiB) Downloaded 314 times
The file should be placed into this directory on your system. "C:\Program Files (x86)\Flowcode 6\CAL\PIC"

Let me know how you get on.

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: I2C Display - Fails to compile

Post by John_RSD »

Benj

Sorry to have presented a bug just after release, many thanks for the fast reply and restoring my sanity :-D

John
Many thanks

John

beanie
Posts: 18
Joined: Fri May 09, 2014 12:47 pm
Has thanked: 1 time
Been thanked: 6 times

Re: I2C Display - Fails to compile

Post by beanie »

Cheers benj

:D

Post Reply