EmbDev.net

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


Author: Nikhil Garade (nikhil)
Posted on:
Attached files:

Rate this post
0 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.!!!

Author: Carlos (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.