Issue with Micro:bit saving code #7519
Replies: 1 comment
-
Posted at 2020-10-02 by @gfwilliams This might help: http://www.espruino.com/Saving An image of what's currently in RAM is compressed and written to flash. It looks like right now it's not getting compressed enough to fit in to the 2k reserved for saved code (there's more flash used outside of this for the Espruino firmware). Best bet for the moment is to use the IDE's 'save to flash' method, which writes a textual version if your code into flash (rather than trying to image RAM) Posted at 2020-10-02 by saj42 Thanks @gfwilliams interesting reading. I've tried the 'save to flash' method but get
Bizarrely enough the same code that was failing this morning to save() once sent to RAM isn't now erroring. Thanks Posted at 2020-10-02 by @gfwilliams As I mentioned in my reply to your news post http://forum.espruino.com/conversations/354079/#15551980 I fixed it for you this morning. You just have to download it from http://www.espruino.com/binaries/travis/master/ and copy it on, and then it should work. Posted at 2020-10-02 by saj42 Hi @gfwilliams, sorry, bear with me I'm trying to get my head around a number of things. That's done the trick. Flashing now succeeds. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-10-02 by saj42
Hi, If I send code to the device's RAM (2v07.14) then enter save(); I get an error message stating that my code is too big to save to flash.
The error message doesn't appear when using 2v06.
The code is simple and is....
Details of 2v07.14
I've worked out that the code isn't minified on the device.
Is the ~2k flash for both firmware and code?
Thanks
Steve
Beta Was this translation helpful? Give feedback.
All reactions