← index #5913Issue #8382
Related · high · value 1.904
QUERY · ISSUE

ESP32-OTA: Partition.writeblocks with buffer size not multiple of blocksize gives OSError

openby chtinnesopened 2020-04-12updated 2024-01-10
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

openby chrisovergaauwopened 2022-03-04updated 2024-09-08
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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied