Skip to content

attdona/riot-code

Repository files navigation

A simple vscode extension for RIOT

A Multi Platform plugin for RIOT-OS based projects.

demo

Prerequisite

Just be sure RIOT build successfully:

riot.build_dir> make BOARD=your-board # for example riot.build_dir = ~RIOT/example/hello-world

C/C++ for Visual Studio Code is a required extension.

Getting started

native is the default board and examples/hello-world is the default build directory.

To change these properties:

  • open Settings (keyboard Ctrl+, or menu File->Preferences->Settings) and search RIOT-OS section
  • modify riot.board and riot.build_dir with your values.
  • set compiler value. The currently tested cross compilers are:
    • arm-none-eabi-gcc
    • msp430-gcc

Press F1 or Ctrl+Shift+P and run the command RIOT init to create both the project configuration and the three tasks:

  • build: app_name
  • clean: app_name
  • flash: app_name

where app_name is the directory basename of riot.build_dir.

Select Tasks->Run Tasks to run the tasks.

NOTE: Starting with version 1.0.0 c_cpp_properties.json is NOT MORE automatically adjusted if you change riot.board or/and riot.build_dir: You need to run RIOT init command.

About

RIOT integrated development for Visual Studio Code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published