Component: IO Expander (MCP23017) - error?

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

Moderator: Benj

Post Reply
minolta
Posts: 16
Joined: Tue Feb 05, 2013 8:36 pm
Location: Romania
Has thanked: 7 times
Been thanked: 7 times
Contact:

Component: IO Expander (MCP23017) - error?

Post by minolta »

Hi,

I build a system which is using an i2c graphical display and 6 x MCP23017 on the same i2c bus.
For each expander i build a macro. First five expanders are working fine.
When i initialized the sixth one, i got the bellow error message:

0: (499) undefined symbol:
_FC_CAL_I2C_Master_Init_7(Flowcode1.obj)
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8.exe reported error code 1

Autoclose turned off


FINISHED


I checked the component setup for each expander and there is no error.
I build a small test program, i got the same error.
Any idea is welcomed.

best regards,

Tiberiu
Attachments
Flowcode1.fcfx
test program
(14.97 KiB) Downloaded 192 times

minolta
Posts: 16
Joined: Tue Feb 05, 2013 8:36 pm
Location: Romania
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Component: IO Expander (MCP23017) - error?

Post by minolta »

I solved the problem by creating my own component to control six MCP23017, via 12c bus.
But the Flowcode component still, has a problem with controlling more than 5 expanders.
And...would be nice to solve this issue.

best regards,

Tiberiu

viktor_au
Posts: 342
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 44 times
Been thanked: 60 times
Contact:

Re: Component: IO Expander (MCP23017) - error?

Post by viktor_au »

minolta wrote:creating my own component to control six MCP23017...Tiberiu
Can you please say what have you changed in your component?
Was it the i2c address problem in FC8?

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: Component: IO Expander (MCP23017) - error?

Post by Benj »

Hello,

The problem is caused by the CAL layer, currently we only allow 6 x SPI or 6 x I2C channels.

I have now increased this limitation to 10 via the update system.

minolta
Posts: 16
Joined: Tue Feb 05, 2013 8:36 pm
Location: Romania
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Component: IO Expander (MCP23017) - error?

Post by minolta »

Hi Benj,

As usual very helpful.
Update done, tested and functional.

thank you,

Tiberiu

Post Reply