Page 1 of 1

RTC Component Fails on I2C Channel 2 (PIC18F87K22, Flowcode v10.1.2.40)

Posted: Wed Jul 23, 2025 9:57 pm
by ddllc
Hi,

I’m using Flowcode v10.1.2.40 with a PIC18F87K22 target.

When I use the I2C RTC component (e.g., DS3231/3232) on I2C channel 1, everything compiles and works fine.

However, when I switch the component to I2C channel 2, I get compilation errors related to undefined registers (e.g., SSP2PIRPbits). I’ve confirmed that the same error doesn’t occur on channel 1.

It seems the RTC component may not fully support MSSP2. Is there a fix, update, or workaround for using RTC on I2C channel 2?

Thanks!

— Jack

Re: RTC Component Fails on I2C Channel 2 (PIC18F87K22, Flowcode v10.1.2.40)

Posted: Wed Jul 23, 2025 10:02 pm
by BenR
Hi Jack,

Thanks for letting us know. Please can you attach your project containing the problem and I'll investigate for you. I'll also look into the I2C on channel 2 for this device and make sure the I2C peripheral is compiling as it should.

Re: RTC Component Fails on I2C Channel 2 (PIC18F87K22, Flowcode v10.1.2.40)

Posted: Thu Jul 24, 2025 4:53 pm
by ddllc
Thank you very much. See attached. Jack