save(); dump(); load(); what about clear() -> use reset(true) #1140
Replies: 13 comments
-
Posted at 2016-02-16 by @gfwilliams No... What's |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-16 by @MaBecker ups, yes I mean load() can you please change the title ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-16 by @gfwilliams No problem :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-17 by @allObjects
Would it be possible to actually make it this way? ...because after a first What ere these few hundred bytes that still are saved anyway after a |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-17 by UliMerkel AFAIK, some bytes are still occupied holding the (command) history for the Web IDE. Source: http://forum.espruino.com/comments/12713514/ Also, try adding: global["\xFF"].history=[]; |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-17 by @gfwilliams After I think you'll find that |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-09 by @MaBecker On ESP8266 there are some lines of code after reset() coming from jshReset(), so The reason behind this is, that saved code caused trouble on ESP8266 when updating to a new release in the past. Sure "erase_flash" is an option, but works only over serial connection AFAIK. But So this is my
I purposely did not name addr. If this is helpful for you, than lookup it up at the Espruino ESP8266 board documentation page section "SAVING CODE TO FLASH" |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-09 by @gfwilliams Thanks - if you want to do it when you flash a new firmware, you could just add a line to flash blank.bin to the correct place to overwrite your saved code. If we had a 1Mb image file that could just be written to the device (like you can with the 512k one) it'd solve a lot of this trouble |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-09 by @MaBecker On the ESP8266 side you normarly use wiflash :-) This is a ota implementation - the easiest way to flash the ESPs with new firmware. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-09 by @MaBecker A 1MB file would damage a lot of sections with special ESP setting, what causes a bricked ESP that has to be flash with the original AT firmware to unbrick. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-12 by @gfwilliams Are you sure about that? The 512k combined image works perfectly |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-12 by @MaBecker Not sure, I only know for sure that there is a size limit of 479232 bytes for a single image file for ESPs. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-08 by @MaBecker just changed the tile because with 1v94 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-02-16 by @MaBecker
Is it planed to have clear() to erase saved program code ?
Beta Was this translation helpful? Give feedback.
All reactions