My understanding is that you have to feed the watchdog from time to time in various parts of the programme, and that would include software timer or stall loops as well. You could feed the watchdog from inside the counter loop. Then, you'd still get the timeout. Cat C wrote: > The voltage is fine once it's up, everything works after a reset. > > I tried the counter approach and it did tell me it timed out. > However, I had to revert to no-timer so it gets stuck there so the watchdog doesn't get kicked, so I get a reset and then it works :-) > > Thanks,
Message
Re: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)
2010-03-14 by erikc