Skip to content

tests: drivers: gpio: gpio_basic_api: drivers.gpio.2pin fails on [email protected]/nrf54h20/cpuapp and cpuard #88293

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

Closed
nordic-piks opened this issue Apr 8, 2025 · 12 comments · Fixed by #89595
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug

Comments

@nordic-piks
Copy link
Collaborator

Describe the bug
Tests

  • tests/drivers/gpio/gpio_basic_api/drivers.gpio.2pin

Observed for [email protected]/nrf54h20/cpuapp and [email protected]/nrf54h20/cpurad.

To Reproduce
Steps to reproduce the behavior:

  1. haven [email protected]/nrf54h20/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/drivers/gpio/gpio_basic_api -p [email protected]/nrf54h20/cpuapp --device-testing --device-serial /dev/ttyACM0 -v --inline-logs --west-flash="--erase"
  4. See console output with error

Expected behavior
Valid console output

Impact
Not clear

Logs and console output

*** Booting Zephyr OS build v4.1.0-2034-g8f2f97ce320a ***
Running TESTSUITE after_flash_gpio_config_trigger
===================================================================
START - test_gpio_config_trigger
 PASS - test_gpio_config_trigger in 0.011 seconds
===================================================================
START - test_gpio_config_twice_trigger
 PASS - test_gpio_config_twice_trigger in 0.011 seconds
===================================================================
TESTSUITE after_flash_gpio_config_trigger succeeded
Running TESTSUITE gpio_port
===================================================================
START - test_gpio_port
Validate device gpio@938000 and gpio@938000
Check gpio@938000 output 6 connected to gpio@938000 input 7
OUT 6 to IN 7 linkage works
- bits_physical
- pin_physical
- check_raw_output_levels
- check_logic_output_levels
- check_input_levels
- bits_logical
- check_pulls

    Assertion failed at ../../../../../../../../../zephyr/tests/drivers/gpio/gpio_basic_api/src/test_gpio_port.c:660: pin_get_config: (flags_get not equal to flags_set)
flags are different

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.17.0
  • Commit SHA or Version used: v4.1.0-2034-g8f2f97ce320a
@nordic-piks nordic-piks added bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug labels Apr 8, 2025
@github-project-automation github-project-automation bot moved this to To triage in nRF platform Apr 8, 2025
@nordic-piks
Copy link
Collaborator Author

Guessing that happens after bea0a06

@nordic-piks nordic-piks moved this from To triage to Backlog in nRF platform Apr 8, 2025
@nordic-piks
Copy link
Collaborator Author

Fails the same at nrf54l15dk/nrf54l15/cpuapp

@nordic-piks
Copy link
Collaborator Author

Additionally, similar failure at nrf52840dk/nrf52840 for:
tests/drivers/gpio/gpio_basic_api/drivers.gpio.nrf_sense_edge
and tests/drivers/gpio/gpio_basic_api/drivers.gpio.2pin_arduino

START - test_gpio_port
Validate device gpio@50000300 and gpio@50000300
Check gpio@50000300 output 1 connected to gpio@50000300 input 2
OUT 1 to IN 2 linkage works
- bits_physical
- pin_physical
- check_raw_output_levels
- check_logic_output_levels
- check_input_levels
- bits_logical
- check_pulls

    Assertion failed at ../../../../../../../../zephyr/tests/drivers/gpio/gpio_basic_api/src/test_gpio_port.c:660: pin_get_config: (flags_get not equal to flags_set)
flags are different
 FAIL - test_gpio_port in 0.043 seconds

and
tests/drivers/gpio/gpio_hogs/drivers.gpio.hogs

*** Booting Zephyr OS build v4.1.0-2223-g7abda99fe38c ***
Running TESTSUITE gpio_hogs
===================================================================
START - test_gpio_hog_input_config
 PASS - test_gpio_hog_input_config in 0.001 seconds
===================================================================
START - test_gpio_hog_input_direction
 PASS - test_gpio_hog_input_direction in 0.001 seconds
===================================================================
START - test_gpio_hog_output_high_config

    Assertion failed at ../../../../../../../../zephyr/tests/drivers/gpio/gpio_hogs/src/main.c:73: assert_gpio_hog_config: (actual & expected not equal to expected)
GPIO hog gpio@50000000, pin 13 flags not set (0x00020000 vs. 0x00060000)
 FAIL - test_gpio_hog_output_high_config in 0.021 seconds
