Coder Social home page Coder Social logo

tordnat / microbitv2.2-environment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 384 KB

VSCode environment for debugging software developed for micro:bit v2.2.1 for Embedded Systems Course TTK4235

License: The Unlicense

C 99.24% Assembly 0.63% Makefile 0.09% Shell 0.04%

microbitv2.2-environment's Introduction

microbitv2.2-TTK4235-environment

VSCode environment for debugging software developed for micro:bit v2.2.1 for Embedded Systems Course TTK4235

Requirements

  • Arm GNU Toolchain 12.X.X
  • arm-none-eabi-gdb
  • pyocd
  • openocd

Installation

Since arm has decided not to include arm-none-eabi-gdb in apt package, you have to install Arm GNU Toolchain manually to use arm-none-eabi-gdb. This may also result with some libraries not being linked properly (which is described in common issues below).

Lab PC Installation

wget https://raw.githubusercontent.com/tordnat/microbitv2.2-TTK4235-environment/main/lab_installer.sh && chmod +x lab_installer.sh && sudo ./lab_installer.sh && pip3 install --user testresources==2.0.1 pyocd==0.34.3 

Normal Installation

wget https://raw.githubusercontent.com/tordnat/microbitv2.2-TTK4235-environment/main/installer.sh
chmod +x installer.sh
sudo ./installer.sh

Install Python dependencies

pip3 install --user testresources==2.0.1 pyocd==0.34.3
git clone https://github.com/tordnat/microbitv2.2-TTK4235-environment.git

Common issues

  • Broken libraries

No such file libncursesw.so.5


    ln /usr/lib/x86_64-linux-gnu/libncursesw.so.6 /usr/lib/x86_64-linux-gnu/libncursesw.so.5
  • Pip packages not on PATH

echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.bashrc
  • User doesn't have access to device

See this comment on the arm MBed blogpost for udev rules with pyocd.

Sources

microbitv2.2-environment's People

Contributors

tordnat avatar

Watchers

 avatar

Forkers

hgrayston

microbitv2.2-environment's Issues

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.