Turns out it wasn't anything difficult at all. To execute Thumb code the CPU expects the function address to have the bottom bit set - it was as simple as changing E.nativeCall(0, ... to E.nativeCall(1, ....
I've changed this on the server, and compiled code should work properly!
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.
Wohoo! Fixed it!
Turns out it wasn't anything difficult at all. To execute Thumb code the CPU expects the function address to have the bottom bit set - it was as simple as changing
E.nativeCall(0, ...
toE.nativeCall(1, ...
.I've changed this on the server, and compiled code should work properly!