CMakeLists.txt
sample has been provided in this repository.
To build a cmake just do the following:
- Remove
build
folder - Create
build
folder cd build
cmake ..
make
cd build
dmesg | tail
to figure out where the pico USB Mass Storage device sits atmkdir /mnt/pico/
( Ignore if already dir already exists)mount /dev/sdX1 /mnt/pico/
to mount to/mnt/pico/
cp blink.uf2 /mnt/pico
to copy the uf2 file into the Pico. Pico should automatically start the work.umount /mnt/pico/
to safely unmount it.
- In CMakeLists.txt, add the following: (Enable only 1 at a time. (Only one of [usb, uart] can be
1
at a time)). UART is basically just usingtx rx
:
pico_enable_stdio_usb(${PROJECT_NAME} 1)
pico_enable_stdio_uart(${PROJECT_NAME} 0)
- cmake and make again after clearing build folder ( Need to automate this)
- Use putty or minicom to communicate with the pico serially. Note: buadrate is 115200 and usually the Serial Device sits at /dev/ttyACM0
Figure out how to build for debug from terminal.
- Good Setup guide if you are to use C/C++ Youtube(Digi-Key)
- Setup guid in PDF Getting-Started
- Pinout diagram diagram
- Documentation of
pico-sdk
pico-sdk/doxygen - PuTTY setup instr