Port Expander Library issue ?

General discussion on mikroPascal PRO for ARM.
Post Reply
Author
Message
kentar
Posts: 78
Joined: 29 Oct 2010 07:54

Port Expander Library issue ?

#1 Post by kentar » 26 Feb 2021 20:41

Hi all. At July 2018 made a project with STM32F407VGT6 and I used Mikropascal 6.0 .
In my code i used 5 Port Expanders MCP23S17 SPI . Eyerything worked fine.
I had to make some modifications in Graphical Interface (FT800) and I recompiled the code with version 6.1 and 6.2
Port expanders are on other PCBs and connect with controller board with ribbon cables.
When I connect more than 3 expanders they do not operate normally. To be more specific device with address 7 does not
''listen'' commands. I checked everything before compile the new code with version 6.0 again.
Hex file generated from version 6 compiler works . Hex file generated from version 6.1 or 6.2 does not work!
Both hex files are compiled from same source code.
It seems that something is going on with port expander library when using multiple mcp devices...

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Port Expander Library issue ?

#2 Post by filip » 10 Mar 2021 13:54

Hi,

Can you please send the minimal project that demonstrates this issue ?

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for ARM General”