diff options
author | Manuel Wick <manuel@matronix.de> | 2021-01-30 22:46:50 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2023-12-03 06:22:54 +0000 |
commit | 0f70c6c325785517f35bbbb9316801bef7a79d8b (patch) | |
tree | 213f524638bd03f22af29106caed9b5684fbad1a /HACKING | |
parent | 119a5338623d77bbdbc37b6ecb5e93df3368af30 (diff) | |
download | riscv-openocd-0f70c6c325785517f35bbbb9316801bef7a79d8b.zip riscv-openocd-0f70c6c325785517f35bbbb9316801bef7a79d8b.tar.gz riscv-openocd-0f70c6c325785517f35bbbb9316801bef7a79d8b.tar.bz2 |
remote_bitbang: Add SWD support
This adds new command characters to make SWD work with the new split
jtag and swd operations of bitbang.
The command characters are as follows:
O - SWDIO drive 1
o - SWDIO drive 0
c - SWDIO read request
d - SWD write 0 0
e - SWD write 0 1
f - SWD write 1 0
g - SWD write 1 1
Documentation has been updated accordingly. The new commands will be
used by an adapted version of the jtag-openocd applet of the "Glasgow
Debug Tool" (https://github.com/glasgowEmbedded/Glasgow). It has been
tested against an stm32f103 and an at91samd21 target.
contrib/remote/bitbang/remote_bitbang_sysfsgpio.c has also been adapted
to support SWD via the new command set. Some limited testing has been
done using a Raspberry Pi 2 with an stm32f103 and an at91samd21 target
attached.
Change-Id: I8e998a2cb36905142cb16e534483094cd99e8fa7
Signed-off-by: Manuel Wick <manuel@matronix.de>
Signed-off-by: David Ryskalczyk <david.rysk@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6044
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions