??? 04/12/10 11:18 Read: times |
#174994 - My Method... Responding to: ???'s previous message |
Hi Marshall Brown,
I use this method: Assign an extra byte or int in the databuffer/array. This is only for your use, not for the end-user. After Power-On-Reset, Check if it has 0x55(byte) or 0x55AA(int). If not, then load the entire buffer with default values in EEPROM, AND write this byte with 0x55 or 0x55AA, so that after the next power-on-reset, it will not load the default values; These will be loaded only when you erase the whole chip, or place a new EEPROM from market. I believe, a similar method is used by computers to find if the hard disk is bootable or not. Of course PCs do, use some more software to identify a bootable disk, but that's another story. |
Topic | Author | Date |
Loading Flash EEPROM with defaults | 01/01/70 00:00 | |
this seems to work - any improvements | 01/01/70 00:00 | |
Always a key requirement! | 01/01/70 00:00 | |
toolchain dependent | 01/01/70 00:00 | |
A couple of points | 01/01/70 00:00 | |
volatile | 01/01/70 00:00 | |
separate source | 01/01/70 00:00 | |
So subtle | 01/01/70 00:00 | |
Excel is (also) among your friends | 01/01/70 00:00 | |
Yes missing initialisers do default to 0 | 01/01/70 00:00 | |
My Method... | 01/01/70 00:00 | |
an alternate suggestion (which I use) | 01/01/70 00:00 | |
That uses more memory | 01/01/70 00:00 | |
Oliver ??? | 01/01/70 00:00 | |
I believe that is what most devices do..![]() | 01/01/70 00:00 |