Skip to content

iwatake2222/pico-work

Repository files navigation

About

Playground for Raspberry Pi Pico

Build

git clone https://github.com/iwatake2222/pico-work.git
cd pico-work
git submodule update --init
cd pico-sdk && git submodule update --init && cd ..
mkdir build && cd build

# For Windows Visual Studio 2019 (Developer Command Prompt for VS 2019)
# cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DPICO_DEOPTIMIZED_DEBUG=on
cmake .. -G "NMake Makefiles"
nmake

# For Windows MSYS2 (Run the following commands on MSYS2)
# cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -DPICO_DEOPTIMIZED_DEBUG=on
cmake .. -G "MSYS Makefiles" 
make

Note : It's important to clone TinyUSB submodule. Otherwise, you cannot use USB including UART on USB CDC. (Build succeeds even without TinyUSB although you will get warning on cmake TinyUSB submodule has not been initialized; USB support will be unavailable )

Acknowledgements