2024-09-05 02: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.
2024-09-09 01: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:
so in your case PF13 only supports TIM2_ETR.. not TIM2_CH1
JM
2024-09-06 01: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.
2024-09-06 01:50 AM - edited 2024-09-06 01: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
2024-09-08 07: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
2024-09-09 01: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:
so in your case PF13 only supports TIM2_ETR.. not TIM2_CH1
JM
2024-09-09 04:02 AM
Thank you very much
2024-09-09 04:39 AM
if errata release,please notify me
2024-09-09 05:01 AM
ok
2024-10-01 12:58 AM
Hello
Please note that the updated errata sheet is now available on st.com
JM