CHAPTER
TWELVE
LPC43XX DEBUGGING
Various debugger options for the LPC43xx exist.
12.1 Black Magic Probe
https://github.com/blacksphere/blackmagic
An example of using gdb with the Black Magic Probe:
arm-none-eabi-gdb -n blinky.elf
target extended-remote /dev/ttyACM0
monitor swdp_scan
attach 1
set {int}0x40043100 = 0x10000000
load
cont
It is possible to attach to the M0 instead of the M4 if you use jtag_scan instead of swdp_scan, but the Black Magic
Probe had some bugs when trying to work with the M0 the last time I tried it.
12.2 LPC-Link
(included with LPCXpresso boards)
TitanMKD has had some success. See the tutorial in hackrf/doc/LPCXPresso_Flash_Debug_Tutorial.pdf or .odt (PDF
and OpenOffice document) Doc Link [https://github.com/mossmann/hackrf/tree/master/doc)
12.3 ST-LINK/V2
12.3.1 Hardware Configuration
Start with an STM32F4-Discovery board. Remove the jumpers from CN3. Connect the target’s SWD interface to CN2
“SWD” connector.
37