The Pixl (and pretty much all the nRF52 based Espruino boards afaik) have 40kB of available flash for code. Sadly the rest is taken up with the interpreter and Bluetooth stack.
The issue you're having is that by just sending a big string in one go you've got to have a bunch of available RAM - not just for the string which will come in piecemeal, but for the interpreted version of it as well.
You could try sending code from the right-hand side of the IDE using the 'direct to flash' upload mode - the IDE will automatically split longer text up into smaller chunks in order to be able to use the 40k.
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.
The Pixl (and pretty much all the nRF52 based Espruino boards afaik) have 40kB of available flash for code. Sadly the rest is taken up with the interpreter and Bluetooth stack.
The issue you're having is that by just sending a big string in one go you've got to have a bunch of available RAM - not just for the string which will come in piecemeal, but for the interpreted version of it as well.
You could try sending code from the right-hand side of the IDE using the 'direct to flash' upload mode - the IDE will automatically split longer text up into smaller chunks in order to be able to use the 40k.