cancel
Showing results for 
Search instead for 
Did you mean: 

Problem between RTC and Timers generating PWM

JDIRI.1
Associate II

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!

2 REPLIES 2
gbm
Lead III

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

FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.