Problem between RTC and Timers generating PWM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 8:11 AM
Hi Everybody!
New with STM32, i'm currently working on a project in order to combine black line detection with an AlphaBot and IA embedded with a TOF sensor, all of that with a Nucleo-WB55.
Actually I would like to add a Bluetooth function to be able to read informations about all the sensors.
The matter is : When I enable my RTC (mandatory with BLE), my timers (used to generate a PWM for the wheels motors) doesn't work : The right one doesn't move but the other one is at 100%.
Have you an idea of something to check?
Thank you!
- Labels:
-
RTC
-
STM32WB series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-26 8:57 AM
Yes. Check your code. PWM timers are not related to RTC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 8:43 AM
Hello @JDIRI.1​ and welcome to ST Community,
Here is some suggestions:
- Check the RTC and timer interrupt priority levels and adjust them to avoid any conflict.
- Use a different timer for the RTC that doesn't interfere with the timers
It's possible that there could be issues in the RTC and timer configuration, so carefully review the code and the sensors to ensure that everything is set up and configured correctly.
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.
