In STM32CubeMX, I'm trying to set TIM1 for PWM mode 1 for the STM32L412KB. This does not appear as one of the options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-10 8:31 AM
Here is a screen shot of the options. It appears that PWM modes 1 and 2 are missing.
Solved! Go to Solution.
- Labels:
-
Bug-report
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-13 3:14 AM
Hello DWalk.1,
I can't find any attached .ioc file, please check that you have correctly attach it (the screenshot doesn't reveal so many details). Otherwise opening a new project using STM32L412KBTx, "PWM mode 1" / 2 could be selected if you have already selected the appropriate Channel Mode (Please see attached screenshot).
>Its just that now the STM32Cube program complains about invalid properties with the configuration and asks me if I want to generating the code anyway.
The issue isn't reproduced from my side, the code is generated without any problem and without showing any warning message.
Regards,
Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-12 1:51 AM
Hello DWalk.1,
Could you please share your .ioc file for further check ?
Thanks in advance.
Regards,
Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-12 10:59 AM
It is attached. Note that I manually changed the .ioc file to include the correct PWM parameters and the STM32Cube generates the correct code. Its just that now the STM32Cube program complains about invalid properties with the configuration and asks me if I want to generating the code anyway.
David Walker
David Walker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-13 3:14 AM
Hello DWalk.1,
I can't find any attached .ioc file, please check that you have correctly attach it (the screenshot doesn't reveal so many details). Otherwise opening a new project using STM32L412KBTx, "PWM mode 1" / 2 could be selected if you have already selected the appropriate Channel Mode (Please see attached screenshot).
>Its just that now the STM32Cube program complains about invalid properties with the configuration and asks me if I want to generating the code anyway.
The issue isn't reproduced from my side, the code is generated without any problem and without showing any warning message.
Regards,
Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-13 10:24 AM
Khouloud,
That was the problem exactly. I was set to "Output Compare Cx CNx", not the PWM mode. Once I changed it, it is working fine.
Maybe I get an award for the most baseless post of the week?
Thanks for you help!
David Walker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-22 3:54 AM
Hi DWalk.1,
Please select my post as Best is answered your question, so that thread is marked as solved.
Regards.
Khouloud.
