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.
© Espruino, powered by microcosm.
Report a problem