Giter Club home page Giter Club logo

pico-vscode-dev-environment's Introduction

VS Code Dev Container Environment For Raspberry Pi Pico C/C++

This project provides a ready-to-use portable development environment for Raspberry Pi Pico using C/C++ based on Visual Studio Code Dev Containers.

The 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.

Udev Rules

There 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 file which needs to be placed in etc/udev/rules.d/ and the Picoprobe reconnected. Please note, that these rules were updated for Fedora OS. The original file can be found in here. 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).

Flash Binaries

# build binary manually
make build

# flash binary directly using openocd
make flash

Linting

There is an option to enable C++ code linting functionality using Clang-tidy. Install the linter using the commands below.

apt update && apt install clang-tidy

Picoprobe Wiring

wiring diagram

References

pico-vscode-dev-environment's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.