AVR eeprom access
Hi,
What's the best way to access the on-chip eeprom of an atmega128? I have some iar and gcc examples, but they don't work directly on CrossWorks (v2). Looking through the documentation I can't find any references an eeprom section. Do I need to go through the EE registers, or is there a more elegant way?
Thanks,
Ben
-
Thanks Paul, that was exactly what I was looking for. I see it also takes care that any initialized data is put in the .eep file.
I could not find this in the documentation anywhere. Is this an omission or am I just looking in the wrong place? Are there any other of these handy features?
Ben
-
I tried it for XMega, but it says "undefined symbol ___uint16_eeprom_store". Is it because XMega handles EEPROM quite differently than its predecessors, or is it because I am darn to stupid to understand some elementary features of the compiler?
Are there EEPROM handling functions for XMega, or should I use the code found on Atmel's website?
Please sign in to leave a comment.
Comments
5 comments