-
Notifications
You must be signed in to change notification settings - Fork 515
Closed
Description
Hi, thanks for making this really useful core!
I’m trying to get the TinyUSB stack working under PlatformIO, but whenever I add -DUSE_TINYUSB, my Pico no longer blinks or sends any text down Serial, though it still shows up at ttyACM0 and can still be flashed with pio upload. Minimal example below.
platformio.ini
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
build_flags = -DUSE_TINYUSB
; also tried -DCFG_TUSB_CONFIG_FILE=\"tusb_config.h\" with both
; 1. the upstream config linked in the docs https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/08c6ec947ae5671f66b9599214059ec73652ecdb/src/arduino/ports/rp2040/tusb_config_rp2040.h
; 2. the config in this repo https://github.com/earlephilhower/arduino-pico/blob/852219caf583f0d3e5ca7fe2c9c725f0f798019a/include/tusb_config.h
src/main.cc
#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
// also had <FreeRTOS.h> in my actual program
void setup() {
// upload still works for me without this, despite the docs?!
// https://arduino-pico.readthedocs.io/en/latest/usb.html#adafruit-tinyusb-arduino-support
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
Serial.write("asdf ");
Serial.flush();
}
pio pkg list
Resolving pico dependencies...
Platform raspberrypi @ 1.7.0+sha.fec7ed8 (required: git+https://github.com/maxgerhardt/platform-raspberrypi.git)
├── framework-arduino-mbed @ 3.1.1 (required: platformio/framework-arduino-mbed @ ~3.1.1)
├── framework-arduinopico @ 1.20602.0+sha.ec76310 (required: git+https://github.com/earlephilhower/arduino-pico.git#ec7631096b667b8d40663c6da4667e3e0aea5a97)
├── tool-mklittlefs-rp2040-earlephilhower @ 5.100300.220714 (required: earlephilhower/tool-mklittlefs-rp2040-earlephilhower @ ~5.100300.0)
├── tool-openocd-rp2040-earlephilhower @ 5.100300.220714 (required: earlephilhower/tool-openocd-rp2040-earlephilhower @ ~5.100300.0)
├── tool-rp2040tools @ 1.0.2 (required: platformio/tool-rp2040tools @ ~1.0.2)
└── toolchain-rp2040-earlephilhower @ 5.100300.220714 (required: earlephilhower/toolchain-rp2040-earlephilhower @ 5.100300.220714)
I have tried this on two Pico boards, one of which was brand new, and each on both my Linux machine and my partner’s Windows machine. Are you able to reproduce this at all? Thanks for your time.
Metadata
Metadata
Assignees
Labels
No labels