This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/44082] AVR watchdog resets the core during initialization
- From: "j-etienne at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2010 16:39:34 -0000
- Subject: [Bug target/44082] AVR watchdog resets the core during initialization
- References: <bug-44082-19169@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from j-etienne at users dot sourceforge dot net 2010-06-10 16:39 -------
<avr/wdt.h> does provide the means to stop/start/refresh the watchdog from the
main C program. But, as said in the original comment, if the bss and/or data
section is too large, the CPU spends a lot of time initializing these memory
sections, and the watchdog fires *before* the start of the main C program.
Therefore, the device endlessly resets, whatever code is in the main.
--
j-etienne at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44082