ATJTAGICE mkII (Debugwire) and EEPROM

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

Can EEPROM be uploaded through Studio 4.09 using Debugwire ?

The "Known Issues" says that EEPROM cannot be viewed while single stepping. However "Upload/Download memories" doesn't seem to program the EEPROM when an eep file is loaded. This was checked by moving EEPROM into RAM during initialization and not by the memory view window.

Greg

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

After more experimentation, it has become clear that the ATJTAGICE mkII or Studio 4.09 is erasing the EEPROM when it's connected and uploading new code to the target device through Debugwire. There is a menu item underneath JTAGICE mkII Options that has a checkbox for EEPROM (see attached picture).

It appears as if something is wrong with the tools and not my app code.

Attachment(s): 

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

EEPROM erasure problem has a workaround. The "EESAVE" fuse must be programmed if you intend to keep your EERPOM contents when using the JTAGICE mkII in Debugwire mode. The JTAGICE mkII uses a chip erase command when it uploads new code. This erases both flash AND EEPROM if the EESAVE fuse is unprogrammed. When this fuse is programmed, EEPROM contents are saved when debugging.

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

There was a bug that caused the Preserve EEPROM checkbox to always be enabled for debugWIRE parts. The actual behaviour is, as you discovered, dependent on the fuse settings, which can not be changed through debugWIRE. I just fixed this one, thanks for telling us.

The Up/download memories has a few issues which we're fixing for the next Studio release, one of them is uploading EEPROM via JTAGICE mkII.

Tore Olsen
AVR Software Tools

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

:cry: We have also problems with programming the EEPROM!
We use the ATmega64 and I found out, that settings like "Preserv EEprom content.." affect nothing!!!

I am also missing the Advanced settings in the JTAG ICE options.. I need the feature (see attached picture!) "Reprogram only if time stamp..." 'cause I have to store data in flash for debuggung, which programmed later by an bootloader... BTW DataBreak Point are also not implemented.. With the JTAGICE and AVRStudio 4.08 works all these features well..
Can anyone understand this.. (nice greetings from Microsoft... :wink: )

Attachment(s):