You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • It could be what I mentioned before I guess - that when you save new code into storage, the storage library tries to compact, which rearranges things in ROM - and any code that was executed from flash would have had the function code stored in ROM (which would have then changed position).

    If you write your bootloader code like this and upload:

    eval(`
    Your
    code
    in
    here`);
    

    Then at the very least your bootloader will remain intact - and you can use eval(require("Storage").read(...)+"") in the bootloader to evaluate the code you want to run (which should cause the functions to all be loaded into RAM).

About

Avatar for Gordon @Gordon started