@Sacha - a simpler hack would be to store some information in flash memory. There are a few kb after the bootloader but before Espruino, and those could be used to store information on the expected memory size.
However ideally there would be a run-time check. If I could trap out of range accesses it'd be really easy to run through memory testing it - and if 64kb worked without issue, it'd be used.
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.
@Sacha - a simpler hack would be to store some information in flash memory. There are a few kb after the bootloader but before Espruino, and those could be used to store information on the expected memory size.
However ideally there would be a run-time check. If I could trap out of range accesses it'd be really easy to run through memory testing it - and if 64kb worked without issue, it'd be used.