"No code in Flash" #5567
Replies: 1 comment
-
Posted at 2016-09-17 by Kolban I wonder what is meant by 512/512 in the message area on line 11? I also believe that the latest Espruino is 1v87 ... something might have improved in a later release? Posted at 2016-09-17 by tve can you post what Posted at 2016-09-19 by ceremcem Successful save prints:
Unsuccessful save prints:
Posted at 2016-09-19 by @gfwilliams Hmm, looks like it might be crashing after failing the second time. On ESP8266 there are only a few pages reserved for saved code in the first 512kB flash though (I guess to make it work the same with all ESP8266 boards). It looks like there's too much code to fit into what's available (3 x 4k pages?). It might be possible to shift stuff around but it looks like memory is tight at the moment as-is. Posted at 2016-09-19 by tve Yup, looks like there is a bug when the save size is too big. You are correct about the 3x 4KB pages. Posted at 2016-09-19 by ceremcem Will it survive? :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-09-17 by ceremcem
I came across a few times with the same error: "No code in Flash" when I toggle power of ESP-12. This time root of the problem is the code size. If I remove some part of application code, it loads and executes well, and it starts on power toggle. If I re-add that part of (unimportant) code, my application works OK, but it doesn't start when power is toggled. If
load()
function is executed, it prints "No code in Flash":Since ESP-12 has 4MB of flash memory, it shouldn't related with memory or application size, right?
Beta Was this translation helpful? Give feedback.
All reactions