PSOC 4 port 4.x // error: P4 cannot be used for routed connections. // How to use port 4 as GPIO? | Cypress Semiconductor
PSOC 4 port 4.x // error: P4 cannot be used for routed connections. // How to use port 4 as GPIO?
This is my first PSOC project and I have encountered an understanding problem which I haven't been able to solve by skimminng through the datasheets yet. Maybe someone can give me an explanation.
I have a CY8CKIT-049-42xx featuring a CY8C4245AXI-483.
I would like to use P4.0 as a digital input with external pullup.
So I took a "Digital Input Pin [v2.0] component, named it "BUTTON_1" and configured it as "Digital Input" ,no "HW Connection", Drive Mode: "High Impedance Digital", Initial State: "Low".
I tryed to access it in code by BUTTON_1_Read().
Unfortunately my code does not compile anymore, throwing an error:
'BUTTON_1(0)' cannot be placed at P4. P4 cannot be used for routed connections.
What does this "routed connections" mean? I thought using a pin component just creates a macro api to access the port registers, so there should be no routing as there is no HW connection to any other component.
What is the intended way to access port 4 pins as GPIO?
Additionally, maybe someone can give me a hint, where in what datasheet I can find this information?
(So I have a chance to stumble upon it next time, before I order my PCB)