ESP_ERROR_CHECK(esp_partition_write(partition,0+(iterator*512),buf,MIN(remaining,512))); vTaskDelay(8);// Note required otherwise esp_partition_write adds whitespace remaining-=received; iterator++; } ESP_LOGI(TAG,"File reception complete"); ...
I am trying to use a small factory partition to write a bin file to the ota0 partition. My goal is to use a small partition to facilitate updates via an SD card to a larger partition that hold the actual app. The issue that I am having is that while esp_partition_write gives my ...
When using esp_partition_write, it simply checks if partition->encrypted is true, and if so encrypts the write using spi_flash_write_encrypted() which is blindly calling spi_flash_write_encrypted() even when esp_flash_encryption_enabled == false...