Marek Vasut
ffe969898f
Add Tincantools Flyswatter2 support
...
This is a successor to the Flyswatter cable and is very close to the original.
The new revision is based on FT2232H.
Change-Id: Icc6efcf0e4f9d8a10b65df8679b4973f6b375a9f
Signed-off-by: Marek Vasut <marek.vasut@gmail.com >
Cc: David Anders <danders@tincantools.com >
Reviewed-on: http://openocd.zylin.com/193
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-11-15 20:55:11 +00:00
Øyvind Harboe
eac1bc55d2
ft2232: fix warning about assignment to local variable
...
variable is not read afterwards.
Change-Id: I905bbb10c596190f75494e6c6ad400a3e51843f6
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/192
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-11-10 21:29:39 +00:00
Kyle Manna
87552bc1d3
ft2232: Set PWR_RST and LOOPBACK for xds100v2
...
The CPLD on the xds100v2 expects to see a rising edge on PWR_RST to
enable the outputs. This patch creates that transition correctly by
fixing the direction register for PWR_RST.
THe CPLD will also loop back the data if the LOOPBACK signal is
asserted. Set this signal to an output and keep it clear.
This was tested with a TI DM3730 Beagleboard xM.
Change-Id: I4ea216bef6ae5c40e935741af5c69dc844d5d494
Signed-off-by: Kyle Manna <kyle.manna@fuel7.com >
Reviewed-on: http://openocd.zylin.com/189
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-11-10 15:42:53 +00:00
Øyvind Harboe
7d9d056eae
buspirate: add missing error propagation
...
found by clang.
Change-Id: I80ea8e6afc8dcc1aa7edb6f63af0d94f6781b81c
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/182
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-11-09 16:30:24 +00:00
Øyvind Harboe
74558296d1
usbprog: fix unecessary and confusing assignment
...
clang found silly code that was trivially fixed.
Change-Id: Ied6c1b254c1823cd111140cbe0c8a03d2ede65fb
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/186
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se >
2011-11-09 01:58:57 +00:00
Øyvind Harboe
5f00c007cb
usbtoxxx: remove warning by reducing scope of variable
...
Change-Id: Icc3cfe601082cd83ad1c8818c1e21e7ada014150
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/154
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-11-02 09:42:34 +00:00
Øyvind Harboe
8d5e34635c
buspirate: ignore return value and fix warning
...
Perhaps we could do one better and propagate the error?
Change-Id: Idc45f516c26f09de4ee01fe05e8d3475f4b80db3
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/43
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
2011-10-22 09:01:00 +00:00
Spencer Oliver
3828b5827d
arm-jtag-ew: whitespace cleanup
...
Change-Id: I8861e825f9c84525e0c09c3adaa3fe300640770d
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
Reviewed-on: http://openocd.zylin.com/21
Tested-by: Spencer Oliver <spen@spen-soft.co.uk >
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-10-14 13:01:52 +00:00
Simon Barner
e56e5a3929
arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication
...
- Ticket: #35
2011-10-08 23:10:20 +02:00
Simon Barner
830e76fecd
arm-jtag-ew: Formatting
2011-10-08 23:10:11 +02:00
Simon Barner
028d9aa9ed
arm-jtag-ew: In armjtagew_init(), set initial JTAG speed to 32 kHz (before TAP initialization).
...
This prevents rare communication errors during startup.
2011-10-08 23:09:42 +02:00
Simon Barner
b1c74747b6
arm-jtag-ew: Emit a warning if interface firmware version != 1.6
2011-10-08 23:09:30 +02:00
Simon Barner
e4590dad08
arm-jtag-ew: Declare interface as `jtag_only'
2011-10-08 23:09:21 +02:00
Simon Barner
07bf5f443a
arm-jtag-ew: Provide armjtagew_speed_div() in order to fix interactive use of `adapter_khz'
2011-10-08 23:09:05 +02:00
Simon Barner
8b61ed2e95
arm-jtag-ew: Fix setting interface speed (2/2)
...
Interface expects speed in Hz, not kHz
- Ticket #34
2011-10-08 23:08:46 +02:00
Simon Barner
3977c5169b
arm-jtag-ew: Fix setting interface speed (1/2)
...
CMD_SET_TCK_FREQUENCY message length is 5, not 4
- Ticket: #34
2011-10-08 23:08:15 +02:00
Luca Bruno
4017af8492
Fixes and spellchecks for various Buspirate output messages
...
Signed-off-by: Luca Bruno <lucab@debian.org >
2011-09-11 00:07:54 +02:00
Richard Uhler
1411ad11c1
Implementation of a new jtag remote_bitbang driver.
...
The driver sends ascii encoded bitbang commands over unix sockets or TCP to
another process. This driver is useful for debugging software running on
processors which are being simulated.
2011-09-02 16:50:01 +02:00
Martin Schmölzer
48e8d2d21c
ULINK driver: Remove typedefs in ulink.c
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-09-01 07:02:38 +02:00
Martin Schmölzer
70d9d808e5
ULINK driver: Remove typedefs in OpenULINK firmware: Use typedefs from stdint.h (uint8_t, uint16_t) instead of custom typedefs in shorttypes.h (u8, u16, ...)
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-09-01 07:02:38 +02:00
Martin Schmölzer
ea7c87e5e7
ULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structures
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-09-01 07:02:38 +02:00
Martin Schmoelzer
353362651f
ULINK driver: Update firmware image to reflect the latest changes in source code.
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:42 +02:00
Martin Schmoelzer
c331c9382f
ULINK driver: Implement variable TCK frequency in OpenOCD driver
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:42 +02:00
Martin Schmölzer
6446dbaacb
ULINK driver: Implement variable TCK frequency in OpenULINK firmware
...
Also, speed up jtag_clock_tck() significantly (150 kHz -> 375 kHz)
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmoelzer
c881fb8532
ULINK driver: Fix whitespace in OpenULINK firmware usb.c module (trivial)
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmoelzer
d1bd5569b3
ULINK driver: Implement JTAG_PATHMOVE command
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
118a9a9ca0
ULINK driver: Implement JTAG_STABLECLOCKS command
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
b6e4d26695
ULINK driver: Implement command to manually force downloading firmware image from arbitrary location
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
d01cbd7143
ULINK driver: Re-order queue functions to reflect the order in commands.h
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
b6f8b2ab66
ULINK driver: Properly propagate return values in ulink_execute_queue()
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
3633e8d7b8
ULINK driver: Update some comments, fix some coding mistakes
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
simonqian.openocd
7e20eda944
vsllink driver compile fails with'vsllink_debug_buffer' defined but not used
...
USB communication is handled by code under versaloon directory.
So _DEBUG_USB_COMMS_ should not be used in vsllink.c.
Attachment is the patch.
2011-08-31 16:22:00 +02:00
SimonQian
54fc164d3a
versaloon driver update
...
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-08-16 12:50:38 +01:00
Spencer Oliver
85cf298667
ftd2xx: fix build warnings
...
Due to build warnings introduced in newer versions of ftd2xx we
use strings to report errors rather than result codes. This also
gives us the same behaviour as libftdi.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-08-11 21:36:54 +01:00
Andreas Fritiofson
f25ffaf2b2
rlink: read only the expected number of bytes
...
After correcting the reply size counter, it should be safe to rely on it
for the number of bytes expected in the USB read, instead of reading the
endpoint maximum. This doesn't make things go any faster but it's nicer and
removes the local buffer.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:09 +02:00
Andreas Fritiofson
0b64be2019
rlink: simplify and optimize queue fill level checks
...
Add a helper function for running the queue if it would overflow otherwise.
Use it to simplify the queue fill level checks and optimize in a few cases
that would previously run the queue prematurely.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:09 +02:00
Andreas Fritiofson
d23d61a932
rlink: remove redundant text from log messages
...
__FILE__ and __LINE__ are already printed using the log macros.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:09 +02:00
Andreas Fritiofson
5f698273c2
rlink: remove duplicated code
...
After the reply_index handling is fixed, there's no need to special case
the out scan.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:09 +02:00
Andreas Fritiofson
5812ef2b73
rlink: fix reply counter to enable sending full buffers
...
dtc_queue.reply_index was wrongly being increased during out scans, causing
the queue to be sent before the out buffer was full. This patch increases
raw upload speed by 50% or so.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:09 +02:00
Andreas Fritiofson
6f1641a5cc
rlink: more indentation fixes
...
Remove unnecessary block scopes to reduce indentation level.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:08 +02:00
Andreas Fritiofson
068c9f266e
rlink: fix indentation errors
...
Indentation was inconsistent and some lines not indented at all. Quickfix
using Eclipse's auto-indentation.
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-08-10 06:52:08 +02:00
Spencer Oliver
0ea76bc778
ftd2xx: handle FT_GetLatencyTimer bug in v1.04
...
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-07-12 15:51:18 +01:00
Spencer Oliver
b765688be6
busblaster: Fix warnings when building against D2XX
...
The default is -Werror, so warnings become errors.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-07-12 14:40:19 +01:00
Steve Bennett
b238735f89
ft2232: Fix warnings when building against D2XX
...
The default is -Werror, so warnings become errors
Signed-off-by: Steve Bennett <steveb@workware.net.au >
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-07-12 12:58:28 +01:00
Martin Schmölzer
5141ab3e69
Include ULINK driver in src/jtag/drivers/Makefile.am
...
A new variable "nobase_dist_pkglib_DATA" is introduced to install
the OpenULINK firmware image to $PREFIX/lib/openocd/OpenULINK/ulink_firmware.hex
Also, the variable "EXTRA_DIST" is used to include the OpenULINK firmware source
in the OpenOCD source distribution.
2011-06-26 17:43:51 +02:00
Martin Schmölzer
3c3f3c4247
Add OpenULINK firmware
...
Build requires SDCC, the Small Device C Compiler.
2011-06-26 17:43:51 +02:00
Martin Schmölzer
03e4ae8481
Add source code for new ULINK driver
2011-06-26 17:43:50 +02:00
Øyvind Harboe
c8b5719802
transport: move files over to transport folder
...
as we introduce swd and jtag as two transports, we want
to start up with a new transport folder to organize the
code a bit.
2011-06-13 15:51:04 +02:00
Rodrigo L. Rosa
7b0ead520d
cleanup trailing whitespaces
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
56d3927abf
Added minimodule (ftdi) interface
2011-06-12 11:18:27 +02:00