Skip to content

Commit 981c2f2

Browse files
committed
esp32: fix default address
Signed-off-by: Benny Zlotnik <[email protected]>
1 parent 7873309 commit 981c2f2

File tree

1 file changed

+3
-3
lines changed
  • packages/jumpstarter-driver-esp32/jumpstarter_driver_esp32

1 file changed

+3
-3
lines changed

packages/jumpstarter-driver-esp32/jumpstarter_driver_esp32/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ def erase_flash(self) -> str:
2929
self.logger.info("Erasing flash... this may take a while")
3030
return self.call("erase_flash")
3131

32-
def flash_firmware(self, operator: Operator, path: str, address: int = 0x10000) -> str:
32+
def flash_firmware(self, operator: Operator, path: str, address: int = 0x1000) -> str:
3333
"""Flash firmware to the ESP32
3434
3535
Args:
3636
operator: OpenDAL operator for file access
3737
path: Path to firmware file
38-
address: Flash address (default: 0x10000 for app partition)
38+
address: Flash address
3939
"""
4040
if address < 0:
4141
raise ArgumentError("Flash address must be non-negative")
4242

4343
with OpendalAdapter(client=self, operator=operator, path=path) as handle:
4444
return self.call("flash_firmware", handle, address)
4545

46-
def flash_firmware_file(self, filepath: str, address: int = 0x10000) -> str:
46+
def flash_firmware_file(self, filepath: str, address: int = 0x1000) -> str:
4747
"""Flash a local firmware file to the ESP32"""
4848
absolute = Path(filepath).resolve()
4949
if not absolute.exists():

0 commit comments

Comments
 (0)