diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 3724f374..488e0fde 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -136,7 +136,7 @@ env.Append( UPLOADERFLAGS=[ "0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"), - "0x8000", join("$BUILD_DIR", "partitions.bin"), + "0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin"), "0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"), "0x10000" ]