From 8e40db577a6da399b953d6b94c54bc16e3c3ccaa Mon Sep 17 00:00:00 2001 From: Marek Matej Date: Tue, 9 May 2023 11:16:24 +0200 Subject: [PATCH] west: esp32: Fix target flashing without the IDF boot Make use of the IDF partition table only if asked to. Signed-off-by: Marek Matej --- scripts/west_commands/runners/esp32.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/west_commands/runners/esp32.py b/scripts/west_commands/runners/esp32.py index f483fbf2954..c80860334f6 100644 --- a/scripts/west_commands/runners/esp32.py +++ b/scripts/west_commands/runners/esp32.py @@ -112,8 +112,9 @@ class Esp32BinaryRunner(ZephyrBinaryRunner): if self.bootloader_bin: cmd_flash.extend([self.boot_address, self.bootloader_bin]) - cmd_flash.extend([self.part_table_address, self.partition_table_bin]) - cmd_flash.extend([self.app_address, self.app_bin]) + if self.partition_table_bin: + cmd_flash.extend([self.part_table_address, self.partition_table_bin]) + cmd_flash.extend([self.app_address, self.app_bin]) else: cmd_flash.extend([self.app_address, self.app_bin])