• Well, if you are building espruino from github source then it should simply work with any 52832 board file as is. Or look at MICROBIT2 board file, that one is 52833 (like 52840 but only half of features, 128KB RAM,512KB of flash) you could put LD_SRAM_SIZE=0x40000 for 52840 there to use whole RAM if you also increase variables accordingly.

    For larger flash - if you build without bootloader you can increase this https://github.com/espruino/Espruino/blo­b/master/targetlibs/nrf5x_12/nrf5x_linke­rs/linker_nrf52_ble_espruino.ld#L12 by 0x80000 (just adding + 0x80000 should work)
    with bootloader it is a bit more complex.

About

Avatar for fanoush @fanoush started