Skip to content

Commit d0835e9

Browse files
committed
Take into account board flash mode when converting elf to bin
1 parent ecc617e commit d0835e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def __fetch_fs_size(target, source, env):
261261
action=env.VerboseAction(" ".join([
262262
'"$PYTHONEXE" "$OBJCOPY"',
263263
"--chip", mcu, "elf2image",
264-
"--flash_mode", "$BOARD_FLASH_MODE",
264+
"--flash_mode", "${__get_board_flash_mode(__env__)}",
265265
"--flash_freq", "${__get_board_f_flash(__env__)}",
266266
"--flash_size", board.get("upload.flash_size", "4MB"),
267267
"-o", "$TARGET", "$SOURCES"

0 commit comments

Comments
 (0)