problems loading EEPROM [solved: was EESAVE]

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

I have some EEPROM values initialized in my code:

uint8_t EEMEM EPROM_numbers_to_call = 1;
uint8_t EEMEM EPROM_phone_number[5][11]= {
	{1,7,2,7,6,3,9,9,0,0,0},
	{1,7,2,7,5,9,7,4,0,0,0},
	{1,1,1,1,1,1,1,1,1,1,1},
	{1,1,1,1,1,1,1,1,1,1,1},
	{1,1,1,1,1,1,1,1,1,1,1},
	};
char EEMEM EPROM_message[120] = {
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!',
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!',
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!',
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!',
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!',
'T','h','u','n','d','e','r','b','o','l','t',' ', 'A','l','a','r','m','!'
};

I compile the project, everything is good. The .eep looks like it should:

:1000000001010702070603090900000001070207B2
:1000100005090704000000010101010101010101BE
:1000200001010101010101010101010101010101C0
:1000300001010101010101015468756E646572627C
:100040006F6C7420416C61726D215468756E6465CB
:1000500072626F6C7420416C61726D215468756EB0
:10006000646572626F6C7420416C61726D215468BA
:10007000756E646572626F6C7420416C61726D2183
:100080005468756E646572626F6C7420416C617245
:100090006D215468756E646572626F6C7420416C7A
:1000A00061726D21000000000000000000000000EF
:00000001FF

I go to upload it and it seems to upload fine, yet verify fails. I go to read it and its still holding values that were from my previous test, AKA the new .eep was not loaded at all:

:1000000001010702070603090900000001010001C0
:1000100001010100000000010101010101010101D4
:1000200001010101010101010101010101010101C0
:1000300001010101010101015440514420454042A8
:1000400043404400000000000000000000000000E9
:1000500000000000000000000000000000000000A0
:100060000000000000000000000000000000000090
:100070000000000000000000000000000000000080
:100080000000000000000000000000000000000070
:100090000000000000000000000000000000000060
:1000A0000000000000000000000000000000000050

What would be causing the device to not take the new EEPROM? I am using a JTAG ICE MKII in JTAG mode to load code/eeprom. If I run the program via JTAG debug it seems to load the EEPROM fine, but not via normal firmware/eeprom uploading mode.

You don't gno-me!

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

EESAVE fuse set?

Stefan Ernst

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

Yep, that appears to be it. Thank you!

You don't gno-me!