Hi Andrey, that all looks fine. Maybe add 'global erase' and 'verify' just to make sure.
Does your chip have an 8Mhz external oscillator? that would probably help.
You'll also need BOOT0 and BOOT1 to be set correctly at boot.
@Gordon 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.
Hi Andrey, that all looks fine. Maybe add 'global erase' and 'verify' just to make sure.
Does your chip have an 8Mhz external oscillator? that would probably help.
You'll also need BOOT0 and BOOT1 to be set correctly at boot.