Don't use flash_erase to avoid bus error if binary is stored in flash memory