@@ -82,19 +82,22 @@ lib_deps =
8282; Common build environment for ESP32 platform
8383[common:esp32]
8484platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
85- lib_ignore = WiFiNINA
85+ lib_ignore = WiFiNINA, WiFi101
8686monitor_filters = esp32_exception_decoder, time
8787
8888; Common build environment for ESP8266 platform
8989[common:esp8266]
9090platform = espressif8266
91- lib_ignore = WiFiNINA, Adafruit TinyUSB Library
91+ lib_ignore = WiFiNINA, WiFi101, Adafruit TinyUSB Library
9292
9393; Common build environment for Atmel/Microchip SAMDx platform
9494[common:atsamd]
9595platform = atmelsam
96+ platform_packages =
97+ platformio/framework-arduino-samd-adafruit@^1.7.13
98+ platformio/tool-jlink@^1.78811.0
9699lib_ldf_mode = deep
97-
100+ lib_archive = no ; debug timer issues see https://community.platformio.org/t/choose-usb-stack-as-tiny-usb/22451/5
98101
99102[common:rp2040]
100103platform = https://github.com/maxgerhardt/platform-raspberrypi.git
@@ -110,6 +113,9 @@ build_flags = -DUSE_TINYUSB
110113lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library
111114lib_compat_mode = soft ; can be strict once pio detects SleepyDog on RP2040
112115
116+
117+ ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Individual Board Definitions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
118+
113119; ESP32-x Boards ;
114120
115121; Adafruit ESP32 Feather
@@ -292,14 +298,39 @@ build_flags = -DUSE_TINYUSB=1
292298[env:adafruit_pyportal_m4_titano]
293299extends = common:atsamd
294300board = adafruit_pyportal_m4_titano
295- ; build_type = debug
301+ build_type = debug
302+ upload_protocol = sam-ba
296303; upload_protocol = jlink
297- ; debug_tool = jlink
304+ debug_tool = jlink
305+ monitor_port = auto
298306; monitor_port = jlink
299- ; debug_init_break =
307+ ; monitor_port = socket://localhost:19021
308+ ; debug_init_break = tbreak clearConfiguration
300309lib_ignore = USBHost
301- build_flags = -DUSE_TINYUSB =1
302- -DADAFRUIT_PYPORTAL_M4_TITANO
310+ build_flags = -DUSE_TINYUSB
311+ -D__SAMD51J20A__
312+ -DCRYSTALLESS
313+ -DADAFRUIT_PYPORTAL_M4_TITANO
314+ -D__SAMD51__
315+ -D__FPU_PRESENT
316+ -DARM_MATH_CM4
317+ -mfloat-abi =hard
318+ -mfpu =fpv4-sp-d16
319+ -DCORE_DEBUG_LEVEL =5
320+ -DARDUINO_USB_CDC_ON_BOOT =1
321+ -DCFG_TUSB_DEBUG =1
322+ -DDEBUG =1
323+ -DNDEBUG =1
324+ -DUSE_AIRLIFT =1
325+ -g
326+ ; -DUSBCON
327+ ; -UCDC_DISABLED
328+ ; -UPLUGGABLE_USB_DISABLED
329+ ; -DCDC_ENABLED
330+ ; -DPLUGGABLE_USB_ENABLED
331+ ; -DSERIAL_DEBUG=1
332+ ; -DSERIAL_PORT=Serial1
333+ ; -DSERCOM_INSTANCE_SERIAL=1
303334
304335; Adafruit Metro M4 Airlift Lite
305336[env:adafruit_metro_m4_airliftlite]
0 commit comments