Installing the ARM Toolchain¶
Installation¶
I am using Linux (Fedora 23 – February 2016). I need to install the following packages using dnf.
Once installed there is a Getting Started guide to using the BMP on GitHub https://github.com/blacksphere/blackmagic/wiki/Getting-Started
Linking target to BMP (SWD)¶
BMP |
TARGET |
|
---|---|---|
VCC1 |
VCC2 |
|
A5 |
<-> |
SWDCLK |
A4 |
<-> |
SWDIO |
GND |
<-> |
GND |
ToDo
Look into connections for SWO (serial wire output) to allow for SWV (serial wire viewer) functionality. SWV provides realtime trace information. After connecting up the BMP & target, ensure the BMP is connected via USB to the PC. Open a terminal and type in the highlighted commands to connect to target.
Connect BMP to Target
$ arm-none-eabi-gdb GNU gdb (GDB) 7.6.2 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http: //gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB was configured as “–host=x86_64-unknown-linux-gnu –target=arm-none-eabi”. For bug reporting instructions, please see: </http:><http: //www.gnu.org/software/gdb/bugs></http:>. (gdb) target extended-remote /dev/ttyACM0 Remote debugging using /dev/ttyACM0 (gdb) monitor swdp_scan Target voltage: Not Implemented! Available Targets: No. Att Driver
1 STM32F1 medium density
(gdb) attach 1 Attaching to Remote target 0x08000174 in ?? () (gdb)