This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
snippets:watchdog [2013/04/09 16:32] – ba | snippets:watchdog [2015/04/02 10:40] – ba | ||
---|---|---|---|
Line 18: | Line 18: | ||
* A reset during a file function can corrupt a file system | * A reset during a file function can corrupt a file system | ||
* When inserting the in line C-nodes the following warnings are generated.\\ This warning can be ignored, because it is about a disabled part of the block diagram. {{: | * When inserting the in line C-nodes the following warnings are generated.\\ This warning can be ignored, because it is about a disabled part of the block diagram. {{: | ||
+ | |||
+ | ====== check if a reset was caused by the watchdog ====== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ====== save last programm state ====== | ||
+ | With this snippet you can write and read a memory space that is not initialized at boot time:\\ | ||
+ | {{: | ||
+ | |||
+ | The value read is undefined, when there was a power loss. | ||
+ | |||
+ | When a watchdog event occured or a reset signal was applied the value ramains the same as bevore the reset. | ||
+ | |||
+ | |||
+ | |||
+ | The memory space is written and read by the following functions: | ||
+ | |||
+ | - Mass storage device | ||
+ | - Format file system | ||
+ | - Firmware update | ||
+ | |||
+ | |||
+ | |||
+ | The usable memory space is 16bytes long. With U32 an I32 Values 4 values can be written at the following locations: | ||
+ | |||
+ | 0xFF800000 | ||
+ | 0xFF800004 | ||
+ | 0xFF800008 | ||
+ | 0xFF80000C | ||
+ | |||
+ | |||
+ | |||