cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL with RGB, TIM16, PWM & DMA

AElgh
Associate III

Hello Everyone, I'm driving the WS2812 RGB-LED using TIM16 CH1.

I have a very similar behavior as in this_post . The RGB works well just until MX_LoRaWAN_Process(void) then it doesn't work. I tried his solution but it didn't work(although I suspect the SYSTICK is not working).

 

The Waveform looks like this:

AElgh_1-1706290666482.png

 

The solution in the post(using the following lines) didn't work for me:

  /* Wake up from STOP2 on button press */
  SystemClock_Config();
  HAL_ResumeTick();
  MX_TIM16_Init();

 

I also printed out the content of the LED_DATA_ARRAY(which contains the color data) and it seems fine.

The Mode is STOP-Mode2. What would be the problem here?

 

Thank you

Amir

 

1 REPLY 1
STTwo-32
ST Employee

Hello @AElgh 

Are you disabling the Timer clock before entering the STOP Mode. If so, try to keep it enabled.

Best Regards.

STTwo-32

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.