nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

[FEATURE] PWM Pulse Counter needs board example and application

Open acassis opened this issue 1 month ago • 3 comments

Is your feature request related to a problem? Please describe.

STM32 supports PULSECOUNT feature, however someone who added CONFIG_PWM_PULSECOUNT support didn't include any board config or usage example.

In theory the apps/example/pwm has support to CONFIG_EXAMPLES_PWM_PULSECOUNT, but there is no board with it enable, so probably this feature never was really well tested.

Describe the solution you'd like

Add some board profiles using the PWM PULSECOUNT.

Describe alternatives you've considered

No response

Verification

  • [x] I have verified before submitting the report.

acassis avatar Nov 14 '25 09:11 acassis

@raiden00pl did you test PWM PULSECOUNT ?

acassis avatar Nov 14 '25 09:11 acassis

here is some discussion also on PWM PULSECOUNT: https://github.com/apache/nuttx/issues/12381

This feature should not be included in the PWM driver at all and should be a separate driver :)

Last time I tested it it worked for stm32

raiden00pl avatar Nov 14 '25 09:11 raiden00pl

Thank you @raiden00pl !!! Yes, I agree with you. Looking the code it seems like when the PULSECOUNT is enabled the normal PWM configure function will not be enabled (even if someone want to use it in another TIM peripheral)

acassis avatar Nov 14 '25 11:11 acassis