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: pwm_api fails with stm32 devices #45322

Closed
FRASTM opened this issue May 4, 2022 · 1 comment
Closed

tests: drivers: pwm_api fails with stm32 devices #45322

FRASTM opened this issue May 4, 2022 · 1 comment
Assignees
Labels
area: PWM Pulse Width Modulation area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug

Comments

@FRASTM
Copy link
Collaborator

FRASTM commented May 4, 2022

Describe the bug
the tests/drivers/pwm/pwm_api/ fails in the test_pwm_usec sequence when running on stm32 target boards

Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/pwm/pwm_api/src/test_pwm.c:137: test_pwm_usec: test_task(DEFAULT_PWM_PORT, DEFAULT_PERIOD_USEC, DEFAULT_PULSE_USEC, UNIT_USECS) == TC_PASS is false

Please also mention any information which could help others to understand
the problem you're facing:

  • platforms: nucleo_h743zi, nucleo_f103rb, nucleo_f429zi, nucleo_f746zg, nucleo_h743zi, nucleo_l073rz, nucleo_wb55rg, stm32f3_disco

To Reproduce
Steps to reproduce the behavior:

  1. west build -p auto -b nucleo_wb55rg tests/drivers/pwm/pwm_api/
  2. west flash
  3. See error

Expected behavior
test PASSED

Impact
test campaign failure

Logs and console output

Running test suite pwm_basic_test
===================================================================
START - test_pwm_usec
[PWM]: 1, [period]: 2000, [pulse]: 1000
Fail to set the period and pulse width

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/pwm/pwm_api/src/test_pe

 FAIL - test_pwm_usec in 0.26 seconds
===================================================================
START - test_pwm_nsec
[PWM]: 1, [period]: 2000000, [pulse]: 1000000
[PWM]: 1, [period]: 2000000, [pulse]: 2000000
[PWM]: 1, [period]: 2000000, [pulse]: 0
 PASS - test_pwm_nsec in 3.13 seconds
===================================================================
START - test_pwm_cycle
[PWM]: 1, [period]: 64000, [pulse]: 32000
[PWM]: 1, [period]: 64000, [pulse]: 64000
[PWM]: 1, [period]: 64000, [pulse]: 0
 PASS - test_pwm_cycle in 2.12 seconds
===================================================================
Test suite pwm_basic_test failed.                                               
===================================================================             
PROJECT EXECUTION FAILED  

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK sdk-0.14.0
  • Commit SHA : 005968a

Additional context
Seems related to the PR #44583

@FRASTM FRASTM added bug The issue is a bug, or the PR is fixing a bug area: PWM Pulse Width Modulation platform: STM32 ST Micro STM32 area: Tests Issues related to a particular existing or missing test labels May 4, 2022
@erwango erwango self-assigned this May 4, 2022
@erwango erwango added the priority: low Low impact/importance bug label May 4, 2022
@erwango
Copy link
Member

erwango commented May 5, 2022

Same as #45372 (fixed by #45376).
Closing

@erwango erwango closed this as completed May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: PWM Pulse Width Modulation area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants