-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
STM32F746ZG: No pwm signal output when running /tests/drivers/pwm/pwm_api #31582
Labels
Comments
@gmarull would you have time to have a look ? |
@gitificial Test requires a small tweak to use pwm channel assigned to PE13:
|
PWM test has a hard-coded channel (1) for STM32, so if using something else it needs to be changed as @erwango suggests. |
erwango
added a commit
to erwango/zephyr
that referenced
this issue
Jan 26, 2021
The way the test is implemented requires some adaptation to be effective on all STM32 boards. I'm not adding per board code on purpose, as this would be a never ending story. Fixes zephyrproject-rtos#31582 Signed-off-by: Erwan Gouriou <[email protected]>
ioannisg
pushed a commit
that referenced
this issue
Jan 26, 2021
The way the test is implemented requires some adaptation to be effective on all STM32 boards. I'm not adding per board code on purpose, as this would be a never ending story. Fixes #31582 Signed-off-by: Erwan Gouriou <[email protected]>
@erwango: Thank you! #define DEFAULT_PWM_PORT 3 solved it for me. I did a fallacy regarding the pin assignments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
I'm not sure if it's a bug or if I'm missing something in my settings.
When running the pwm_api test on my nucleo_f746zg the minicom output shows a successful test run (see output below). But when I measure the output of pin PE13 (as defined in the generated zephyr.dts file) the output voltage resides on a constant level. Simple toggling of this pin with the GPIO methods work flawlessly.
Once I changed CONFIG_PWM=y to CONFIG_PWM_STM32=y in the prj.conf file but I got errors with this setting.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
PWM signal on PE13 while the test is running.
Impact
showstopper
Logs and console output
Minicom output:
Running test suite pwm_basic_test
START - test_pwm_usec
[PWM]: 1, [period]: 2000, [pulse]: 1000
[PWM]: 1, [period]: 2000, [pulse]: 2000
[PWM]: 1, [period]: 2000, [pulse]: 0
PASS - test_pwm_usec
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
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
Test suite pwm_basic_test succeeded
PROJECT EXECUTION SUCCESSFUL
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: