[riot-notifications] [RIOT-OS/RIOT] Add helper script for Black Magic Probe (#12251)

maz3max notifications at github.com
Mon Sep 16 16:02:19 CEST 2019


This script can detect [Black Magic Probes](https://github.com/blacksphere/blackmagic/wiki) and act as a flashloader (and more).
It is compatible with Linux and macOS.

All important options that can be set via the monitor command are available as arguments.

Makefiles for using `make flash`, `make erase`, `make debug` and `make term` with the script are included.

<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description
Involved parts: build system
Kind of contribution: support for new kind of debug probe
<!--
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
-->


### Testing procedure
add something like this to your boards `Makefile.include` (tested with bluepill-like board):
```
BMP_OPTIONS = --connect-srst
FLASHFILE ?= $(ELFFILE)
include $(RIOTMAKE)/tools/bmp.inc.mk
include $(RIOTMAKE)/tools/bmp-serial.inc.mk
```
and use make flash etc.
<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/12251

-- Commit Summary --

  * Add helper script for Black Magic Probe

-- File Changes --

    A dist/tools/bmp/README.md (131)
    A dist/tools/bmp/bmp.py (222)
    A dist/tools/bmp/requirements.txt (4)
    A makefiles/tools/bmp-serial.inc.mk (2)
    A makefiles/tools/bmp.inc.mk (9)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/12251.patch
https://github.com/RIOT-OS/RIOT/pull/12251.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12251
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190916/e276ced9/attachment-0001.htm>


More information about the notifications mailing list