RTC Component Fails on I2C Channel 2 (PIC18F87K22, Flowcode v10.1.2.40)
Posted: Wed Jul 23, 2025 9:57 pm
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
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