diff --git a/alles-flasher/Main.py b/alles-flasher/Main.py index 13d6055..0917709 100644 --- a/alles-flasher/Main.py +++ b/alles-flasher/Main.py @@ -64,6 +64,7 @@ def __init__(self, parent, config): self.idf_version = None def parse_app_desc(self, filename): + # https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/app_image_format.html#_CPPv414esp_app_desc_t bits = open(filename, "r").read() self.version = bits[0:32].rstrip('\0') self.project_name = bits[32:64].rstrip('\0') @@ -75,12 +76,13 @@ def parse_app_desc(self, filename): def run(self): try: command = [] - if not self._config.port.startswith(__auto_select__): command.append("--port") command.append(self._config.port) # Read APP_DESC from flash + # APP_DESC starts at 0x20 from the app image offset (0x10000) but we skip the first 16 bytes as we don't need them + # We read 128 bytes of APP_DESC and parse it above command.extend(["read_flash", "0x10030", "0x80", "app_desc.bin"]) print("Command: esptool.py %s\n" % " ".join(command)) diff --git a/alles-flasher/bootloader.bin b/alles-flasher/bootloader.bin index 3cec3ca..f95e37e 100644 Binary files a/alles-flasher/bootloader.bin and b/alles-flasher/bootloader.bin differ diff --git a/alles-flasher/partition-table.bin b/alles-flasher/partition-table.bin index 0a1c66d..c025945 100644 Binary files a/alles-flasher/partition-table.bin and b/alles-flasher/partition-table.bin differ diff --git a/alles_partitions.csv b/alles_partitions.csv index 589e791..29888fe 100644 --- a/alles_partitions.csv +++ b/alles_partitions.csv @@ -2,4 +2,4 @@ # Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap nvs, data, nvs, , 0x6000, phy_init, data, phy, , 0x1000, -factory, app, factory, , 0x1fc800, +factory, app, factory, , 0x2fc800,