loathingKernel / ariadne-bootloader

A little less unfinished TFTP bootloader for Arduino Ethernet or Arduino with Ethernet Shield
45 stars 18 forks source link

Call wdt_reset() before bootloader timeout #7

Closed per1234 closed 8 years ago

per1234 commented 8 years ago

Bootloader timeout is 20 seconds. The watchdog timeout added in https://github.com/LoathingKernel/Ariadne-Bootloader/commit/e7c70b78c75c69e800f4986b7be7e3e0d44986cb is 8 seconds. This was causing the user application to never be reached after a reset with no upload, instead it would just reset and restart the bootloader every 8 seconds.

@andrebstv if you have the time maybe you could take a look to make sure this change is correct.

andrebstv commented 8 years ago

@per1234 I did the exact same change in my code. And so far it`s working.

per1234 commented 8 years ago

@LoathingKernel it sounds like this is ready to merge. I think this is the final change needed to get the code back into a functional state.

loathingKernel commented 8 years ago

Agreed

andrebstv commented 8 years ago

I posted this update on the codebendercc repo. It`s outdated?

loathingKernel commented 8 years ago

@andrebstv no but this is where development happens now, I just sync the two repos whenever I remember to do it. Generally the codebender repo lags a few commits behindthis one.