Page 1 of 1

I2C Display - Fails to compile

Posted: Sun Oct 12, 2014 10:44 pm
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

Re: I2C Display - Fails to compile

Posted: Mon Oct 13, 2014 10:58 am
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 316 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.

Re: I2C Display - Fails to compile

Posted: Mon Oct 13, 2014 11:53 am
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

Re: I2C Display - Fails to compile

Posted: Mon Oct 27, 2014 4:19 pm
by beanie
Cheers benj

:D