WATCHDOGS in STM32 || IWDG and WWDG || CubeIDE

  Рет қаралды 29,240

ControllersTech

ControllersTech

Күн бұрын

Purchase the Products shown in this video from :: controllerstech.store
________________________________________________________________________________________
00:28 IWDG (Independent WatchDog)
08:06 WWDG (Window WatchDog)
To download the code goto controllerstech.com/iwdg-and-...
________________________________________________________________________________________
****** SUPPORT US BY DONATING*****
paypal.me/controllertech
******Join the Membership******
/ @controllerstech
Join the Discord Server / discord
Join the Telegram Group t.me/controllerstechdiscuss
Follow me on Instagram / controllerstech
For more info, visit www.controllerstech.com

Пікірлер: 34
@kamilmeric5751
@kamilmeric5751 3 жыл бұрын
You are perfect and clear. Solution to my problems. Respect.
@servidorteleco8916
@servidorteleco8916 4 жыл бұрын
Excelent video. Keep making this videos. They are very instructivo. Cheers from Argentina.
@rafalzasada8826
@rafalzasada8826 2 жыл бұрын
4:27 Useful shortcuts: Ctrl + click - opens declaration. If you want to go back press Ctrl + W.
@muhammadnauman9597
@muhammadnauman9597 4 жыл бұрын
Excellent video on stm32 watchdog timers. (y) There should be a video on I2S peripheral of stm32. How it works and how we can communicate with audio devices.
@saddamansari-js8hv
@saddamansari-js8hv 2 жыл бұрын
Thankyou for making things easy, i would like to make one thing more easy to fellow viewers, In IWDG how the prescaler value is choosen?, Answer : the RL value is 12 bit, so first take and prescaler and put in the formula, if RL value is greater than 4095, then simply increase the prescaler value, until RL value is lesser than 4095.
@TheFahdi
@TheFahdi 2 жыл бұрын
I agreed, excellent explanation with simplest maths...
3 жыл бұрын
Great job, Thank you so much.
@martinlintzgy1361
@martinlintzgy1361 2 жыл бұрын
An essential part of embedded systems is power consumption. I tried to implement IWDG on a low power application (STM32L5) where the mcu spends 99.99% of the time in standby. I only want the WDT to fire is the code gets stuck without "kicking the dog" while awake. In the Option bytes, there is the IWDG_STDBY that turns off the IWDG counter while in standby. Not only does it prevent the IWDG from firing while the STM32 is in standby, it also seems to prevent the code from running at all!
@eduardodelarosaferrer2205
@eduardodelarosaferrer2205 4 жыл бұрын
Really useful video
@4valves551
@4valves551 2 жыл бұрын
In WWGD formula why use this value 4096 ? is that machine cycle value of stm32??
@ivanfernandolesmesroldan4502
@ivanfernandolesmesroldan4502 3 жыл бұрын
Bro you are the best for STM videos, Where are you living bro?
@englishwithwala
@englishwithwala 3 жыл бұрын
Can we set presale as 4 for 1 second delay
@Ricarrr
@Ricarrr Жыл бұрын
Congratulations! How can I turn off WWDG to enter StandBy?👍
@goodwill7643
@goodwill7643 3 жыл бұрын
thank you
@EdwinFairchild
@EdwinFairchild 2 жыл бұрын
i think a good case using WWDG and IWDG together is that WWDG has an interrupt which lets you do some clean up or logging before the reset actually happens, or you can all together avoid the reset and put the device in a known state or whatever you want
@vb9950
@vb9950 2 жыл бұрын
Wonderful! another technical youtuber here. I didn't get what you said, can you elaborate or give some reference? In the company I work some teams use this and some do not. They say wwdg is for software faults.
@EdwinFairchild
@EdwinFairchild 2 жыл бұрын
@@vb9950 that is correct WWDG is more for software faults but for example if what is causing the software fault is a hardware device like external sensor or something is messing up SPI and only way to fix it is to reset the system..idk just an example. you would use WWDG to catch the software part and do some clean up in the interrupt handler and eventually let the IWDG trigger so the system can reset. so you get best of both worlds , the ability to clean something up or maybe warn the user the system is about to reboot and do it gracefully
@powerstar817
@powerstar817 2 жыл бұрын
@@EdwinFairchild thanks, but i don't understand how to catch software faults with wwdg? U have any idea?
@EdwinFairchild
@EdwinFairchild 2 жыл бұрын
@@powerstar817 ok here is an example.. lets says you have 3 functions, function 1is doing some math, function 2 perhaps controlling a motor, and functon 3 maybe sending data to pc via UART... at the end of every function you feed the WWDG, because remember a watchdog is just a timer that you cannot let it go to zero , so you always set it back to a high value and it will start counting down... So at the end of each function you set the WWDG to a high number and everything is ok, it never reaches 0. If however one of your functions hangs/freezes then the wwdg will never get fed and thus trigger an interrupt , in this interrupt you can maybe do some housekeeping stuff before reset, or all together fix things and not trigger the reset..etc...... However when using something like an RTOS this approach will fail and this is where you would need to use both a WWDG and an IWDG , or simply the WWDG with a little more careful thinking... I can make a video on this sometime to demonstrate
@powerstar817
@powerstar817 2 жыл бұрын
@@EdwinFairchild it clear now. Yes here iwdg can act like a monitoring watchdog or a spare wdg.
@gameramve
@gameramve 3 жыл бұрын
Hi, i want to understand the use of window value in Stm32 IWDG. This is available in HAL document
@ControllersTech
@ControllersTech 3 жыл бұрын
Plz watch the video. It's explained in it.
@englishwithwala
@englishwithwala 3 жыл бұрын
And what will happens if it over maximum time. In between of 13 - 20ms it works fine. If it goes lower than 13ms wwdg gets reset. But what happens when it over the 20ms
@ControllersTech
@ControllersTech 3 жыл бұрын
13 to 20 is the window. Outside it, the system will reset..
@anithayala9272
@anithayala9272 3 жыл бұрын
how +64 came in the window watchdog counter formula
@ControllersTech
@ControllersTech 3 жыл бұрын
It's modified from the one ST have in the reference doc.. Check that out.
@anithayala9272
@anithayala9272 3 жыл бұрын
@@ControllersTech Okay. How to calculate the window value for IWDG?
@ControllersTech
@ControllersTech 3 жыл бұрын
Common man.. just watch the video... It's what i have explained there.
@anithayala9272
@anithayala9272 3 жыл бұрын
and how can we observe those changes while running the code?
@anithayala9272
@anithayala9272 3 жыл бұрын
Sorry, You have explained window Value calculation for WWDG, not for IWDG. if we enable window option for IWDG how can we calculate? For IWDG you explained only reload value.
STM32 ADC Conversion Time/Frequency Calculation || Internal Temp Sensor
19:28
УГАДАЙ ГДЕ ПРАВИЛЬНЫЙ ЦВЕТ?😱
00:14
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 16 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 23 МЛН
Introduction to Free RTOS in STM32 || CubeIDE || Tasks || priorities
16:26
STM32 INDEPENDENT WATCHDOG ||HAL LIBRARY||CUBEMX||Keil uVision
15:31
Watchdog Timer - What is it, and how to use it in MicroPython
4:39
Kevin McAleer
Рет қаралды 4,6 М.
Low cost logic analyzer
7:47
Mr.T's Design Graveyard
Рет қаралды 8 М.
STM32 Multi ADC DMA method
29:42
PR TechTalk
Рет қаралды 4,7 М.
How to create delay in nano/micro seconds using timers in stm32
7:41
ControllersTech
Рет қаралды 45 М.
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 104 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,1 МЛН