QUERY · ISSUE
ESP32-OTA: Partition.writeblocks with buffer size not multiple of blocksize gives OSError
port-esp32
Hey,
Just realized, that writing data into partition with a data buffer with size != 0 mod BLOCK_SIZE leads to an OSError: -260.
It is due to the erase call esp_partition_erase_range(self->part, offset, bufinfo.len) in
esp32_partition_writeblocks.
I am not sure if this is intended behavior. If not, I would recommend either to return a proper error message or to erase ceil(buffer_size/BLOCK_SIZE) blocks.
CANDIDATE · ISSUE
ESP32: feature request Partition
enhancementport-esp32
related to: #8380
it would be nice if Partition.get_next_update() would also accept the block_size argument.
This way you won't be locked in to a certain block_size after initial deployment when doing OTA updates.