Retain eeprom on sketch upload with the DUE

OK but need some help with PFOD.
As you can see i fail to refresh the Pfod screen during the process .
I want to show the message "Please Wait while Backup" in Pfod but it's never work :evil:
in the code i try to add rc.run(); just after change the CopyStatus but did not work.


Code:
void Robot::BackupToRtc() {
  CopyStatus="Please Wait while Backup";
 //add something to refresh the pfod msg
  addressPointer = 0;
  byte valeur;
  while (addressPointer < 900) {
    Console.print(addressPointer);
    Console.print("Arduino Actual Value : ");
    eeread(addressPointer, valeur);
    Console.print(valeur);
    Console.println(" Ecriture dans RTC ");
    writeAT24C32(addressPointer - 1, valeur);
  }
  CopyStatus="Backup finish";
  Console.println(CopyStatus);
  
}


So if someone know what to put instead of //add something to refresh the pfod msg to make it work it would be Cool.
By.
 
The pfodApp menu is updated by the phone - You send the interval when sending the menu, this will request the phone to ask again for the menu after 1000 milliseconds: {.BACKUP`1000 .... }

However, the problem in your case is that the pfodApp code is not called within your function BackupToRtc and so cannot send something to the phone - 'rc.run' has to be called periodically to make the pfodApp magic to be happen.

Try to call 'rc.run' in your while loop?
 
Hi Alexander.
Perfect i view that you directly use the RTC eprom so don't need the backup.
For the rc.run() it's also don't work into the loop and now not needed anymore.
Again thanks to you and Jurgen .
 
Oben