AnsweredAssumed Answered

ram to flash function

Question asked by Luiz Carlos Stevanatto on Aug 11, 2013
Latest reply on Nov 28, 2013 by stanish


I wanto to store the value of a variable before disconnect my Qorivva Microcontrller.

If it was possible:


int my_var1 = 7; // RAM variable

const int my_var2; // FLASH variable

void ram2flash(void)


     my_var2 = my_var1;


and once I run ram2flash  than I have 7 stored in my_var2 even if I restart.