AnsweredAssumed Answered

Using flash memory for non volatile variables

Question asked by TecAlabama on Mar 10, 2013
Latest reply on Mar 11, 2013 by ABuda

I want to write some variables to non-volatile flash. I am using a ADuC7022. The address is 0x80000 to flash memory. My hex file is 6450 bytes. The first 2k byes of flash is firmware. Can I just write near the end of flash memory so it will never get erased? Memcpy( &addr, &myVar). Were addr is 0x8FFA0. I assume the read from flash would be memcpy( &myVar, &addr). How do I set addr up in C++? Const unsigned integer addr=0x8FFA0?

Outcomes