{"id":18708599,"url":"https://github.com/va1da5/pico-vscode-dev-environment","last_synced_at":"2025-10-24T09:56:25.439Z","repository":{"id":106645770,"uuid":"586295225","full_name":"va1da5/pico-vscode-dev-environment","owner":"va1da5","description":"Visual Studio Code Dev Container based C/C++ development environment for Raspberry Pi Pico","archived":false,"fork":false,"pushed_at":"2023-01-21T17:31:26.000Z","size":679,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T04:25:12.118Z","etag":null,"topics":["arm","containers","cpp","development","openocd","pico","picoprobe","rp2040"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/va1da5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-07T16:24:50.000Z","updated_at":"2024-02-08T11:54:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"296f81d1-88ea-40f2-92bd-91c828ba7d52","html_url":"https://github.com/va1da5/pico-vscode-dev-environment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/va1da5/pico-vscode-dev-environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fpico-vscode-dev-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fpico-vscode-dev-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fpico-vscode-dev-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fpico-vscode-dev-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/va1da5","download_url":"https://codeload.github.com/va1da5/pico-vscode-dev-environment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fpico-vscode-dev-environment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280776482,"owners_count":26388950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arm","containers","cpp","development","openocd","pico","picoprobe","rp2040"],"created_at":"2024-11-07T12:24:08.077Z","updated_at":"2025-10-24T09:56:25.434Z","avatar_url":"https://github.com/va1da5.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Dev Container Environment For Raspberry Pi Pico C/C++\n\nThis project provides a ready-to-use portable development environment for Raspberry Pi Pico using C/C++ based on [Visual Studio Code Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers).\n\nThe environment is based on containers (_Podman to be specific_) which provides a easy to start way to run the development tools and libraries required for C/C++ development. The containers will be configured with all necessary dependencies and tools, such as a C/C++ compiler and debugger. The editor comes configured with extensions for C/C++ development, such as language support and debugging tools.\n\n## Udev Rules\n\nThere might be some issues when mounting devices using root-less containers, such as when using Podman. Because of that there is a requirement to pre-configure UDEV rules for `openocd`. The repository includes [60-openocd.rules](./60-openocd.rules) file which needs to be placed in `etc/udev/rules.d/` and the [Picoprobe](https://github.com/raspberrypi/picoprobe) reconnected. Please note, that these rules were updated for Fedora OS. The original file can be found in [here](https://raw.githubusercontent.com/raspberrypi/openocd/rp2040/contrib/60-openocd.rules). [devcontainer.json](./devcontainer.json) contains custom run arguments with annotations for container runtime, like `run.oci.keep_original_groups=1`. It is meant to fix group membership issues and prevent missing permission errors when trying to access devices from container. Correct annotation needs to be used according to the container runtime (oci, crun).\n\n## Flash Binaries\n\n```bash\n# build binary manually\nmake build\n\n# flash binary directly using openocd\nmake flash\n```\n\n## Serial Connection\n```bash\n# the device could be different on your system\nminicom -b 115200 -o -D /dev/ttyUSB0\nminicom -b 115200 -o -D /dev/ttyACM0\n\nscreen /dev/ttyUSB0 115200\n```\n\n## Linting\n\nThere is an option to enable C++ code linting functionality using [Clang-tidy](https://clang.llvm.org/extra/clang-tidy/). Install the linter using the commands below.\n\n```bash\napt update \u0026\u0026 apt install clang-tidy\n\n```\n\n## Picoprobe Wiring\n\n![wiring diagram](./picoprobe-conncetion.png)\n\n## References\n\n- [Raspberry Pi Pico SDK](https://github.com/raspberrypi/pico-sdk)\n- [Getting started with Raspberry Pi Pico-series](https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf)\n- [Pico Debugprobe releases](https://github.com/raspberrypi/debugprobe/releases)\n- [Raspberry Pi Pico and RP2040 - C/C++ Part 1: Blink and VS Code](https://www.digikey.lt/en/maker/projects/raspberry-pi-pico-and-rp2040-cc-part-1-blink-and-vs-code/7102fb8bca95452e9df6150f39ae8422)\n- [Raspberry Pi Pico and RP2040 - C/C++ Part 2: Debugging with VS Code](https://www.digikey.be/en/maker/projects/raspberry-pi-pico-and-rp2040-cc-part-2-debugging-with-vs-code/470abc7efb07432b82c95f6f67f184c0)\n- [Raspberry Pi Pico and Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html)\n- [RP2040 Datasheet](https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf)\n- [Raspberry Pi Pico SDK](https://github.com/raspberrypi/pico-sdk)\n- [Picoprobe](https://github.com/raspberrypi/picoprobe)\n- [Getting started with Raspberry Pi Pico](https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf)\n- [Picoprobe: Using the Raspberry Pi Pico as Debug Probe](https://mcuoneclipse.com/2022/09/17/picoprobe-using-the-raspberry-pi-pico-as-debug-probe/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fpico-vscode-dev-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fva1da5%2Fpico-vscode-dev-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fpico-vscode-dev-environment/lists"}