EmbDev.net

Forum: µC & Digital Electronics FLASH byte address warning while burning code using STK600 in ATMEGA1281


von Nikhil G. (nikhil)


Attached files:

Rate this post
useful
not useful
Dear All,
I am trying to write a simple LED flashing program into STK600 kit with 
ATMEGA1281 using IDE AVRStudio4.The kit is USB powered through my PC com 
port.I use in-system programming for burning my code.I use internal 
clock of ATMEGA1281.

However I get a very typical warning as follows:

WARNING: FLASH byte address 0x0096 is 0x6D (should be 0x7D).. FAILED!

Given below is the list of statements that I get in my program window:

OK
Reading FLASH input file.. OK
Setting mode and device parameters.. OK!
Entering programming mode.. OK!
Erasing device.. OK!
Programming FLASH ..      OK!
Reading FLASH ..      OK!
WARNING: FLASH byte address 0x0156 is 0x80 (should be 0x81).. FAILED!
Leaving programming mode.. OK!

The above statements indicate the code being burnt in the controller. I 
do not understand is the program actually getting burnt in the 
controller as I do not see the expected results om LEDs.

Have attached  the screen shots of the warning message and my project 
settings along with the code I attempt to burn.

I see LEDs 0,1,3,5 ON for some time . Then, LED0 blinks intermittently 
without any pattern. LEDs 0,1,3,5 do not blink at all.
Also I do not get the warning every time I burn the code. Sometimes, I 
get the following statements after I erase and re-burn the code in the 
controller

OK
Reading FLASH input file.. OK
Setting mode and device parameters.. OK!
Entering programming mode.. OK!
Erasing device.. OK!
Programming FLASH ..      OK!
Reading FLASH ..      OK!
FLASH contents is equal to file.. OK
Leaving programming mode.. OK!

Please suggest if any body has any idea what could be the problem and 
how to go about this warning msg.

Thanking you in anticipation.!!!

von Carlos (Guest)


Rate this post
useful
not useful
Sorry for my english. I'm from Uruguay.
You ar running the AVR at 14.7 Mhz with a 3.3 v power source. It is out 
of the specifications. With 3.3 v can run a maximum clock of 10.66 Mhz.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.