Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nigh/pico-docker-example
a example of compiling raspberry pi pico with docker.
https://github.com/nigh/pico-docker-example
docker example pico raspberry-pi-pico
Last synced: about 2 months ago
JSON representation
a example of compiling raspberry pi pico with docker.
- Host: GitHub
- URL: https://github.com/nigh/pico-docker-example
- Owner: Nigh
- License: mit
- Created: 2024-08-28T15:51:12.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T16:32:37.000Z (4 months ago)
- Last Synced: 2024-08-28T18:18:26.051Z (4 months ago)
- Topics: docker, example, pico, raspberry-pi-pico
- Language: C
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pico docker example
a example of compiling raspberry pi pico with docker.## Pull the docker
```bash
docker pull xianii/pico-sdk:latest
```
Before you start compiling, you should get your docker image ready.## Compile pico-example
The commands below shows how to compile the `pico-examples` with the docker.
```bash
git clone --depth=1 https://github.com/raspberrypi/pico-examples
cd pico-examples
docker run --rm -v ${PWD}:/pico-src xianii/pico-sdk:latest /bin/bash -c "cd pico-src && cmake . -G Ninja -Bbuild -S. && ninja -C build"
```## Compile this blink example
Run the command below at the same folder with this README.
```bash
docker run --rm -v ${PWD}:/pico-src xianii/pico-sdk:latest /bin/bash -c "cd pico-src && cmake . -G Ninja -Bbuild -S. && ninja -C build"
```The `uf2` firmware will then appear in the path `. /build/blink_simple/blink_simple.uf2`
> [!TIP]
> The `${PWD}` is the absolute path of current path since the docker mount path do not accept relative path.
> If the `${PWD}` do not work at your shell environment, just replace it with the correct absolute path.