Just to let you know that there is issue with native/InlineC code related to this. This was perhaps not found on ESP port as the native code feature is not there. Created issue https://github.com/espruino/Espruino/issues/2040
Basically the 16 or 12 byte size variables had nice feature that they are long word aligned in memory so native code flat string produced by atob was always aligned. Now when it does not begin on 4 byte boundary it crashes/reboots when native code is run. Not sure there is easy/nice solution.
In fact I now wonder how it works with Uint16 or Uint32 arrays, maybe they are not aligned too? That would be a bit unfortunate as well, will try.
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.
Just to let you know that there is issue with native/InlineC code related to this. This was perhaps not found on ESP port as the native code feature is not there. Created issue https://github.com/espruino/Espruino/issues/2040
Basically the 16 or 12 byte size variables had nice feature that they are long word aligned in memory so native code flat string produced by atob was always aligned. Now when it does not begin on 4 byte boundary it crashes/reboots when native code is run. Not sure there is easy/nice solution.
In fact I now wonder how it works with Uint16 or Uint32 arrays, maybe they are not aligned too? That would be a bit unfortunate as well, will try.