• I don't really understand what you mean @DrAzzy... Do you have a simple example that doesn't work as you expect with something like the 'bootloader' code above?

  • What we were talking about was updating the code saved to the Espruino's flash.

    And my conclusion is that you can't really do that, because there's no way to get it back to the "clean" state you want to save(). You can of course have it load all it's code from the SD card every time it loads - that's easy - but then you need to keep the SD card in all the time.

    If you read what 7114 is asking about, he wants to be able to update the code stored on flash with save(); and have it automatically save and come out right. I don't think there's a way to do that that doesn't depend on writing the code to be amenable to that.

About

Avatar for Gordon @Gordon started