Take into account board flash mode when converting elf to bin

This commit is contained in:
Valerii Koval
2023-01-04 20:06:01 +02:00
parent ecc617e341
commit d0835e994c
+1 -1
View File
@@ -261,7 +261,7 @@ env.Append(
action=env.VerboseAction(" ".join([
'"$PYTHONEXE" "$OBJCOPY"',
"--chip", mcu, "elf2image",
"--flash_mode", "$BOARD_FLASH_MODE",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_f_flash(__env__)}",
"--flash_size", board.get("upload.flash_size", "4MB"),
"-o", "$TARGET", "$SOURCES"