Master I2C capability

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:

Master I2C capability

Post by Jan Lichtenbelt »

I get an error mentioning that the PIC16F1847 does not have Master I2C capability. As far as I can see there must be 2 master I2C in this chip.
Device: PIC.16F.16LF1847
Generated by: Flowcode v7.1.1.0
Date: Thursday, January 12, 2017 15:30:33

Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=16LF1847 "UVmeter_V1.c" --MSGDISABLE=359,1273,1388
Microchip MPLAB XC8 C Compiler (Free Mode) V1.38

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_I2C.c:
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" ^
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
What to do?

With kind regards

Jan Lichtenbelt
UVmeter_V1.fcfx
(13.3 KiB) Downloaded 300 times

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: Master I2C capability

Post by Benj »

Hi Jan,

Hmm I'm not sure why the master functionality was missing from the definition file. I've checked the datasheet and added it to the definition and it's compiling ok so looks like it should be fine.

Simply copy the attached into your "Flowcode 7/FCD/PIC" folder and restart Flowcode.
16F1847.fcdx
(23.9 KiB) Downloaded 349 times
Let me know if you have any problems.

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: Master I2C capability

Post by Jan Lichtenbelt »

Hi Ben,

Thanks for the new fcdx file. But I get the same error message. What to do now?

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: Master I2C capability

Post by Benj »

Hi Jan,

Sorry this is the file you need.
16LF1847.fcdx
(23.9 KiB) Downloaded 311 times

Post Reply