Installing the ARM Toolchain
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
Linking target to BMP (SWD)
Power target separately but connect so they have a common ground connection.
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.
$ 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)
From this point I need to be more familiar with GDB to go any further. With the SWD connection via the BMP it should be possible to upload firmware to the target. This will follow the next stage of getting everything needed to compile a program in place. I have the tools to perform the compilation but need to obtain a few more bits and pieces before I can do so.
Back to Index