AVR eeprom access

Comments

5 comments

  • Avatar
    Paul Curtis

    __eeprom int x;

    x = 1;

    ++x;

    I think this is what you probably want.

    0
    Comment actions Permalink
  • Avatar
    Ben Stuyts

    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

     

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    It's not really documented at present, but will be when we get the next set of documentation out the door which is generated frlom our own format.

    0
    Comment actions Permalink
  • Avatar
    Ben Stuyts

    Cool, thanks!

    0
    Comment actions Permalink
  • Avatar
    Akos Buzogany

    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?

    0
    Comment actions Permalink

Please sign in to leave a comment.