Skip to content

Commit

Permalink
new partition map
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Apr 1, 2021
1 parent 34ea33d commit faedf07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion alles-flasher/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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))
Expand Down
Binary file modified alles-flasher/bootloader.bin
Binary file not shown.
Binary file modified alles-flasher/partition-table.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion alles_partitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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,

0 comments on commit faedf07

Please sign in to comment.