commandline programming EEPROM

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

Hello.

I am trying to program xmega32e5 using atprogram.exe, erase and hex file goes ok, but eeprom (eep) is corrupted somehow

erase chip command:atprogram -t avrispmk2 -i pdi -d atxmega32e5 --verbose chiperase

hex part:atprogram -t avrispmk2 -i pdi -d atxmega32e5 program -f pondx5.hex

both goes ok.

 

eeprom:atprogram -t avrispmk2 -i pdi -d atxmega32e5 program -ee --format HEX -f pondx5.eep

Programming completed successfully.
Exitcode: 0

 

data in eeprom file (generated by codevision) is "12347" corrupted data is "00200"

:06000000313233343700F9
:00000001FF

ana

 

 

 

 

Last Edited: Thu. Sep 25, 2014 - 08:52 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
:06 0000 00 313233343700 F9

Clearly that should put "12347" into the EEPROM. Are you saying that what  you read out is 0x30, 0x30, 0x32, 0x30, 0x30, 0x00 ?

 

Is that reading being done using PDI or by your application code running on the Xmega?