===================================================================
START - test_gpio_hog_output_high_direction
 PASS - test_gpio_hog_output_high_direction in 0.001 seconds
===================================================================
START - test_gpio_hog_output_low_config

    Assertion failed at ../../../../../../../../zephyr/tests/drivers/gpio/gpio_hogs/src/main.c:73: assert_gpio_hog_config: (actual & expected not equal to expected)
GPIO hog gpio@50000000, pin 14 flags not set (0x00020000 vs. 0x00060000)
 FAIL - test_gpio_hog_output_low_config in 0.021 seconds

@katgiadla
Copy link
Collaborator

Issues occurs on

- scenarios:
    - drivers.gpio.2pin
  platforms:
    - [email protected]/nrf54h20/cpuapp
    - [email protected]/nrf54h20/cpurad
    - nrf54l15dk/nrf54l15/cpuflpr
    - nrf54l15dk/nrf54l15/cpuapp

- scenarios:
    - drivers.gpio.nrf_sense_edge
    - drivers.gpio.hogs
    - drivers.gpio.2pin_arduino
  platforms:
    - nrf52840dk/nrf52840

what is status of this issue?

@wearyzen
Copy link
Collaborator

wearyzen commented May 6, 2025

2 more instances blocking #89370:

https://github.com/zephyrproject-rtos/zephyr/actions/runs/14856947600/job/41712752094?pr=89370

west build -p -b nrf5340bsim/nrf5340/cpuapp tests/drivers/gpio/gpio_hogs -T drivers.gpio.hogs

https://github.com/zephyrproject-rtos/zephyr/actions/runs/14856947600/job/41712751562?pr=89370

west build -p -b nrf52_bsim/native tests/drivers/gpio/gpio_hogs -T drivers.gpio.hogs

Could the priority of the issue be increased to high?

@aescolar aescolar added priority: high High impact/importance bug and removed priority: low Low impact/importance bug labels May 6, 2025
wearyzen added a commit to wearyzen/zephyr that referenced this issue May 6, 2025
Disable `tests/drivers/gpio/gpio_hogs -T drivers.gpio.hogs` for
nrf bsim board to unblock PR.
The test can be enabled as part of fix for issue zephyrproject-rtos#88293.

Signed-off-by: Sudan Landge <[email protected]>
@wearyzen
Copy link
Collaborator

wearyzen commented May 6, 2025

@kartben @aescolar could we disable the test for bsim boards till the issue is fixed?

@bjarki-andreasen
Copy link
Collaborator

I will work on it now :)

@aescolar
Copy link
Member

aescolar commented May 7, 2025

tests/drivers/gpio/gpio_hogs failure bisected to bea0a06

@bjarki-andreasen
Copy link
Collaborator

tests/drivers/gpio/gpio_hogs failure bisected to bea0a06

should be fixed by #89595

@wearyzen
Copy link
Collaborator

wearyzen commented May 7, 2025

Hi @bjarki-andreasen , thank you for looking into this. I tried #89595 and still see the gpio hogs issue with bsim. Could you please confirm if the commands mentioned here #88293 (comment) ran successfully for you?

@aescolar
Copy link
Member

aescolar commented May 7, 2025

Hi @bjarki-andreasen , thank you for looking into this. I tried #89595 and still see the gpio hogs issue with bsim. Could you please confirm if the commands mentioned here #88293 (comment) ran successfully for you?

At least to me the whole
twister -T tests/drivers/gpio -p nrf52_bsim -p nrf5340bsim/nrf5340/cpuapp -p nrf54l15bsim/nrf54l15/cpuapp
works with that PR.

@wearyzen
Copy link
Collaborator

wearyzen commented May 7, 2025

Hi @bjarki-andreasen , thank you for looking into this. I tried #89595 and still see the gpio hogs issue with bsim. Could you please confirm if the commands mentioned here #88293 (comment) ran successfully for you?

At least to me the whole twister -T tests/drivers/gpio -p nrf52_bsim -p nrf5340bsim/nrf5340/cpuapp -p nrf54l15bsim/nrf54l15/cpuapp works with that PR.

Must be something wrong with my workspace then, thanks for confirming though.

@github-project-automation github-project-automation bot moved this from Backlog to Done in nRF platform May 9, 2025
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 platform: nRF Nordic nRFx priority: high High impact/importance bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants