Start repository template with Pi Pico and Pi PicoW SDK
0.0.1
https://raspberrypi.github.io/pico-sdk-doxygen/modules.html
Platform: Ubuntu
Based on: https://github.com/raspberrypi/pico-sdk
- Install
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
. - Repository created and cloned
git clone https://github.com/HouseSimOn/PicoSdkStartTemplate.git
. - Added submodule using
git submodule add https://github.com/raspberrypi/pico-sdk.git Sources/Sdk/pico-sdk
command. - Commit:
git commit -m "Added pico-sdk submodule"
. - Call
git submodule update --init
in the main directory and then go to the pico-sdk and call this command again. - Create settings.json for intellisense work with following content
{ "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools" }
- To CMakeLists.txt add following lines:
pico_enable_stdio_usb(PicoSdkStartTemplate 1) pico_enable_stdio_uart(PicoSdkStartTemplate 0)
- Find connected device:
ls -l /dev/ttyUSB* /dev/ttyACM*
- Start minicom:
sudo minicom -b 115200 -o -D /dev/ttyACM0
- Find Pico device
ls /dev/tty.usb*
- Run
screen
applicationscreen /dev/tty.usbmodem1101 115200
-
Load .uf2 file to Pico board
picotool load -v -x WifiManager.uf2 -f
-
Reboot Pico board
picotool reboot -f