From 4bf4ade97dd674b1e5725b3203129fe6b04885f8 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Thu, 7 Dec 2023 17:38:38 +0000 Subject: [PATCH] Add RP2040 / picow to platformIO.ini --- platformio.ini | 63 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index eeb7fb3ca..34d998c05 100644 --- a/platformio.ini +++ b/platformio.ini @@ -84,6 +84,21 @@ lib_ignore = WiFiNINA, Adafruit TinyUSB Library platform = atmelsam lib_ldf_mode = deep + +[common:rp2040] +platform = https://github.com/maxgerhardt/platform-raspberrypi.git +; platform_packages = +; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico +; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master +board = rpipicow +framework = arduino +board_build.core = earlephilhower +board_build.filesystem_size = 0.5m +build_flags = -DUSE_TINYUSB +; Once https://github.com/platformio/platformio-core > 6.1.11 these can be removed +lib_ignore = WiFiNINA, Adafruit Zero DMA Library +lib_compat_mode = soft ; can be strict once pio detects SleepyDog on RP2040 + ; ESP32-x Boards ; ; Adafruit ESP32 Feather @@ -223,4 +238,50 @@ extends = common:atsamd board = adafruit_metro_m4_airliftlite build_flags = -DUSE_TINYUSB=1 -DADAFRUIT_METRO_M4_AIRLIFT_LITE -upload_port = /dev/cu.usbmodem1201 \ No newline at end of file +upload_port = /dev/cu.usbmodem1201 + + +[env:raspberypi_picow] +extends = common:rp2040 + +[env:raspberypi_picow_debug] +extends = common:rp2040 +platform = https://github.com/maxgerhardt/platform-raspberrypi.git +; platform_packages = +; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico +; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master +board = rpipicow +build_type = debug +framework = arduino +debug_tool = cmsis-dap +upload_protocol = cmsis-dap +; board can use both Arduino cores -- we select Arduino-Pico here +board_build.core = earlephilhower +board_build.filesystem_size = 0.5m +debug_init_break = tbreak runNetFSM +build_flags = + -DDEBUG + -DWIFICC=CYW43_COUNTRY_UK + -DDEBUG_RP2040_WIRE + -DDEBUG_RP2040_SPI + -DDEBUG_RP2040_CORE + -DDEBUG_RP2040_WIFI + -DNDEBUG + -DLWIP_DEBUG + -DDEBUG_RP2040_PORT=Serial1 + -DDEBUG_RP2040_UART_1 + -DDEBUG_RP2040_UART=1 + -Og + ; Enable debug stack protection + -fstack-protector + ; Enable Exceptions + -DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS + ; Enable RTTI + -DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI + ; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options + ; Adafruit TinyUSB + -DUSE_TINYUSB + ; ; No USB stack + ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB + ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6 + \ No newline at end of file