Error message with I2C slave and 32MX220

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Pascal_2016
Posts: 89
Joined: Wed Aug 31, 2016 4:48 pm
Been thanked: 4 times
Contact:

Error message with I2C slave and 32MX220

Post by Pascal_2016 »

When I want to address the 32MX220 as I2C slave I get the following error message.

Flowcode2.o: In function 'main':
Flowcode2.c:(.text.main+0x38): undefined reference to 'FC_CAL_I2C_Slave_Init_1'.
Flowcode2.c:(.text.main+0x54): undefined reference to 'FC_CAL_I2C_Slave_Status_1
collect2.exe: error: ld returned 255 exit status
Error(s) in build


Autoclose turned off

What do I have to do so that the error message does not occur.
Attachments
Flowcode2.fcfx
(11.08 KiB) Downloaded 107 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Error message with I2C slave and 32MX220

Post by Benj »

Hello,

I'm afraid we do not currently support the I2C Slave on the PIC32 range of devices. It's something I can look into for you if you need this functionality.

Pascal_2016
Posts: 89
Joined: Wed Aug 31, 2016 4:48 pm
Been thanked: 4 times
Contact:

Re: Error message with I2C slave and 32MX220

Post by Pascal_2016 »

Hello,

the microcontroller is not so critical, but unfortunately I had to notice that your example for the I2C does not work with 18F25J50, Arduino Nano, 16F1939 nor with 24F16K102. I even get an error message on the master with 18F25J50, Arduino Nano and 16F1939.
The 24F16K102 is at least recognized by an address scan.
Unfortunately, the data that is sent despite the correct address was found is not recognized.

When I use the Arduino Nano with the Arduino IDE, the bytes that are transmitted on the I2C are clearly recognized.

Unfortunately this is not the case with Flowcode and PIC microcontrollers. If you can help me with this problem I would be very grateful.

I have attached the test program
Flowcode4.fcfx
(16.52 KiB) Downloaded 102 times

Post Reply