Skip to main content
thorsten2
Associate II
Nov 26, 2009 8:25 AM UTC
Question

EEPROM Example with more variables

Posted on November 26, 2009 at 09:25

EEPROM Example with more variables

    This topic has been closed for replies.

    3 replies

    thorsten2
    thorsten2Author
    Associate II
    May 17, 2011 11:31 AM UTC
    Posted on May 17, 2011 at 13:31

    Hi,

    I use the EEPROM Example AN2594.

    But now I have to store more than 512 elements - one Page only stores 512 Elements in high density devices.

    How can I increase this value?

    Regards,

    Thorsten

    thorsten2
    thorsten2Author
    Associate II
    May 17, 2011 11:31 AM UTC
    Posted on May 17, 2011 at 13:31

    Thank you for the information.

    Is there an example what I have to change in the code?

    Sorry for this question - but it's my first contact with the ARM Cortex M3

    Regards,

    Thorsten

    armmcu
    Associate II
    May 17, 2011 11:31 AM UTC
    Posted on May 17, 2011 at 13:31

    Hi,

    In the current implementation, the emulated EEPROM is able to store 512 ''16 bits'' variables including also their virtual addresses in high density devices.

    As The Flash memory can be erased page by page, so you can define 4 pages instead in your firmware to be able to store 1024 ''16 bits''.

    When the 2 firsts pages (let say page0&1) are full, the firmware switches to pages3&4. Page0&1 are garbage-collected and then erased.

    Cheers,