What are your start up settings for the clock ? I.e the clock fuses, try
setting the start up delay to be a bit longer (16k +64ms) this I think will
help it out.
Regards
_____
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Cat C
Sent: 11 March 2010 19:15
To: avr-chat@yahoogroups.com
Subject: [AVR-Chat] Code stuck waiting for SPI transmission but only after
power-up. (ATMega644P)
Me again... :-)
My code sends stuff over SPI, like this:
SPDR = something;
while(!(SPSR & (1<<SPIF))) //Wait for transmission complete
{ ; }
I know I should have a counter and get out with an error, but... that's
beside the point...
This used to work fine, but at some point it started to get stuck on the
"while" first time I power up the board.
It works fine after a reset.
Any ideas please?
Thanks,
Cat
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]Message
RE: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)
2010-03-11 by Steven Holder