Page 1 of 1

Component: IO Expander (MCP23017) - error?

Posted: Sat May 18, 2019 6:24 pm
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

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

Posted: Sun May 19, 2019 9:11 am
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

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

Posted: Sun May 19, 2019 11:11 pm
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?

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

Posted: Mon May 20, 2019 9:49 am
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.

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

Posted: Mon May 20, 2019 3:02 pm
by minolta
Hi Benj,

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

thank you,

Tiberiu