Wizio-pico install - Windows (Anaconda)

Hi. Running Windows 11. I have Anaconda installed. Within Anaconda I created an environment for Platformio:

  1. conda create --name platformio
  2. conda activate platformio
  3. python.exe get-platformio.py
  4. made a directory for a new project
  5. initialised the project pio project init --board pico
  6. pio pkg install -g -p GitHub - Wiz-IO/wizio-pico: Raspberry Pi Pico development platform for PlatformIO
  7. 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

build_flags = -D PICO_USB_DEVICE / PICO_USB_HOST

I have not used platformio before - would you mind telling me how I use the build flags in ‘pio run’?

Thank you :slight_smile:

https://docs.platformio.org/en/latest/projectconf/sections/env/options/build/build_flags.html

Thank you very much!

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

Solved by installing and using VS Code + PlatformIO + WIZIO :slight_smile: