From 56e2b23a5d3dbdb3bb993645605527d1e5fda4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Prokopi=C4=8D?= Date: Tue, 3 Dec 2024 22:28:08 +0100 Subject: [PATCH] [realtek-ambz2] Fix partition table & bootloader flashing via UART --- builder/family/realtek-ambz2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/family/realtek-ambz2.py b/builder/family/realtek-ambz2.py index 98c5c908b..95c60d06c 100644 --- a/builder/family/realtek-ambz2.py +++ b/builder/family/realtek-ambz2.py @@ -448,8 +448,8 @@ def encode_for_define(data: bytes) -> str: # use patched OTA image for device f"{image_firmware_is_ota},{image_firmware_is_ota}=device:ota1,ota2", # having flashed an application image, update the bootloader and partition table (incl. keys) - f"{image_bootloader}=flasher:boot", - f"{image_part_table}=flasher:part_table", + f"{image_bootloader},{image_bootloader}=flasher:boot,boot", + f"{image_part_table},{image_part_table}=flasher:part_table,part_table", # clearing headers of the "other" OTA image (hence the indexes are swapped) f"{image_ota_clear},{image_ota_clear}=flasher:ota2,ota1", ],