Skip to main content
Davorin
Associate III
June 1, 2020
Question

Timer with PWM not possible on L412/L432 when using USB FS?

  • June 1, 2020
  • 4 replies
  • 686 views

Good evening

Is it not possible to use TIM1/TIM" for generating a PWM output when USB FS is selected?

IDE shows me a warning when selecting internal clock source...and I can't set PSC or preloader value....

thansk in advance

richard

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
June 1, 2020

 > Is it not possible to use TIM1/TIM" for generating a PWM output when USB FS is selected?

Of course it's possible.

That some software does not allow you to click some combination does not mean it cannot be achieved by normal programming.

Does the clicky say some usable information with the warning?

JW

Davorin
DavorinAuthor
Associate III
June 1, 2020

Hmm..this is odd...after disabling USB FS I could set PSC and preload....even when re-enabling USB FS afterwards...

​

Guess the Cube IDE is still buggy on Debian/Ubuntu as many times the text cursor is lost and I can't type anything....only when switching to another application and back...

Tesla DeLorean
Guru
June 1, 2020

The interdepencies here can be complicated, and there is a significant chance of things being missed, or coded incorrectly.

Not sure what pins are involved, or what TIM the USB FS boilerplate might be using, perhap in place of SysTick.

For ST to evaluate you'd likely need to furnish an .IOC and storyboard the interactions with screenshots, or a video.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
berendi
Principal
June 2, 2020

> IDE shows me a warning when selecting internal clock source...

Read it.