tcl/board: add pico-debug support
authorPeter Lawrence <majbthrd@gmail.com>
Tue, 2 Mar 2021 21:21:28 +0000 (15:21 -0600)
committerTomas Vanek <vanekt@fbl.cz>
Sun, 2 May 2021 21:40:24 +0000 (22:40 +0100)
commitb60d06ae325c00979e9ff17bb35e868879e6047f
tree9996340823faa2b1443e889eca0bbc95f697b6be
parent64a3e7ba4f47c5340543d9a5cadd41bc45d93c93
tcl/board: add pico-debug support

pico-debug is not a board; it is a virtual CMSIS-DAP adapter that
runs on the same RP2040 also being debugged.  This is possible due
to pico-debug running on the normally-dormant second Cortex-M0+
core (Core1), providing debugging of the first core (Core0).
As such, it could be used on a variety of RP2040-based boards.

Since a flash driver is useful (if not essential), a flash driver
is included.  This driver code originated on RPi's bespoke OpenOCD
fork; lipstick was added to this particular pig to make it more
presentable on OpenOCD proper.

no new Clang analyzer warnings

Change-Id: I31f98b5ea1664f0adfbc184b57efba963acfb958
Signed-off-by: Peter Lawrence <majbthrd@gmail.com>
Reviewed-on: http://openocd.zylin.com/6075
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/openocd.texi
src/flash/nor/Makefile.am
src/flash/nor/drivers.c
src/flash/nor/rp2040.c [new file with mode: 0644]
tcl/board/pico-debug.cfg [new file with mode: 0644]
tcl/target/rp2040-core0.cfg [new file with mode: 0644]