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
Component: IO Expander (MCP23017) - error?
Moderator: Benj
-
- Posts: 16
- Joined: Tue Feb 05, 2013 8:36 pm
- Location: Romania
- Has thanked: 7 times
- Been thanked: 7 times
Component: IO Expander (MCP23017) - error?
- Attachments
-
- Flowcode1.fcfx
- test program
- (14.97 KiB) Downloaded 220 times
-
- Posts: 16
- Joined: Tue Feb 05, 2013 8:36 pm
- Location: Romania
- Has thanked: 7 times
- Been thanked: 7 times
Re: Component: IO Expander (MCP23017) - error?
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
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
-
- Posts: 367
- Joined: Fri Jan 26, 2018 12:30 pm
- Location: South Australia
- Has thanked: 45 times
- Been thanked: 63 times
- Contact:
Re: Component: IO Expander (MCP23017) - error?
Can you please say what have you changed in your component?minolta wrote:creating my own component to control six MCP23017...Tiberiu
Was it the i2c address problem in FC8?
- 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?
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel