Page 1 of 1

Master I2C capability

Posted: Thu Jan 12, 2017 3:46 pm
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

Re: Master I2C capability

Posted: Fri Jan 13, 2017 11:01 am
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 350 times
Let me know if you have any problems.

Re: Master I2C capability

Posted: Fri Jan 13, 2017 11:19 am
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

Re: Master I2C capability

Posted: Fri Jan 13, 2017 12:29 pm
by Benj
Hi Jan,

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