Giter VIP home page Giter VIP logo

mcu_debug's Introduction

mcu_debug

Tools for debugging & flashing firmware

This is a collection of scripts and config files to flash & debug microcontrollers.

Supported platforms:

lpc43xx_m0 lpc43xx_m4 lpc11uxx

Supported debuggers:

It is intended to be used as a dependency for a firmware CPM package. See the example_blinky_m4 repository for a simple example project that uses this package for flashing its firmware.

requirements

  • gdb
  • OpenOCD (optional)
  • Python >= 3.5 (lower versions probably work fine as well)

how to use

Assuming a linux/unix os with udev, copy the the .rules file(s) from the install folder into /etc/udev/rules.d/ to make sure access to the JTAG programmer is allowed as non-root. Depending on the os / linux distro you may need to be member of the 'dialout' group for the Black Magic Probe to work.

flashing a firmware CPM package

Checkout a firmware package, for example example_blinky_m4. Create a build dir: mkdir build && cd build.

  • execute make flash to flash the firmware

OpenOCD

Debugging

For debugging via OpenOCD, you need to start the openocd server manually. For example, to debug lpc4337 M0 core, use "openocd -f lpc4337_m0.cfg"

Flashing firmware

Simply execute "make flash". If you have an existing openocd server running, it will be re-used, otherwise it will auto-start in the background. If flashing fails, make sure to close existing debug sessions.

Misc

For a jtag scan, execute "openocd -f jtag-scan.cfg"

Black Magic Probe

Debugging

Simply execute "make debug"

Flashing firmware

Simply execute "make flash"

mcu_debug's People

Contributors

sjorsdewit avatar ijager avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

kevinmiles

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.