diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 6e78fae3..3a525a17 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -120,11 +120,10 @@ env.Append( "-u", "__cxx_fatal_exception" ], - EXTRA_ESPTOOL_UPLOADFLAGS=[ - "0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"), - "0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin"), - "0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"), - "0x10000" + FLASH_EXTRA_IMAGES=[ + ("0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin")), + ("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")), + ("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin")) ] )