I2C compilation error

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

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

I2C compilation error

Post by Jan Lichtenbelt »

Why do I get an I2C error for the 16FL1847 microchip, which does have 2 I2C interfaces?
209: #error "This chip does not have Master I2C capability or Flowcode does not currently support it"
(103) #error: "This chip does not have Master I2C capability or Flowcode does not currently support it" ^
With kind regards

Jan Lichtenbelt
Test_I2C.fcfx
(5.35 KiB) Downloaded 218 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: I2C compilation error

Post by medelec35 »

Hi Jan,
Good news is it compiles OK with V7.2., As soon as its available.
Only thing is you need to change Code

Code: Select all

ASCCON;
to

Code: Select all

OSCCON;
Martin
Martin

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: I2C compilation error

Post by Jan Lichtenbelt »

Hi Martin,

Perhaps I was a little bit sleepy? I changed it in OSCCON, but the error remains.

What to do?

With kind regards

Jan Lichtenbelt

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 compilation error

Post by Benj »

Hi Jan,

Martin was saying that this is already fixed in the upcoming release, due out tomorrow.

For now you can use this updated definition file which should solve the problem you're having.
16LF1847.fcdx
(23.9 KiB) Downloaded 217 times
Simply copy to your "Flowcode 7/FCD/PIC" folder and restart Flowcode for the changes to be loaded.

Let us know how you get on.

Post Reply