FLOWCODE 9 MCP23017 PROBLEM

Any bugs you encounter with Flowcode should be discussed here.
DAVIDJOINER
Posts: 140
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by DAVIDJOINER »

Hi

Thanks for update

I tried the modification

Unfortunately still does not work on FC9 but as before works on FC8

Anyway suspect your FC8 MCP23017 component must have already had this built in other wise it would not have worked either

I have enclosed the compilation report for both the FC8 & FC9 runs
I do notice that the data memory is different for both ie fc8 utilizes .nss amd nbss Data memory whereas FCP9 just uses nbss
Presume the compilers are slightly different ?
But not sure if this is relevant ?

Note I have also modified your program slightly for convenience by adding an additional delay so i can more easily see if port B flashes

Note these tests all carried out using dspic

Any further suggestions

David
Attachments
LCD_MCP23017_-TESTR_REV01.fcfx
updated program
(11.09 KiB) Downloaded 147 times
djdatas.zip
compiler dumps
(583.55 KiB) Downloaded 145 times

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by DAVIDJOINER »

Hi

Any further suggestions re my last post as getting rather frustrated that having purchased FC9 i still cannot appear to get MCP23017 I2C working correctly on FCP whilst on FC8 it is fine

David

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by BenR »

Hi David I'm really sorry I have received the chip now and it's been sat on my desk. I'll look at it now for you.

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by BenR »

Hi David,

Right I have now rigged up the chip and tested using my interface board and that has passed, so it looks like the component code itself is working fine.
Test.jpg
Test.jpg (18.95 KiB) Viewed 3604 times
MCP23017Tester.fcfx
(17.04 KiB) Downloaded 145 times
I'll try in an embedded context now just to be sure that everything is ok there with the specific CAL and the transaction code.

edit. Found and resolved the problem now, will post a fix shortly. Ended up not being a problem with the component at all but the underlying CAL and it's nice we've found and fixed it as it would have had big implications in v8 and v9. Wasn't easy to spot but thanks very much for bearing with us while we got to the bottom of it. I've fixed the problem in both v8 and v9 now and will roll out the fix to the update system ASAP.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by DAVIDJOINER »

Hi

Many thanks look forward to seeing the update

David

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by BenR »

Hi David,

Should be there for you now.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by DAVIDJOINER »

Hi

Many thanks just tried your updated cal file

Now works fine both in FC8 & FC9

DAVID

Post Reply