Fixed! If you install the latest cutting edge build it should fix that even with your data in flash (but I'm afraid your data seems pretty garbled and I don't think is recoverable).
It was to do with Storage being corrupted, and then the recent addition of filename tables (to speed up storage) meant that it was using a corrupt file (which was massive) as a filename table, and it spent ages searching it and caused a reboot.
can pushing and holding button trigger compact and then (because of still holding the button) watchdog reboot in the middle of compact?
Well, it shouldn't directly reboot - because jshKickWatchDog is called directly from the compaction code. However I just looked at it and yes, a shorter press sets the INTERRUPTED flag, which actually seems to cause the page erase to break out! I'll get a fix in for that now... I bet that's how the most recent storage corruptions happened!
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.
Fixed! If you install the latest cutting edge build it should fix that even with your data in flash (but I'm afraid your data seems pretty garbled and I don't think is recoverable).
It was to do with Storage being corrupted, and then the recent addition of filename tables (to speed up storage) meant that it was using a corrupt file (which was massive) as a filename table, and it spent ages searching it and caused a reboot.
Well, it shouldn't directly reboot - because
jshKickWatchDog
is called directly from the compaction code. However I just looked at it and yes, a shorter press sets the INTERRUPTED flag, which actually seems to cause the page erase to break out! I'll get a fix in for that now... I bet that's how the most recent storage corruptions happened!