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

drivers: pwm: pwm_gpio_loopback: drivers.pwm.gpio_loopback.nrf fails #87059

Open
katgiadla opened this issue Mar 13, 2025 · 2 comments
Open

drivers: pwm: pwm_gpio_loopback: drivers.pwm.gpio_loopback.nrf fails #87059

katgiadla opened this issue Mar 13, 2025 · 2 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@katgiadla
Copy link
Collaborator

katgiadla commented Mar 13, 2025

Describe the bug
The tests/drivers/pwm/pwm_gpio_loopback/drivers.pwm.gpio_loopback.nrf fails.

Observed for:

  • nrf54l15dk/nrf54l15/cpuapp

To Reproduce
Steps to reproduce the behavior:

  1. have nrf54l15dk/nrf54l15/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -s drivers.pwm.gpio_loopback.nrf -p nrf54l15dk/nrf54l15/cpuapp --device-testing --device-serial /dev/ttyACM1 -v --inline-logs --west-flash="--erase" --fixture gpio_loopback
  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-383-g92138f7ae718 ***
Running TESTSUITE pwm_gpio_loopback
===================================================================
START - test_pwm
Test case: [Channel: 0] [Period: 160000] [Pulse: 40000] [Inverted: No]
Sampling done: true
Measured period: 176 cycles, high: 41, low: 135 [unit: systimer ticks]
Measured period: 176000 ns, deviation: 10.0%
Measured duty: 23.29%, deviation: 6.81%
PWM output does NOT match the programmed values

    Assertion failed at zephyr/tests/drivers/pwm/pwm_gpio_loopback/src/main.c:213: test_run: (result not equal to TC_PASS)
Test case failed
 FAIL - test_pwm in 0.092 seconds
===================================================================
START - test_pwm_cross
Test case: [Channel: 0] [Period: 160000] [Pulse: 64000] [Inverted: No]
Sampling done: true
Measured period: 175 cycles, high: 79, low: 96 [unit: systimer ticks]
Measured period: 175000 ns, deviation: 9.37%
Measured duty: 45.14%, deviation: 12.85%
PWM output does NOT match the programmed values

    Assertion failed at zephyr/tests/drivers/pwm/pwm_gpio_loopback/src/main.c:213: test_run: (result not equal to TC_PASS)
Test case failed
 FAIL - test_pwm_cross in 0.092 seconds
===================================================================
TESTSUITE pwm_gpio_loopback failed.

------ TESTSUITE SUMMARY START ------

SUITE FAIL -   0.00% [pwm_gpio_loopback]: pass = 0, fail = 2, skip = 0, total = 2 duration = 0.184 seconds
 - FAIL - [pwm_gpio_loopback.test_pwm] duration = 0.092 seconds
 - FAIL - [pwm_gpio_loopback.test_pwm_cross] duration = 0.092 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
PROJECT EXECUTION FAILED

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-383-g92138f7ae718

Addtional information
Probably introduced by f44a301

@katgiadla katgiadla 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 Mar 13, 2025
@github-project-automation github-project-automation bot moved this to To triage in nRF platform Mar 13, 2025
@nordic-piks nordic-piks assigned nordic-piks and unassigned gmarull Mar 14, 2025
@nordic-piks
Copy link
Collaborator

@nordic-pikr FYI

@nordic-piks nordic-piks moved this from To triage to Backlog in nRF platform Mar 14, 2025
@nordic-piks
Copy link
Collaborator

@gmarull It was found that from this commit issue starts to occur:
f44a301
Can you check?

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: low Low impact/importance bug
Projects
Status: Backlog
Development

No branches or pull requests

3 participants