On Mon, Oct 22, 2012 at 12:02 AM, Evan Hunter <ehun...@broadcom.com> wrote:
> Hi all,
> I would like to suggest that some parts of OpenOCD be re-organised to better
> accommodate transports other than JTAG (e.g. SWD):
> I think the jtag directory could be pushed down a directory level so that we
> have something like:
> Openocd/src/adapters/jtag
> Openocd/src/adapters/swd
> Openocd/src/adapters/avr_isp
> Openocd/src/adapters/drivers

Hello Evan :-) I have abit different idea which is better described at
stm32primer2swd.sf.net it includes the idea of Transport proposed by
David Brownell back in 2010 which I really like and adapted in LibSWD
integration, this also proposes some reorganization of OpenOCD into
logical layers and I will take into this after SWD is operational and
included :-)

In short words directory structure should represent logical
sandwich-like organization of OpenOCD and its functional
blocks/modules:
*interface: dongle drivers - this will allow to flush the queue and in
general transfer bits over the wire.
*transport: jtag, swd, spi, ... - this will convert commands into
bitstream and bistream into results.
*Access Port or Board: TAP (JTAG), DAP (SWD), ... - this will allow
some basic operations on target such as detect, reset and others that
does not fir neirther into transport nor target.
*target: arm*, cortex, mips, ... - this will allow to access target
registers and memory and create bridge between higher layers (flash,
rtos, ...) and the physical target.
*flash - this will allow to access flash memory of the target device.
*rtos - this will allow to access various operating system internals
such as process list, kernel modules and internals, programs
execution, etc.
*smp - this will allow to control multiple processors on the multicore devices.
*...

It is really important to set functional blocks and its API so we know
what is the information flow, where, when and why, I think this would
greatly increase extendability of the project :-)

Best regards :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to