@@ -448,6 +448,49 @@ build_flags = -DUSE_TINYUSB -DBUILD_OFFLINE_ONLY
448448; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
449449lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
450450
451+
452+ [env:adafruit_metro_rp2350_debug]
453+ platform = https://github.com/brentru/platform-raspberrypi.git# develop
454+ platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
455+ board = adafruit_metro_rp2350
456+ build_type = debug
457+ framework = arduino
458+ debug_tool = cmsis-dap
459+ upload_protocol = cmsis-dap
460+ ; board can use both Arduino cores -- we select Arduino-Pico here
461+ board_build.core = earlephilhower
462+ board_build.filesystem_size = 0.5m
463+ debug_init_break = tbreak InitBus
464+ build_flags =
465+ -DCORE_DEBUG_LEVEL =5
466+ -DARDUHAL_LOG_LEVEL =5
467+ -DDEBUG
468+ -DWIFICC =CYW43_COUNTRY_UK
469+ -DDEBUG_RP2040_WIRE
470+ -DDEBUG_RP2040_SPI
471+ -DDEBUG_RP2040_CORE
472+ -DDEBUG_RP2040_WIFI
473+ ; -DLWIP_DEBUG
474+ -DDEBUG_RP2040_PORT =Serial1
475+ -DDEBUG_RP2040_UART_1
476+ -DDEBUG_RP2040_UART =1
477+ -Og
478+ ; Enable debug stack protection
479+ -fstack-protector
480+ ; Enable Exceptions
481+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
482+ ; Enable RTTI
483+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
484+ ; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options
485+ ; Adafruit TinyUSB
486+ -DUSE_TINYUSB
487+ ; ; No USB stack
488+ ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
489+ ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
490+ ; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed
491+ lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
492+
493+
451494[env:raspberypi_picow]
452495extends = common:rp2040
453496
@@ -465,7 +508,7 @@ upload_protocol = cmsis-dap
465508; board can use both Arduino cores -- we select Arduino-Pico here
466509board_build.core = earlephilhower
467510board_build.filesystem_size = 0.5m
468- debug_init_break = tbreak runNetFSM
511+ debug_init_break = tbreak ParseFileConfig
469512build_flags =
470513 -DDEBUG
471514 -DWIFICC =CYW43_COUNTRY_UK
0 commit comments