Skip to content

TIMER behavior in STM32WLE #1884

Closed Answered by ABOSTM
HamadyDIA asked this question in Q&A
Discussion options

You must be logged in to vote

With this fork made by move X the chip goes to sleep everytime it end a function

Ok, I am not aware of moveX fork, but AFAICS, due to while loop in SINGAL_SON()

while(tim2==false){
}

this prevent chip to go in lowpower mode (sleep ? or stop?) during the 100ms of timer2, because function doesn't end.
And system goes to LowPower when SINGAL_SON() ends (after timer 2 elapse and while waiting for new trigger on 1st GPIO)

Also you initial talk about stop mode, but now you are talking about sleep mode. This is 2 different modes in STM32 chips, with different capabilities. Can you clarify ?

And if i add TIM2->pause() after the while(tim2==false) the timer IRQ don't work.

Well, my guess woul…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fpistm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1883 on November 29, 2022 13:58.