-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress GPIO pull mode tests fail on CY8CKIT_062_WIFI_BT #11643
Labels
Comments
cc @ARMmbed/team-cypress |
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1885 |
Fixed via #11765 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Target: CY8CKIT_062_WIFI tested, most likely all PSoC 6 targets affected
Mbed OS ver: 5.14.0
Toolchain: doesn't matter
Hardware: FPGA Test Shield + CY8CKIT_062_WIFI_BT
Steps to reproduce
Issue 1
Testcases in \TESTS\mbed_hal_fpga_ci_test_shield\gpio\main.cpp
The "tester.gpio_write" will drive the pin high or low from the FPGA. The gpio_read will check the state of the pin. When the pullmode is set to PullNone, it fails to read a correct pin value.
The first and third assert will fail.
Suspected cause:
In cy_gpio_api.c, there doesn't seem to be any handling of PullNone. The expectation is that the pin is in input mode, but the pullup or pulldown is disabled. On a logic analyzer, it appears that the pin is driven low by the psoc 6 when it should be high-z input on the psoc 6 and driven high by the FPGA.
Is there any logic that should be added to explicilty disable the pull resistor?
Also, in PinNamesTypes.h, this define sets it to strong drive. Is that correct in the case of an input mode?
// Pin Modes
#define PullNone CYHAL_GPIO_DRIVE_STRONG
Issue 2
gpio_init_inout() fails to enable pull up when requested
Testcases in \TESTS\mbed_hal_fpga_ci_test_shield\gpio\main.cpp
Setting the PullUp, appears to not work in this section of the code. It is supposed to enable the pullup and the pin should float high, but it doesn't.
Issue request type
The text was updated successfully, but these errors were encountered: