We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4f417 commit 4f51150Copy full SHA for 4f51150
builder/main.py
@@ -59,7 +59,11 @@ def _get_board_flash_mode(env):
59
60
61
def _get_board_boot_mode(env):
62
- return env.BoardConfig().get("build.boot", "$BOARD_FLASH_MODE")
+ memory_type = env.BoardConfig().get("build.arduino.memory_type", "")
63
+ build_boot = env.BoardConfig().get("build.boot", "$BOARD_FLASH_MODE")
64
+ if ["arduino"] == env.get("PIOFRAMEWORK") and memory_type in ("opi_opi", "opi_qspi"):
65
+ build_boot = "opi"
66
+ return build_boot
67
68
69
def _parse_size(value):
0 commit comments