andyp
#1
Hi. Running Windows 11. I have Anaconda installed. Within Anaconda I created an environment for Platformio:
- conda create --name platformio
- conda activate platformio
- python.exe get-platformio.py
- made a directory for a new project
- initialised the project pio project init --board pico
- pio pkg install -g -p GitHub - Wiz-IO/wizio-pico: Raspberry Pi Pico development platform for PlatformIO
- I then changed the board to raspberry-pi-pico: pio boards WizIO-PICO
When I pio run I get:
src\main.cpp:11:10: fatal error: tusb.h: No such file or directory
- Looking for tusb.h dependency? Check our library registry!
- CLI > platformio lib search “header:tusb.h”
- Web > PlatformIO Registry
I have searched but cant find a solution - any thoughts?
Thank you
Andrew
WizIO
#2
build_flags = -D PICO_USB_DEVICE / PICO_USB_HOST
andyp
#3
I have not used platformio before - would you mind telling me how I use the build flags in ‘pio run’?
Thank you 
WizIO
#4
andyp
#6
Sorry… One remaining error…
(platformio) PS C:\Users\Andrew\arp_osx> pio run
Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: baremetal)
------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
<<<<<<<<<<<< WIZIO - RASPBERRY PI PICO ( PICOPROBE ) 2021 Georgi Angelov >>>>>>>>>>>>
CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/raspberry-pi-pico.html
PLATFORM: WizIO - Raspberry Pi Pico (1.1.1+sha.35ad0e1) > WizIO - Raspberry Pi Pico ( PICOPROBE )
HARDWARE: RP2040 125MHz, 256KB RAM, 2MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, picoprobe)
PACKAGES:
- framework-wizio-pico @ 1.1.1+sha.60881de
- tool-wizio-pico @ 1.0.0+sha.3a504e1
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
SDK RASPBERRYPI PI PICO RP2040 ( PICO - SDK )
* OPTIMIZATION : -Os
* STACK : 2048
* HEAP : 2048
* SPECS : nano.specs
* WIFI : NO
* BINARY TYPE : default ['w25q080', 'memmap_default.ld', '0x10000000']
* TINYUSB : HOST
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 8 compatible libraries
Scanning dependencies...
Dependency Graph
|-- wiring
Building in release mode
Linking .pio\build\raspberry-pi-pico\APPLICATION.elf
.pio\build\raspberry-pi-pico\src\main.o: In function `loop':
main.cpp:(.text.loop+0x3a): undefined reference to `tud_task'
.pio\build\raspberry-pi-pico\src\param.o: In function `handleUSBCmd()':
param.cpp:(.text._Z12handleUSBCmdv+0x4): undefined reference to `getchar_timeout_us'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\raspberry-pi-pico\APPLICATION.elf] Error 1
andyp
#7
Solved by installing and using VS Code + PlatformIO + WIZIO 