Can't get EEPROM to work in simulation mode (ATtiny44A)

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

I'm creating a project for an ATtiny44A. But I can't get the EEPROM to work in simulation mode.

 

When I debug my code in simulation mode I can't see the EEPROM values, the memory window only shows question marks. And it is impossible to edit any value.

 

Any suggestions how to get it to work?

 

Memory window

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

I've seen another thread like this in recent weeks so I think there probably is a simulation fault in this area.

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

clawson wrote:
I've seen another thread like this in recent weeks so I think there probably is a simulation fault in this area.

I seem to recall that, also.  But I can't find the thread.

 

The simulator HELP at least implies that EEPROM is supported.

Unlike real hardware, the simulator allows flash and EEPROM contents to be changed directly using the Atmel Studio memory view.

So I took a test program with a Mega128 target and a test EEPROM value.  Assigned it to PORTB to force the compiler to keep it.  Shows up in the .EEP file produced by CodeVisionAVR.  But the value can't be seen in the EEPROM memory view, as with OP and the '44A.

eeprom 0x0FA2  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
eeprom 0x0FBE  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
eeprom 0x0FDA  ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
eeprom 0x0FF6  ff ff ff ff ff ff ff ff ff ff ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??  ÿÿÿÿÿÿÿÿÿÿ..................
eeprom 0x1012  ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??  ............................
eeprom 0x102E  ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??  ............................
eeprom 0x104A  ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ............................
eeprom 0x1066  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

...and a Mega128 has indeed 4kB of EEPROM space. 

 

 

There used to be a magic incantation in Studio and simulator use to Up/Download Memories that would take care of it.  How is it done in Studio7?

 

[edit]  I poked about with a GCC test program, Mega328P target.  .EEP was created.  .EEP contents look good.  But don't show up in memory window.  How can Studio7 be out for this long, and no eep load and nothing in known issues?

 

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.

Last Edited: Thu. Oct 25, 2018 - 02:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the suggestion was that it only be this t44?

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

clawson wrote:
I think the suggestion was that it only be this t44?

But, as mentioned, I tried it with a different target, '328.  Can anyone get .EEP contents into the eeprom memory window of Studio7 simulator for >>any<< AVR8 model?  How?

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.