Downloading to flash without deleting EEPROM

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Freaks,

I think this may have been discussed before but I couldn't find any previous posts. Is it possible to download to flash without deleting the contents of the EEPROM?
I'm using the AVRStudio command line (stk500.exe).
Assuming its not possible, is it possible to read the EEPROM contents, program the flash, then reload the EEPROM using the stk500.exe command line?

Thanks
Dave.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is possible, but I don't know how with stk 500, I use avrdude from winavr or dt006 from bascom, and there you can do it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It depends, which AVR you use.
Some AVRs can prevent EEPROM content from erase.
Please look on the fuse bits of your AVR.

Peter

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

is it possible to read the EEPROM contents, program the flash, then reload the EEPROM using the stk500.exe command line?

I don't know if it is possible in one operation, but I think that STK500 has "read-EEPROM" functionality, so it sounds like a two-step operation would work. [Well, you might want to verify the EEPROM read, adding another step.]

The read-EEPROM-first-then-reprogram-all is a common procedure that can be carried out manually, or be supported by some programming tools (CodeVision, ChipBlaster).

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.