TIM2_CH2 PWM not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-05 2:50 AM
hello,st friends.
My board use TIM2_CH1 pwm to drive a led.
dts configure as:
but the led can not light on.use these command
byw: I use gpio test led hardware is ok
Solved! Go to Solution.
- Labels:
-
STM32MP13 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-09 1:41 AM
Hello
We discovered an issue in the Datasheet of the MP13.
It will be described in an errata and DS updated soon.
The TIM2_CH1 and TIm2_ETR are not available on all GPIO as listed currently on DS:
The correct settings are:
- PA0, PA15, PD3, PG8 only TIM2_CH1
- PE2, PF13, PE15 only TIM2_ETR
- PA5 both TIM2_CH1, TIM2_ETR
so in your case PF13 only supports TIM2_ETR.. not TIM2_CH1
JM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-06 1:32 AM
Hello @guansonghuang,
Verify that the PWM is exported correctly, you should see pwm0 listed using
ls /sys/class/pwm/pwmchip0
Also, try using an oscilloscope or logic analyzer to verify that the PWM signal is being generated on the correct pin (PF13)
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-06 1:50 AM - edited 2024-09-06 1:59 AM
hi @Sarra.S
I use oscilloscope vefify no pwm out on PF13;
but
1、if change pwm channel1 to PA5.that is ok
2、Enable all 4 pwm out,all other 3 pwm output correctlly excpt for PF13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-08 7:08 PM
I verify TIM2_CH1 bare metal using PF13. it is the same result as linux not working.
So I assume that PF13 can not be assigened to TIM2_CH1.
please help to double check this. thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-09 1:41 AM
Hello
We discovered an issue in the Datasheet of the MP13.
It will be described in an errata and DS updated soon.
The TIM2_CH1 and TIm2_ETR are not available on all GPIO as listed currently on DS:
The correct settings are:
- PA0, PA15, PD3, PG8 only TIM2_CH1
- PE2, PF13, PE15 only TIM2_ETR
- PA5 both TIM2_CH1, TIM2_ETR
so in your case PF13 only supports TIM2_ETR.. not TIM2_CH1
JM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-09 4:02 AM
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-09 4:39 AM
if errata release,please notify me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-09-09 5:01 AM
ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-10-01 12:58 AM
Hello
Please note that the updated errata sheet is now available on st.com
JM
