Page 1 of 1

I2C compilation error

Posted: Mon Mar 06, 2017 11:16 am
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 224 times

Re: I2C compilation error

Posted: Mon Mar 06, 2017 11:25 am
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

Re: I2C compilation error

Posted: Mon Mar 06, 2017 11:59 am
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

Re: I2C compilation error

Posted: Mon Mar 06, 2017 12:10 pm
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 223 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.