...but this didn't entirely help solving the problem. I cycled the power supply many times. Most of the time it read from FlashEEPROM as expected (correctly), but at 10th time or so, here is the result:
Loading 7991 bytes from flash...
Running onInit()...
WARNING: Expecting a number or something iterable, got undefined
WARNING: Expecting a number or something iterable, got undefined
Error on unpacking: null
wire data:
ERROR CONFIG READ: Error on unpacking
raw data read:
dump: 1
WARNING: Expecting a number or something iterable, got undefined
WARNING: Expecting a number or something iterable, got undefined
Error on unpacking: null
wire data:
ERROR CONFIG READ: Error on unpacking
raw data read:
dump: 2
WARNING: Expecting a number or something iterable, got undefined
WARNING: Expecting a number or something iterable, got undefined
Error on unpacking: null
wire data:
ERROR CONFIG READ: Error on unpacking
raw data read:
dump: 2
error reading input counter: null
....
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@DrAzzy After refactoring my classes (used
prototype
s instead), memory usage is decreased dramatically:Edit
...but this didn't entirely help solving the problem. I cycled the power supply many times. Most of the time it read from FlashEEPROM as expected (correctly), but at 10th time or so, here is the result: