← index #8382Issue #8380
Related · high · value 4.070
QUERY · 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.

CANDIDATE · ISSUE

ESP32 esp32.Partition does not accept keywords

closedby chrisovergaauwopened 2022-03-03updated 2022-03-07
port-esp32

Hi,

it is documented that the ESP32 takes a keyword argument block_size: here

In practice I get:

MicroPython v1.18-82-g20df071e3-dirty on 2022-03-03; CUSTOM with ESP32
import esp32
esp32.Partition(esp32.Partition.RUNNING, block_size=512)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function doesn't take keyword arguments

I need this functionality because the default 4096 is way too big for our application. Is there anything I can do to get this to work?

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