mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
[rp2040] Use full flash for sketch in testing mode
In testing mode, set filesystem_size to 0m so the full 2MB flash is available for the sketch partition. This prevents linker overflow when CI groups many components into a single build, matching the approach used by ESP8266's testing mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
05d285ba86
commit
ce2e0381c1
@@ -203,7 +203,12 @@ async def to_code(config):
|
||||
cg.add_build_flag(f"-Wl,--wrap={symbol}")
|
||||
|
||||
cg.add_platformio_option("board_build.core", "earlephilhower")
|
||||
cg.add_platformio_option("board_build.filesystem_size", "1m")
|
||||
# In testing mode, use all flash for sketch to allow linking grouped component tests.
|
||||
# Real RP2040 hardware uses 1MB filesystem + 1MB sketch, but CI tests may combine
|
||||
# many components that exceed the 1MB sketch partition.
|
||||
cg.add_platformio_option(
|
||||
"board_build.filesystem_size", "0m" if CORE.testing_mode else "1m"
|
||||
)
|
||||
|
||||
ver: cv.Version = CORE.data[KEY_CORE][KEY_FRAMEWORK_VERSION]
|
||||
cg.add_define(
|
||||
|
||||
Reference in New Issue
Block a user