@@ -112,7 +112,7 @@ lib_archive = no ; debug timer issues see https://community.platformio.org/t/cho
112
112
lib_ignore = OneWire
113
113
114
114
[common:rp2040]
115
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
115
+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
116
116
; platform_packages =
117
117
; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
118
118
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -473,7 +473,7 @@ extends = common:rp2040
473
473
474
474
[env:raspberypi_picow_debug]
475
475
extends = common:rp2040
476
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
476
+ ; platform = https://github.com/maxgerhardt/platform-raspberrypi.git
477
477
; platform_packages =
478
478
; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
479
479
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -494,7 +494,7 @@ build_flags =
494
494
-DDEBUG_RP2040_CORE
495
495
-DDEBUG_RP2040_WIFI
496
496
-DNDEBUG
497
- -DLWIP_DEBUG
497
+ -DLWIP_DEBUG =1
498
498
-DDEBUG_RP2040_PORT =Serial1
499
499
-DDEBUG_RP2040_UART_1
500
500
-DDEBUG_RP2040_UART =1
@@ -511,3 +511,63 @@ build_flags =
511
511
; ; No USB stack
512
512
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
513
513
; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
514
+
515
+
516
+ [env:raspberypi_pico2w]
517
+ extends = common:rp2040
518
+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
519
+ platform_packages =
520
+ framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
521
+ board = rpipico2w
522
+ build_flags =
523
+ -DWIFICC =CYW43_COUNTRY_UK
524
+ -DUSE_TINYUSB
525
+ ; -DARDUINO_ARCH_RP2040
526
+ ; -DUSBD_MAX_POWER_MA=250
527
+ ; -DPICO_CYW43_SUPPORTED=1
528
+
529
+ [env:raspberypi_pico2w_debug]
530
+ extends = common:rp2040
531
+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
532
+ platform_packages =
533
+ framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
534
+ ; ; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
535
+ board = rpipico2w
536
+ build_type = debug
537
+ framework = arduino
538
+ debug_tool = cmsis-dap
539
+ upload_protocol = cmsis-dap
540
+ ; board can use both Arduino cores -- we select Arduino-Pico here
541
+ board_build.core = earlephilhower
542
+ board_build.filesystem_size = 0.5m
543
+ debug_init_break = tbreak runNetFSM
544
+ build_flags =
545
+ ; -UARDUINO
546
+ ; -DPICO_BUILD
547
+ -DARDUINO_ARCH_RP2040
548
+ -DUSBD_MAX_POWER_MA =250
549
+ -DPICO_CYW43_SUPPORTED =1
550
+ -DWIFICC =CYW43_COUNTRY_UK
551
+ ; -DDEBUG
552
+ ; -DDEBUG_RP2040_WIRE
553
+ ; -DDEBUG_RP2040_SPI
554
+ ; -DDEBUG_RP2040_CORE
555
+ ; -DDEBUG_RP2040_WIFI
556
+ ; -DNDEBUG
557
+ ; -DLWIP_DEBUG
558
+ ; -DDEBUG_RP2040_PORT=Serial1
559
+ ; -DDEBUG_RP2040_UART_1
560
+ ; -DDEBUG_RP2040_UART=1
561
+ -Og
562
+ ; Enable debug stack protection
563
+ -fstack-protector
564
+ ; Enable Exceptions
565
+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
566
+ ; Enable RTTI
567
+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
568
+ ; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options
569
+ ; Adafruit TinyUSB
570
+ -DUSE_TINYUSB
571
+ ; ; No USB stack
572
+ ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
573
+ ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
0 commit comments