GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - islandcontroller/armcm-devcontainer: VSCode Devcontainer for ARM Cortex-M development

BranchesTags
Open more actions menu

Latest commit

 

History

53 Commits
53 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cmake-tools-kits.json
cmake-tools-kits.json
 
 
devcontainer.json
devcontainer.json
 
 
dotnet-info.sh
dotnet-info.sh
 
 
gcc-arm-none-eabi.cmake
gcc-arm-none-eabi.cmake
 
 
install-rules
install-rules
 
 
launch.sh
launch.sh
 
 
scr.PNG
scr.PNG
 
 
setup-devcontainer
setup-devcontainer
 
 

Repository files navigation

armcm-devcontainer

License GitHub Docker Hub Docker Image Version (latest semver)

Arm Cortex-M development and debugging environment inside a VSCode devcontainer.

Screenshot

Packages

  • Arm GNU Toolchain Version 15.3rel1
  • SEGGER J-Link Software Version 9.82
  • xPack OpenOCD Version 0.12.0-7
  • CMake Version 4.4.4

System Requirements

  • VSCode Dev Containers extension
  • usbipd-win (Windows and WSL parts installed!)

Usage

  • Include this repo as .devcontainer in the root of your project
  • Connect debug probe
  • Select Dev Containers: Reopen in Container

For CMake projects:

  • Upon prompt, select the Arm GNU Toolchain x.x CMake Kit.
    • The toolchain file is located at /opt/gcc-arm-none-eabi/gcc-arm-none-eabi.cmake.
    • The CMake kit definition for VS Code is located at /opt/devcontainer/cmake-tools-kits.json.
  • Run CMake: Configure
  • Build using CMake: Build [F7]

CMake+IntelliSense Notes

Upon first run, an error message may appear in Line 1, Column 1. Try re-running CMake configuration, or run a build. If the file is a .h header file, it needs to be #include'd into a C module.

UDEV Rules installation

In order to use SEGGER and OpenOCD debug probes within the container, some udev rules need to be installed on the host machine. A setup script has been provided to aid with installation.

  • Run setup-devcontainer inside the container

  • Close the container, and re-open the work directory on your host

  • Run the install-rules script inside .vscode/setup/ on your host machine

    cd .vscode/setup
    sudo ./install-rules
    

Serial Monitor

To access a serial port inside the devcontainer, use the cu command as shown below:

cu -l <serial port device> -s <baudrate>

e.g. "cu -l /dev/ttyACM0 -s 115200".

To close the connection, press RETURN/ESC/Ctrl-C, type "~." (tilde, dot) and wait for 3 seconds.

Additional tooling

Use the setup-devcontainer script to download and install additional tools, such as SEGGER Ozone, SEGGER SystemView and their dependencies:

setup-devcontainer --install-ozone
setup-devcontainer --install-systemview

Launch it from a terminal tab using the ozone or systemview commands.

GUI dependencies for SEGGER J-Flash

Use the following command to install just the GUI dependencies needed for running J-Link/J-Flash tools in graphical mode:

setup-devcontainer --install-gui

Then, you can launch J-Flash using the JFlashExe command.

Licensing

If not stated otherwise, the contents of this project are licensed under The MIT License. The full license text is provided in the LICENSE file.

SPDX-License-Identifier: MIT

About

VSCode Devcontainer for ARM Cortex-M development

hub.docker.com/r/islandc/armcm-devcontainer

Topics

armcmakecortex-mgnu-arm-embedded-toolchainjlinkopenocdvscode-devcontainer

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.