Skip to content
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

tests/drivers/gpio/gpio_basic_api failed on multiple ARM platforms #22622

Closed
chen-png opened this issue Feb 8, 2020 · 9 comments · Fixed by #22639 or #22754
Closed

tests/drivers/gpio/gpio_basic_api failed on multiple ARM platforms #22622

chen-png opened this issue Feb 8, 2020 · 9 comments · Fixed by #22639 or #22754
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Milestone

Comments

@chen-png
Copy link
Collaborator

chen-png commented Feb 8, 2020

Describe the bug
tests/drivers/gpio/gpio_basic_api failed on reel_board, frdm_k64f, sam_e70_xplained and mimxrt1050_evk boards.

To Reproduce
Steps to reproduce the behavior:

  1. west build -b reel_board -p auto tests/drivers/gpio/gpio_basic_api/
  2. west flash
  3. See error

Screenshots or console output

Booting Zephyr OS build zephyr-v2.1.0-2179-g55eb4a11cdb1
Running test suite gpio_basic_test

starting test - test_gpio_port
Validate device GPIO_0
Check GPIO_0 output 2 connected to input 3
FATAL output pin not wired to input pin? (out high => in low)

Environment (please complete the following information):

  • OS: fedora28
  • Toolchain: zephyr-sdk-0.11.1
  • Commit ID: 55eb4a1
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Feb 8, 2020
@pabigot pabigot added the priority: low Low impact/importance bug label Feb 8, 2020
@pabigot
Copy link
Collaborator

pabigot commented Feb 8, 2020

This is a documentation issue: people running the tests need to know that for the test to work on a given platform there must be a devicetree overlay for that platform in the boards directory, and that the two pins identified in that overlay need to be shorted together. This is currently indicated in the output:

Check GPIO_0 output 2 connected to input 3
FATAL output pin not wired to input pin? (out high => in low)

There is no overlay for reel_board since what it tests would be handled by nrf52840_pca10056. For frdm_k64f the overlay specifies that Arduino D0 and D1 must be shorted.

I'll prepare a README for this test to explain all this, unless somebody else does it first.

@chen-png
Copy link
Collaborator Author

@pabigot Can we use the testcase.yml to exclude those unsupported boards?

because we use the sanitycheck to run all tests in testing system, if we modify the README file, for each board, when running sanitycheck command, we have to use the sanitycheck's option to exclude this test.
if we can modify the testcase.yml, we can just run sanitycheck command, don't care about boards.

@pabigot
Copy link
Collaborator

pabigot commented Feb 12, 2020

@chen-png Probably. Please see #22754; I think it should exclude unsupported boards.

@chen-png
Copy link
Collaborator Author

Please see #22754; I think it should exclude unsupported boards.

@pabigot it seems that it only excludes the reel_board, for frdm_k64f, sam_e70_xplained and mimxrt1050_evk, still the same error.

@chen-png chen-png reopened this Feb 14, 2020
@pabigot
Copy link
Collaborator

pabigot commented Feb 14, 2020

Does it work if you short the input pin to the output pin, as directed in the README?

Because the test simply cannot pass on a board that doesn't have the test configuration. There's nothing I can do about that.

@jhedberg jhedberg modified the milestones: v2.2.0, v2.3.0 Mar 10, 2020
@nashif
Copy link
Member

nashif commented Mar 11, 2020

@chen-png please follow up

@nashif nashif changed the title tests/drivers/gpio/gpio_basic_api failed on ARM architecture. tests/drivers/gpio/gpio_basic_api failed on multiple ARM platforms Mar 11, 2020
@chen-png
Copy link
Collaborator Author

@pabigot for sam_e70_xplained, according to the board's overlay, i connected portd 21 and portd 20, then this test passed.
but for frdm_k64f and mimxrt1050_evk, i couldn't find the GPIO pin on board, so do you know where the pin is or have any board manual?

@pabigot
Copy link
Collaborator

pabigot commented Mar 26, 2020

For frdm_k64f the overlay specifies these are Arduino D0 and D1. When oriented with the ethernet jack on the front at tht top, these are the lowest two pins on the right side outer column of female headers. There's silkscreen on the back that shows which pins are on each header.

The same two pins are used on the arduino header of mimxrt10x0_evk. The header on the 1060 is next to the 20-pin JTAG header.

@chen-png
Copy link
Collaborator Author

@pabigot thanks for your information.
shorted related pins and tested this case on frdm_k64f and mimxrt1050_evk, this case passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
5 participants