Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
clawson
PostPosted: Sep 28, 2010 - 04:12 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62219
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I suppose some applications are critical on the inital state of the CPU registers, but it would be bad coding practice to assume that the GPR are initialized to zero. I don't think GCC makes that assumption when using register variables. In any case the WDT is a good way to clear out the processor to it's init state.

The real gotcha are any unhandled ??IE?? bits that are set when you sei(). For tiny/mega then WDT is the perfect way to reset the h/w. For Xmega it has a more direct mechanism to force a reset of the CPU state machine.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
masoud_abbasi
PostPosted: Mar 13, 2012 - 12:16 PM
Newbie


Joined: Jan 25, 2012
Posts: 1


hi all
i had a problem with avr1605 that when program the application code >64K with avrosp bootloader it take error unequal at address 0x10000
i fix it .the address variable has been overflow.casting was needed as wel as this------>
else if(val == 'A') // Set address...
{ // NOTE: Flash addresses are given in words, not bytes.
address = (((long int) recchar()) <<Cool| recchar(); // Read address high and low byte.
sendchar('\r'); // Send OK back.
}




kind regard
masoud abbasi fard
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits