C/C++ build helper system for Raspberry Pi Pico
10K+
Now, the Raspberry Pi Pico is available :exclamation: :exclamation:
I'm sure you've already bought it, and you're probably blinking your LEDs :smile:
But... We don't really understand cmake or make, right?
(I'm a beginner, so I don't understand it at all :sob:)
So, let's use this picoco tool to develop Raspberry Pi Pico more easily :exclamation: :exclamation:
If you can use the docker command, you can quickly set up a development environment :+1:
(See: Develop with Docker)
At a minimum, followings are required:
TODO: make installation script
$ sudo apt update
$ sudo apt install -y python3 cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
$ INSTALL_DIR=$HOME/.pico # e.g. "$HOME/.pico", "/opt/pico", etc.
$ mkdir -p $(INSTALL_DIR)
$ git -C $INSTALL_DIR clone https://github.com/takumi4424/picoco.git
$ git -C $INSTALL_DIR clone https://github.com/raspberrypi/pico-sdk.git
$ echo "export PICOCO_PATH=$INSTALL_DIR/picoco" >> $HOME/.bashrc
$ echo "export PICO_SDK_PATH=$INSTALL_DIR/pico-sdk" >> $HOME/.bashrc
$ echo "export PATH=\$PATH:$PICOCO_PATH/bin" >> $HOME/.bashrc
TODO
TODO
Examples in this section will do the followings:
test_pico
test_pico/src/test_pico_main.c)CMakeLists.txttest_pico package
test_pico/build/test_pico.uf2Copy the product test_pico/build/test_pico.uf2 to your Raspberry Pi Pico and the LED will blink :examination: :examination:
You can use picoco image to quickly launch the development environment :+1:
H$ docker run -it takumi4424/picoco:latest
C$ picoco create_pkg /root/test_pico
C$ cd /root/test_pico
C$ picoco build
C$ ls build/*.uf2
H$: Host, C$: Container
$ picoco create_pkg test_pico
$ cd test_pico
$ picoco build
Content type
Image
Digest
Size
678.6 MB
Last updated
over 5 years ago
docker pull takumi4424/picoco