esp_rom_spiflash_write() function
Write Data to Flash, you should Erase it yourself if need. Please do not call this function in SDK.
Return value
ESP_ROM_SPIFLASH_RESULT_OK : Write OK. ESP_ROM_SPIFLASH_RESULT_ERR : Write error. ESP_ROM_SPIFLASH_RESULT_TIMEOUT : Write timeout.