Skip to content

Commit f10f955

Browse files
authored
Merge pull request espressif#130 from brentru/fix-s3-generation
Fix ESP32-S3 UF2 generation
2 parents 0c2b777 + 5783914 commit f10f955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_platform.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ def generate_uf2(example_path):
335335
ColorPrint.print_info("Used uf2 generated by arduino-cli")
336336
return output_file
337337

338-
# Generate using a hex file for all platforms except for ESP32-S2 (exports as .bin files)
339-
if not "esp32s2" in fqbn:
338+
# Generate using a hex file for all platforms except for ESP32-S2, ESP32-S3 (exports as .bin files)
339+
if not "esp32s2" or not "esp32s3" in fqbn:
340340
cli_build_hex_path = "build/*.*." + fqbn.split(':')[2] + "/*.hex"
341341
hex_input_file = glob1(os.path.join(example_path, cli_build_hex_path))
342342
output_file = os.path.splitext(hex_input_file)[0] + ".uf2"

0 commit comments

Comments
 (0)