Тёмный
No video :(

WATCHDOGS in STM32 || IWDG and WWDG || CubeIDE 

ControllersTech
Подписаться 40 тыс.
Просмотров 30 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@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.
@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!
@kamilmeric5751
@kamilmeric5751 3 года назад
You are perfect and clear. Solution to my problems. Respect.
@rafalzasada8826
@rafalzasada8826 3 года назад
4:27 Useful shortcuts: Ctrl + click - opens declaration. If you want to go back press Ctrl + W.
@servidorteleco8916
@servidorteleco8916 4 года назад
Excelent video. Keep making this videos. They are very instructivo. Cheers from Argentina.
@TheFahdi
@TheFahdi 2 года назад
I agreed, excellent explanation with simplest maths...
@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.
@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.
3 года назад
Great job, Thank you so much.
@ivanfernandolesmesroldan4502
@ivanfernandolesmesroldan4502 3 года назад
Bro you are the best for STM videos, Where are you living bro?
@eduardodelarosaferrer2205
@eduardodelarosaferrer2205 4 года назад
Really useful video
@4valves551
@4valves551 2 года назад
In WWGD formula why use this value 4096 ? is that machine cycle value of stm32??
@Ricarrr
@Ricarrr Год назад
Congratulations! How can I turn off WWDG to enter StandBy?👍
@goodwill7643
@goodwill7643 3 года назад
thank you
@englishwithwala
@englishwithwala 3 года назад
Can we set presale as 4 for 1 second delay
@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 4 года назад
how +64 came in the window watchdog counter formula
@ControllersTech
@ControllersTech 4 года назад
It's modified from the one ST have in the reference doc.. Check that out.
@anithayala9272
@anithayala9272 4 года назад
@@ControllersTech Okay. How to calculate the window value for IWDG?
@ControllersTech
@ControllersTech 4 года назад
Common man.. just watch the video... It's what i have explained there.
@anithayala9272
@anithayala9272 4 года назад
and how can we observe those changes while running the code?
@anithayala9272
@anithayala9272 4 года назад
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.
Далее
Музыкальные пародии
00:28
Просмотров 19 тыс.
Cute kitty gadgets 💛
00:24
Просмотров 12 млн
It's time for change, it's time for Linux.
10:53
Просмотров 234 тыс.
Watchdog Timer in Automotive domain
7:00
Просмотров 2,6 тыс.
STM32 ADC MULTI CHANNEL without DMA || HAL || Poll
9:22
Watchdog timer in embedded systems
7:09
Просмотров 28 тыс.
Музыкальные пародии
00:28
Просмотров 19 тыс.