Skip to content

Commit 03afb41

Browse files
committed
feat: Add multiple build environments and debug configuration
Add staging and dev build environments alongside the existing test environment, and configure debug settings for better development workflow. Changes: - Add monitor_port configuration for consistent serial output - Add debug_tool and debug_extra_cmds for GDB debugging setup - Rename debug environment to staging for clearer distinction - Add dev environment with additional DEBUG_RP2040_PORT flag - Configure combined_debug.gdb script integration - Set remote timeout for more stable debugging sessions This provides separate build configurations for different development phases: test (basic), staging (pre-production), and dev (debug-enabled). Signed-off-by: Goran Mišković <schkovich@users.noreply.github.com>
1 parent 72c95f8 commit 03afb41

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

platformio.ini

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,34 @@ board_build.core = earlephilhower
66
platform_packages =
77
framework-arduinopico@symlink://../arduino-pico
88
upload_protocol = cmsis-dap
9+
monitor_port = /dev/ttyACM1
910
monitor_speed = 115200
1011

1112
[env:test]
13+
build_flags =
14+
-DESPHOSTSPI=SPI
15+
-DLIB_PICO_MULTICORE=1
16+
debug_tool = cmsis-dap
17+
debug_extra_cmds =
18+
set remotetimeout 5
19+
source scripts/combined_debug.gdb
20+
21+
[env:staging]
1222
build_flags =
1323
-DESPHOSTSPI=SPI
1424
-DLIB_PICO_MULTICORE=1
1525

16-
[env:debug]
26+
[env:dev]
1727
build_flags =
1828
-DESPHOSTSPI=SPI
1929
-DLIB_PICO_MULTICORE=1
2030
-DDEBUG_RP2040_PORT=Serial1
2131
-DDEBUG_RP2040_CORE
32+
-DDEBUG_RP2040_WIRE
33+
-Og
34+
-g3
35+
-fno-inline
36+
-fno-omit-frame-pointer
2237
debug_tool = cmsis-dap
2338
debug_extra_cmds =
2439
set remotetimeout 5

0 commit comments

Comments
 (0)