Error copile

For general Flowcode discussion that does not belong in the other sections.
Post Reply
ELECTRONICA67
Posts: 148
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Flowcode v10 Error copile

Post by ELECTRONICA67 »

Hello,
please could you check the following error that flowcode shows me when compiling, I am using the PIC16F1939.

^ (103) #error: "I2C Channel 2 does not have the SSP2IF defined on this chip - does your chip support this feature?"

ELECTRONICA67
Posts: 148
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Re: Error copile

Post by ELECTRONICA67 »

mensaje
Attachments
ERROR.jpeg
ERROR.jpeg (160.23 KiB) Viewed 3097 times

ELECTRONICA67
Posts: 148
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Flowcode v10 Re: Error copile

Post by ELECTRONICA67 »

I'm using I2C Master for RTC and also LCDI2C Software

mnfisher
Valued Contributor
Posts: 1627
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 758 times

Re: Error copile

Post by mnfisher »

It looks like the PIC16F1939 only has one MSSP module - so only one hardware i2c channel?
Screenshot_20250805_212530_Chrome.jpg
Screenshot_20250805_212530_Chrome.jpg (128.02 KiB) Viewed 3086 times
Try using the software channel?

Martin

chipfryer27
Valued Contributor
Posts: 1683
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 582 times

Re: Error copile

Post by chipfryer27 »

Hi

Without seeing your chart it looks like you are attempting to enable an Interrupt on Synchronous Serial Port #2 with the chip only supporting SSP on #1. As far as I am aware, FC only has Channel-1 and Software options, no Channel 2 for that chip.

Regards

chipfryer27
Valued Contributor
Posts: 1683
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 582 times

Re: Error copile

Post by chipfryer27 »

I see Martin beat me to it..... He must have the datasheets open beside him...:)

ELECTRONICA67
Posts: 148
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Re: Error copile

Post by ELECTRONICA67 »

Hello, I see... I think I'm still asleep !!!!! Thank you very much for the observation, Martin.

Best Regards
Enrique

mnfisher
Valued Contributor
Posts: 1627
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 758 times

Re: Error copile

Post by mnfisher »

Does anyone read anything else?

No problems sleeping for me :-)

It might be the fcd is incorrect if it allowed you to choose channel2?

Martin

chipfryer27
Valued Contributor
Posts: 1683
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 582 times

Re: Error copile

Post by chipfryer27 »

Hi

I find "Practical Electronics for Inventors" an exciting read not just for bedtime but holiday sunbed too. Of course if you want glossy magazine racey, you could do worse than Practical Electronics (where there are adverts for exciting things to buy such as FC) and Elektor (which in my head I read as Goldmember from Austin Powers).

Sleep helps with cognative skill so surely Cognac at bedtime will turbocharge the experience?

Whilst you were busy beating me to replying, by sneakily have the datasheet open, I opened up FC and was only allowed Channel 1 or Software, so maybe Enrique needs some turbocharged sleep :)

Regards

ELECTRONICA67
Posts: 148
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Flowcode v10 Re: Error copile

Post by ELECTRONICA67 »

Hi,

I have to say that I prefer a glass of tequila (Agavero), the drawback is that you forget what you were doing. . . . :lol: but in a previous version of Flowcode I had an RTC connected on channel 1 and an LCDI2C display in software, and it compiled correctly, I'm using the same PIC16F1939; but with another update that was installed, that error stopped appearing, now only too many "warning".

I also added a 4x4 keypad; When you finish the program you save it, but when you open that same program the connections made on the keypad are changed to B0, B1, B2, B3, B4, B5, B6, B7

And again on another Laptop that I have not yet updated Flowcode, no error or warning is generated. :D

Best Regards

Post Reply