NoRi-230401 / SDUpdater-AppTemplate-forUnified

app template of SD-Updater for m5stack Unified
MIT License
2 stars 0 forks source link

Factory app support #1

Open tobozo opened 8 months ago

tobozo commented 8 months ago

Hi and thanks for documenting this :heart:

It probably doesn't apply to StackChan firmwares but in some very specific situations it is also possible to store the menu on a factory partition.

  if( SDUpdater::saveSketchToFactory() ) {
    // sketch was just saved to factory partition, this is only triggered once
    SDUpdater::loadFactory(); // will restart on success
    log_e("Switching to factory app failed :-(");
  }

esp32-arduino-core 2.0.14 and upper versions come with two examples of special partition schemes for M5CoreS3:

image

As an example, the SecuriSuite application in M5Burner is built with that special partition scheme, and uses M5CoreS3-FW-Launcher.bin as the menu.

image

NoRi-230401 commented 8 months ago

Thank you for your information and your special nice software, SD-Updater . I will try to do some situations .