This is ok for a flash map 4MB:512/512, as if you have a 4MB you can use the 4MB
First run erase_flash to start from a clean base
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 erase_flash
and than try again write_flash
@MaBe started
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.
This is ok for a flash map 4MB:512/512, as if you have a 4MB you can use the 4MB
First run erase_flash to start from a clean base
and than try again write_flash