Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)

2010-03-14 by erikc

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,

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.