hi if i want save data in AT91sam7x256 how use uvision.I know at91sam7x256 have not e2prom but i want save data & when I power down/up ,i can use them.i listened about noinit & __attribute__((zero_init)). but it doesn't work.is it work for at91sam7x256?how? regard
Noinit is just a question of not zeroing RAM, so you may reboot while keeping RAM contents.
That is obviously not enough when talking about power down/up. So you have to learn how to store information in the flash. Sorry, but the compiler can't help you there. It's work for you. And you must also consider that the flash in many microcontrollers can only handle a limited number of erase cycles - often way less than EEPROM memory.