bootloader_flash_write() function
Write data to Flash. Note: In bootloader, when write_encrypted == true, the src buffer is encrypted in place.
Arguments
dest_addr
Destination address to write in Flash.
src
Pointer to the data to write to flash
size
Length of data in bytes.
write_encrypted
If true, data will be written encrypted on flash.
Return value
ESP_OK on success, ESP_ERR_FLASH_OP_FAIL on SPI failure, ESP_ERR_FLASH_OP_TIMEOUT on SPI timeout.
Notes
All of dest_addr, src and size have to be 4-byte aligned. If write_encrypted is set, dest_addr and size must be 32-byte aligned.
bootloader_flash_write() is called by 1 function and calls 2 functions:
![]()
bootloader_flash_write()
bootloader_flash_write():
![]()
bootloader_flash_write()