Skip to main content
JDIRI.1
Associate II
Jan 26, 2023 4:11 PM UTC
Question

Problem between RTC and Timers generating PWM

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!

This topic has been closed for replies.

2 replies

gbm
Super User
Jan 26, 2023 4:57 PM UTC

Yes. Check your code. PWM timers are not related to RTC.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
ST Technical Moderator
Feb 1, 2023 4:43 PM UTC

Hello @JDIRI.1​ and welcome to ST Community,

Here is some suggestions:

  1. Check the RTC and timer interrupt priority levels and adjust them to avoid any conflict.
  2. 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 "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL