aboutsummaryrefslogtreecommitdiff
path: root/tcl/interface
AgeCommit message (Collapse)Author
2015-10-21tcl: Setting lowlevel driver for ixo-usb-jtagTim 'mithro' Ansell
Also add further documentation about the project and how to use it. Change-Id: Ia9878de566b3c8c1ea29f129287d5aea904d861d Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com> Reviewed-on: http://openocd.zylin.com/2961 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2015-09-30tcl/interface/ftdi: Add Digilent JTAG-HS3 configAndreas Färber
Derived from tcl/interface/digilent-hs1.cfg. JTAG-HS3 has an open drain buffer on pin 14 for SRST to work with PS_SRST_B on Xilinx Zynq SoC. Change-Id: I1e9e72d0511528a61207e318aff937ae9fad5bf9 Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/2728 Tested-by: jenkins Reviewed-by: Robert Jordens <jordens@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-08-06bcm2835gpio: Add SWD support, Raspberry Pi 2 support.Christoph Pittracher
Added support for SWD transport similar to sysfsgpio driver. Added configurable peripheral base address to support Raspberry Pi 2. Change-Id: If76d45fbe74ce49f1f22af72e5f246e973237e04 Signed-off-by: Christoph Pittracher <pitt@segfault.info> Reviewed-on: http://openocd.zylin.com/2802 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-08-06kc705: digilent-jtag/kintex7/jtagspi boardRobert Jordens
Xilinx Kintex7 Development board with integrated Digilent JTAG-SMT1 (a.k.a. HS1) interface and a 128 MBit SPI flash. Change-Id: I9daba0a2fb2c17e04bcb37bd41872ebde25e0d2f Signed-off-by: Robert Jordens <jordens@gmail.com> Reviewed-on: http://openocd.zylin.com/2861 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-08-06pipistrello: ftdi-jtag/spartan6/jtagspi boardRobert Jordens
The Pipistrello is a low cost FPGA board with a Xilinx Spartan6 LX45, a SPI flash and onboard FTDI JTAG. This board is a good example use case for the jtagspi flash driver talking through a proxy bitstream. Change-Id: I04a80610ff825c36ebcb67b879507028eed141ad Signed-off-by: Robert Jordens <jordens@gmail.com> Reviewed-on: http://openocd.zylin.com/2846 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-04-14turtelizer2-revC: Tested with real hardware.Uwe Bonnes
Also some hints around deprecated tcl/interface/turtelizer2.cfg added. Change-Id: Ifa57b49febffaeddd5d8ff0a48833d3544927b10 Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-on: http://openocd.zylin.com/2584 Tested-by: jenkins Reviewed-by: Harald Kipp Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2015-04-14tcl/interface/parport: default to sane value on non-windows systemsPaul Fertser
When using ppdev driver 0 is the most appropriate default value as it corresponds to /dev/parport0. Raw port address is suitable only for direct access (I think that's parport-giveio on windows). Reported by danitool on IRC. Change-Id: I983c22251de6601b433ad31aaf660fb664cee7e9 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2572 Reviewed-by: Andreas Färber <afaerber@suse.de> Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2015-03-09tcl/interface/ftdi/xdsv2: fix and clarify EMU* signalsMatthijs van Duin
The signal names are changed for consistency with TI's docs and sources. Change-Id: Ic5c5314daa20f6f610be8a848399f951d47aa137 Signed-off-by: Matthijs van Duin <matthijs@rinnic-vaude.nl> Reviewed-on: http://openocd.zylin.com/2231 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2015-02-22cfg: add board and target configs for TI SimpleLink Wi-Fi CC3200 LaunchPadPaul Fertser
Change-Id: I4396ee737c1dad380aa23894bbd1faf75f26d072 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2465 Tested-by: jenkins
2015-02-11tcl/interface/ftdi: correct LED config for BusBlaster KT-LinkAnton Kuzmin
Configure the LED to be off by default, blink on activity. Change-Id: I8515ee66c49bddf866268b85811be15c2dbc086c Signed-off-by: Anton Kuzmin <anton.kuzmin@cs.fau.de> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2539 Tested-by: jenkins
2015-02-11J-Link serial number config optionJoerg Fischer
Add serial option to jlink config commands, handy when there is more than one adapter connected. To select adapter 0123456 for OpenOCD, use jlink serial 0123456 Change-Id: Ib29ce3f0c4975e1169211721a4531bf4db61f1ee Signed-off-by: Joerg Fischer <turboj@gmx.de> Reviewed-on: http://openocd.zylin.com/2521 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2015-01-15tcl/interface/ftdi: add config for the IoT-LAB adapterPaul Fertser
This is an integrated adapter used on the IoT-LAB boards. Schematics are available from https://github.com/iot-lab/iot-lab/wiki/Docs/openm3-schematics.pdf Change-Id: I1c80e72653c3f319bb04d01e3dfddb1c2447c398 Tested-by: Quentin Lampin <quentin.lampin@orange.com> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2415 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-11-02tcl/interface/ftdi/swd-resistor-hack: clarify and add schematic diagramPaul Fertser
Change-Id: I8600ee983de85e4225430ae508a50cd938122d89 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2357 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-10-16cmsis-dap: add serial number supportSpencer Oliver
Change-Id: I66926d1013e2b3a43ce0d18d3599771428706b6a Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2329 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-10-06interface/ftdi/olimex-arm-usb-ocd-h: fix nTRST control definitionPaul Fertser
According to my inspection of an Olimex ARM-USB-OCD-H adapter ACBUS0 is connected directly to an SN74LVC2T45 buffer input B2, and the corresponding output A2 is connected directly to the JTAG connector. It seems the information in the Olimex flyer is incorrect for the -H version and TRST can't be tri-stated, ACBUS2 is unused. The older ARM-USB-OCD device has SN74AC244 for an output buffer and ACBUS2 controls its !2OE, ACBUS0 connected to 2A1 (2Y1 is nTRST), in accordance with the information flyer. Change-Id: I22828b7b959b6f62c3f51367feb8fab9705641e5 Reported-by: Tim Sander <tim@krieglstein.org> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2286 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Tim Sander <tim@krieglstein.org>
2014-09-22Support hla_serial command for ST-LINK adapters.Austin Phillips
The hla_serial command allows for a programming device serial number to be specified in addition to USB VID/PID. This allows for multiple ST-LINK/V2 programmers to be attached to a single machine and operated using openocd. Change-Id: I350654bf676eb26ba3a90450acfa55d2a5d2d791 Signed-off-by: Austin Phillips <austin_phillips@hotmail.com> Reviewed-on: http://openocd.zylin.com/2198 Tested-by: jenkins Reviewed-by: Martin Glunz <mg@wunderkis.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-09-11tcl/interface/ftdi/sheevaplug: fix device descriptionPaul Fertser
Without this SheevaPlug debugging interface can't be matched. Change-Id: Ifca149130d03c1aa165ed1123e8540e49485f023 Reported-by: Andreas Schneider <schneider.andi@gmail.com> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2265 Tested-by: jenkins
2014-09-08tcl/interface/ftdi: fix TRST for Olimex TINY adaptersPaul Fertser
According to the research by Eldar, TINY-H adapter has nTRST connected to ACBUS0 directly via a 100 Ohms series resistor. I think it's safe to assume the older TINY adapter does the same. See high-res photos at [1]. This patch should fix issues with JTAG for the case when nTRST is actually connected but is missing from the config. [1] https://wikidevi.com/wiki/Olimex_ARM-USB-TINY-H Change-Id: Iaaee7be30536ebb502802d38b82cd9573408f854 Reported-by: Хайруллин Эльдар <eldar.khayrullin@mail.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2247 Tested-by: jenkins Reviewed-by: demokmail <demokmail@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-09-08tcl/interface/ftdi: add kt-link config (with SWD) for DP BusBlasterPaul Fertser
Change-Id: Icbeca8c0c3845c0b777fb2e4c81b17e7b7cc5ff8 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2269 Tested-by: jenkins Reviewed-by: Ben Gamari <bgamari@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-08-19tcl/interface/ftdi: auto-select SWD from converters' configsPaul Fertser
When you source a JTAG-SWD converter config, any other transport doesn't make any sense, so just autoselect it right there. Change-Id: I6c098740905a0d4007473fc19cc07e11cbcc9369 Suggested-by: Хайруллин Эльдар <eldar.khayrullin@mail.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2248 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Eldar Khayrullin <eldar.khayrullin@mail.ru>
2014-08-04interface/ftdi: Mark flyswatter.cfg as testedAndreas Fritiofson
- Flyswatter + Proxmark3 (Atmel AT91SAM7S256) - works - Flyswatter + Tiva Launchpad (EK-TM4C123GXL) - works Change-Id: I615e0ff9262be6ae1064fb2de8e6e810775e7db4 Tested-by: Ondrej Mikle <ondrej.mikle@nic.cz> Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2237 Tested-by: jenkins
2014-06-28cfg: add SWD configs for stellaris ftdi based adaptersSpencer Oliver
Tested on hardware. Change-Id: Ib0191e97988dc79e9a62da74bd7fe25f548ff5a2 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2185 Reviewed-by: Paul Fertser <fercerpav@gmail.com> Tested-by: jenkins
2014-06-28tcl/interface/ftdi: add SWD configs for kt-link, olimex, rowley and resistor ↵Paul Fertser
hack Resistor hack is runtime-tested, other configs are based on schematics. Change-Id: I8daffa0434cd41d142fbec7c230a302284f7aa31 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2184 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2014-06-28jtag/drivers/ftdi: require defining SWD_EN signal for SWD modePaul Fertser
Use a special signal instead of a dedicated swd mask. Amend jtag-lock-pick_tiny_2 config accordingly. Change-Id: Ifb007a0b5434b590c52f936efd5f5458e913e2e4 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2183 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
2014-06-28cfg: Add SWD support to JTAG-lock-pick Tiny 2Andreas Fritiofson
Change-Id: I61eac507fa6861b7daf603ebca58e8bf3cc699c1 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2136 Tested-by: jenkins Reviewed-by: Jens Bauer <jens@gpio.dk> Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-03-17tcl/interface/ftdi: add Digilent JTAG-SMT2 configPaul Fertser
Tested on ZedBoard by Tim Sander. Change-Id: I4316d9b4d36f01bbe91a46c78ea8bca22efb1a5a Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2029 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-17stlink_usb.c: add support for STLink V2-1Bartosz Bielawski
The new version of STLink (V2-1) has a different USB endpoint layout. As the PID of the device also changed it's possible to change EPs used by OpenOCD in runtime. The patch adds three new fields to stlink_usb_handle_s and assigns right EP numbers in stlink_usb_open(). Parts of the code inspired by and used with consent of Jens Hoffmann. Change-Id: I93b69fb889f15317e9bf864905f435905db39745 Signed-off-by: Bartosz Bielawski <bartosz.bielawski@gmail.com> Reviewed-on: http://openocd.zylin.com/2019 Tested-by: jenkins Reviewed-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp> Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-09interface/ftdi/xds100v2.cfg: Add another VID/PID, drop descTom Rini
The XDS100v2 is often embedded in a number of platforms using the VID/PID of 0x0403/0x6010 and a generic FTDI device description. Add this VID/PID combination and remove the description line. Change-Id: I370e6199ac24f802426e9541e19ee38f18f1209a Signed-off-by: Tom Rini <trini@ti.com> Reviewed-on: http://openocd.zylin.com/2016 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-02-11interface/ftdi/xds100v2.cfg: default to reset state and ask user to release ↵Paul Fertser
it later This adapter is special and needs a reset sequence to be performed before operation. Since there're no suitable hooks to do that, we have no choice but to ask the user to manually add the necessary commands to his or her config file. Change-Id: I48fb4276e77529768266840221b68c3ae26801e1 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1884 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-02-04interface/ftdi: add TUMPA Lite configPaul Fertser
TUMPA Lite is a cheap FT232H-based breakout board, without any buffering. It also lacks series resistors so for some targets (especially when not using ridiculously short wires) one needs to add about 47 Ohms in series on every high-speed line. The SRST line is connected directly to the FT232H too. Real-life tested (including SRST and TRST). Change-Id: I5ed4f88d8d20384e9c52efe2ff0c290e2650d43e Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1918 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-20jtag/drivers: add USB-Blaster IIFranck Jullien
This patchs adds a new access driver for the existing USB-Blaster interface driver. This interface (as it is build-in on the sockit development board) is composed of a Cypress EZ-USB plus a CPLD. The Cypress chip as an embedded 8051 microcontroller. When it's powered up, the firmware is downloaded to the chip then the device is disconnected and reconnected with the new firmware. The USB-Blaster II protocol is almost identicial to the old one. The only difference is that you need to send a 0x5F before read TDO back. This command seems to copy TDO buffer datas to the endpoint buffer. Driver will be auto enabled if libusb-1.0 is detected. Change-Id: I562a720a68cb4dcabeab791947d5d38776cb70fa Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Reviewed-on: http://openocd.zylin.com/1791 Tested-by: jenkins Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-09cmsis-dap: add initial cmsis-dap supportSpencer Oliver
This is based on work from: https://github.com/TheShed/OpenOCD-CMSIS-DAP/tree/cmsis-dap Main changes include moving over to using HIDAPI rather than libusb-1.0 and cleaning up to merge into master. Support for reset using srst has also been added. It has been tested on all the mbed boards as well as the Freedom board from Freescale. These boards only implement SWD mode, however JTAG mode has been tested with a Keil ULINK2 and a stm32 target - but requires a lot more work. Change-Id: I96d5ee1993bc9c0526219ab754c5aad3b55d812d Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/1542 Tested-by: jenkins
2013-12-31jtag_vpi: make the server address configurableFranck Jullien
Change-Id: I58e89c789b79ffb0b54ef94d208be876c271ddf7 Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Reviewed-on: http://openocd.zylin.com/1840 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-12-14ftdi/neodb.cfg: mark as testedPaul Fertser
Working against openmoko gta02 target, including TRST and SRST (the stupid samsung chip fully resets under trst, so it's actually of little use here). Change-Id: I831124659fc12efbccef536f07d15509c2112f92 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1814 Tested-by: jenkins Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-10-31ftdi/tumpa.cfg: enable proper output buffer control, add another USB IDPaul Fertser
The schematics used for writing the config file were incorrect, real hardware needs ACBUS3 _low_ as it's connected directly to the output buffer's !OE pin. Also apparently sometimes TUMPA comes with default FTDI IDs. Real-life tested (including TRST and SRST) with a custom stm32f103 board, thanks to Mike Wang for the adapter sample. Change-Id: Iab566e6d14f8392030f6ff2c8d976e1b57cf5ce6 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1789 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-09-08jtag: drivers: Add JTAP VPI client driverFranck Jullien
This patch adds a driver for the jtag_vpi server [1]. This server is now part of the ORPSoC version 3 (OpenRISC Reference Platform SoC). The jtag_vpi server provides an interface between OpenOCD and a simulated core. [1] http://github.com/fjullien/jtag_vpi Change-Id: I717b72cace4845f66c878581345074f99002e21a Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Reviewed-on: http://openocd.zylin.com/1609 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-08-29Added new ftdi interface devicePushpal Sidhu
Added new configuration file for gw16042 device. Also added this to interface/ftdi examples in documentation. Change-Id: I07bb10bfc79a5d13007288cd57f254d889075214 Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com> Reviewed-on: http://openocd.zylin.com/1563 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-08-15interface/ftdi/tumpa: remove ftdi_device_desc as it's incorrectPaul Fertser
The end users on IRC report that actual USB device has different information in its descriptor so it doesn't match. Remove it altogether. Change-Id: Id7841667390a514581e630e67b9283675803135b Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1548 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-08-09remove the untested warning in ftdi/olimex-arm-usb-tiny-h.cfgSergey Alirzaev
the dongle seems working, including srst signal Change-Id: I5da9046bd8a35d8d826f1b663c01bd2600a6cf14 Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com> Reviewed-on: http://openocd.zylin.com/1545 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-07-15ftdi/board: Add support for DENX M53EVKMarek Vasut
Add support for DENX M53EVK board and it's integrated on-board JTAG adapter using FT2232H. Change-Id: I022dcafa7799bb84a7873ba67ed82f1e49094320 Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Reviewed-on: http://openocd.zylin.com/1461 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2013-07-09ftdi/xds100v2.cfg: Remove the warning as it has been testedLaszlo Papp
Change-Id: I3a8711867e247bc49caa79274ae882f07719d4ce Signed-off-by: Laszlo Papp <lpapp@kde.org> Reviewed-on: http://openocd.zylin.com/1492 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2013-07-08cfg: Update Flyswatter 2 URLAndreas Fritiofson
It pointed to the Flyswatter 1 page. Change-Id: Ib7e82669a31cad2bf8f6ba4a60b25ef9920b2584 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1478 Tested-by: jenkins Reviewed-by: Xiaofan <xiaofanc@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-06-12ftdi: config for TUMPAPaul Fertser
Add a config file for TIAO USB Multi-Protocol Adapter. Based on schematics from http://www.mediafire.com/?zv158nnx1gv0cy2 Cc: Volkan K <volkan-k@users.sourceforge.net> Change-Id: I0dfd93b0b1e558e4ccd7c94c005c099947ec94df Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1438 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2013-06-10Add BCM2835 (as found in Raspberry Pi) interface driverPaul Fertser
This adds support for JTAG programming by bitbanging GPIOs exposed on the RaspberryPi's expansion header. Tested by connecting directly to an STM32VLDiscovery board, without any additional circuity. I observed maximum about 4MHz on the TCK pin with an old analogue 'scope and about 100kHz when setting the speed to 100kHz. Busyloop waiting is needed because even with a single 0ns nanosleep call (with FIFO priority) it lowers the TCK speed to ~30kHz which is way too low to be useful. The speed testing with adapter_khz 2000 gave the following results: sudo chrt -f 1 nice -n -19 ./src/openocd \ -f interface/raspberrypi-native.cfg \ -c "set WORKAREASIZE 0x2000" \ -f target/stm32f1x.cfg -c "adapter_khz 2000" wrote 131072 bytes from file random.bin in 3.973677s (32.212 KiB/s) dumped 131072 bytes in 1.445699s (88.538 KiB/s) This is 3.7 times faster for writing and 14.3 times faster for reading compared to the generic sysfsgpio driver; probably the writing speed is limited by the target itself here and reading speed might be considerably higher too with appropriate connection and a capable target. BCM2835 name is choosen over BCM2708 because the published peripherals datasheet uses the particular model name and not family name. Change-Id: Ib78168be27f53c2a3c88c3dd8154d1190c318c78 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/758 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-06-05Added OpenJTAG DriverRyan Corbin
Updated OpenJTAG driver from www.openjtag.org to work with latest version of OpenOCD. Change-Id: I2917f4e5835fb9ca5265e81dc38515fa97ae9503 Signed-off-by: Ryan Corbin <corbin.ryan@gmail.com> Reviewed-on: http://openocd.zylin.com/1406 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-06-05aice: add Andes AICE supportHsiangkai Wang
Andes AICE uses USB to transfer packets between OpenOCD and AICE. It uses high-level USB commands to control targets instead of using JTAG signals. I define an interface as aice_port_api_s. It contains all basic operations needed by target-dependent code. Change-Id: I117bc4f938fab2732e44c509ea68b30172d6fdb9 Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com> Reviewed-on: http://openocd.zylin.com/1256 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-05-29interface/ftdi: remove "untested" warning from DP BusblasterPaul Fertser
This is reported as working by mitsakos on IRC. Change-Id: I26b97779c3e8e237c5b3996aa81183031b12ec0c Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1419 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-03-13interface: opendous_ftdi config file addedRodrigo Melo
This config file add support to the opendous cable based on the chip ft2232H, using the ft2232 interface driver. Change-Id: I8171a0c475af8d61e081844ee86466a392138fb0 Signed-off-by: Rodrigo Melo <rmelo@inti.gob.ar> Reviewed-on: http://openocd.zylin.com/1096 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-03-07interface: opendous_ftdi config file addedRodrigo Melo
This config file add support to the opendous cable based on the chip ft2232H, using the ftdi interface driver. Change-Id: I4491f99d7b14f7078a04583ef0c4acd8692c4349 Signed-off-by: Rodrigo Melo <rmelo@inti.gob.ar> Reviewed-on: http://openocd.zylin.com/1097 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-02-08jtag_interface: .speed can be NULL when not neededFranck Jullien
adapter_init (core.c) won't check speed configuration of the selected interface if it's not needed (.speed = NULL). When it's not needed, we can now omit adapter_khz in init scripts and we don't have to implement dummy handlers for speed_div and khz functions. It also removes calls to adapter_khz in interface configuration files when not used anymore. Change-Id: I6eb1894385503fede542a368f297cec6565eed44 Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Reviewed-on: http://openocd.zylin.com/1131 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>