HI Antonio,

With reference to your second point,

"[A] single JTAG/SWD TAP based on ARM CoreSight DAP. One of the AP (access 
ports) could be a JTAG-AP where the debug of the RISC-V core gets accessible. 
(today OpenOCD does not support JTAG-AP yet)"

This is an interesting idea, and certainly possible, i.e. attaching a JTAG-AP 
to RISC-V. However, I believe if someone has a hybrid SoC that integrates ARM 
core with RISC-V cores, without explicit permission from ARM, then SWD can only 
access to ARM cores. Of course, the usual "I am not a lawyer" disclaimer 
applies here.

Your hybrid SoC idea led me to think about getting the ARM core as the 
intermediary controller for the RISC-V part,  i.e. SWD->ARM core-> RISC-V core. 
Instinctively I say it is unlikely to be permitted, and  is definitely 
something for the lawyers to sort out.



From: Antonio Borneo <born...@users.sourceforge.net>
Sent: Friday, December 30, 2022 1:20 AM
To: openocd-devel@lists.sourceforge.net
Subject: [openocd:tickets] #378 SWD support for RISCV artchitecture


Agree with Tommy, SWD is ARM proprietary protocol part of ARM CoreSight,
Nevertheless, somewhere or sometimes we could have a SoC that integrates 
together some ARM core with some RISC-V cores. In this hybrid SoC the debug 
port can either be:

  *   a JTAG chain with two TAPs (one for ARM and the other for RISC-V (this is 
supported by current OpenOCD code), or
  *   a single JTAG/SWD TAP based on ARM CoreSight DAP. One of the AP (access 
ports) could be a JTAG-AP where the debug of the RISC-V core gets accessible. 
(today OpenOCD does not support JTAG-AP yet)

So far I have not seen anything like that.

________________________________

[tickets:#378]<https://sourceforge.net/p/openocd/tickets/378/> SWD support for 
RISCV artchitecture

Status: new
Milestone: 0.10.0
Labels: openocd
Created: Wed Dec 28, 2022 07:00 AM UTC by Ashi Gupta
Last Updated: Thu Dec 29, 2022 01:24 PM UTC
Owner: nobody

Hi,

I want to know if SWD debug support has been added for RISCV architecture in 
openocd ? So far i know that JTAG support is only available. If not any plans 
in doing so ?

________________________________

Sent from sourceforge.net because 
openocd-devel@lists.sourceforge.net<mailto:openocd-devel@lists.sourceforge.net> 
is subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to