Difference: WatchDog (3 vs. 4)

Revision 42021-12-30 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 16 to 16
 
Changed:
<
<
>
>
 

How to use

watchdog     ( -- )        Activate watchdog
watchdog?    ( -- flag )   Has the WATCHDOG bitten?
watchdog#    ( -- u )      How many times has the watchdog bitten since cold startup?
Added:
>
>
watchdog@ ( -- addr ) Address where the atchdog bit
 
Changed:
<
<
If thread takes longer than about 500 ms the watchdog will bite and a reset occurs. As long the thread waits for an event e.g. file operation, keyboard (the thread is blocked), nothing happens.
>
>
If a thread takes longer than about 500 ms the watchdog will bite and a reset occurs. As long the thread waits for an event e.g. file operation, keyboard (the thread is blocked), nothing happens.
 
: forever begin again ; [RET] ok.
watchdog? .[RET] 0  ok.

Line: 47 to 48
 Do not activate the watchdog in debugging mode.
Changed:
<
<
watchdog? [IF] .( Watchdog has bitten, # bites: ) watchdog# . cr [THEN]
>
>
watchdog? [IF] .( Watchdog has bitten at ) watchdog@ hex. .( , # bites: ) watchdog# . cr [THEN]
 

Changed:
<
<
>
>
 

Implementation

Changed:
<
<
For STM32WB55:
>
>
For STM32WB55:
 
WWDG clock (Hz) = PCLK1 / (4096 * Prescaler)
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback