What's happened is the code is executed direct from flash, and you've written enough data to flash that the flash then has to be 'compacted' and things move around, but the function still points to the old area of flash which doesn't contain the right code any more.
I'm pretty sure that on the latest firmwares (2v11, if not before) this is fixed and the function pointers are automatically updated.
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.
Ahh, right - what firmware version are you using?
What's happened is the code is executed direct from flash, and you've written enough data to flash that the flash then has to be 'compacted' and things move around, but the function still points to the old area of flash which doesn't contain the right code any more.
I'm pretty sure that on the latest firmwares (2v11, if not before) this is fixed and the function pointers are automatically updated.