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

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
ddllc
Posts: 5
http://meble-kuchenne.info.pl
Joined: Wed Apr 07, 2021 12:22 am
Location: Southern California
Has thanked: 1 time
Contact:

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

Post 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

BenR
Matrix Staff
Posts: 1951
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 696 times

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

Post 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.

ddllc
Posts: 5
Joined: Wed Apr 07, 2021 12:22 am
Location: Southern California
Has thanked: 1 time
Contact:

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

Post by ddllc »

Thank you very much. See attached. Jack
Attachments
BLH_G3_5.fcfx
(10.48 KiB) Downloaded 34 times

Post Reply