Permalink
Browse files

Enable bootloader RESET bypass

Inspect reset cause and bypass magboot if reset was caused by watchdog,
brown-out or power cycle. The only way to enter programming mode is by
pulling RST low (eg. pushing RESET button on board)
  • Loading branch information...
blastur committed Mar 2, 2011
1 parent 1f408d8 commit 052e3b7409d438dc4dbbc88e3abad99cb5e701f2
Showing with 0 additions and 2 deletions.
  1. +0 −2 magboot.c
@@ -138,12 +138,10 @@ int main(void) {
cause = MCUSR;
MCUSR = 0;

#if 0
if (bit_is_clear(cause, EXTRF)) {
/* Bypass magboot if reset caused by watchdog, power-on or brown-out */
cmd_jump(JUMP_ADDR);
}
#endif

wdt_enable(WDTO_4S);

0 comments on commit 052e3b7

Please sign in to comment.