Open On-Chip Debugger - OpenOCD
Open On-Chip Debugger - OpenOCD
Open On-Chip Debugger support on OS X
OpenOCD
Visit my other pages:
If you have any comments or know of links I should add, please feel free to email me.
OpenOCD is a software project started by Dominic Rath several years ago. It is now a open source project and can be downloaded from here. It now connects to several target machines through many debug/programming interfaces. A list of supported targets can be found in chapter 6 of the documentation (although the documentation list lags behind the targets that are supported). Below are programming/debugging interfaces that mention OS X compatibility. To join the mail list, go here.
gdb is the debugger that is typically used under OSX for embedded debugging if the semiconductor supplier doesn’t offer a OS X solution for their part. A little background on gdb is here.
Versaloon
The VersaloonMini and the VersaloonNano are small programmer/debugger interfaces.
Bus Pirate
The Bus Pirate is accessed from a command line in a OS X terminal. When powered up all I/O lines are high impedance. From there, a bus mode can be selected to use the Bus Pirate with a specific protocol. Bus modes : 1-Wire, UART, I2C, SPI, raw 2-wire, raw 3-wire, HD44780 LCDs, MIDI, PC keyboard, DIO, JTAG.
http://dangerousprototypes.com/docs/Bus_Pirate
Bus Pirate can be purchased in the USA from:
http://www.adafruit.com/index.php?main_page=product_info&cPath=8&products_id=237
Tutorial for use on OS X:
http://hardcoreforensics.com/research-hardware/tool-setup/buspirate-v3
Bus Pirate firmware information:
http://michaldemin.wordpress.com/2010/02/27/how-to-buspirate-and-openocd/
Other Tutorial sites for OpenOCD on OS X
OpenOCD has changed its download link and some of these links below give you a old URL for the download. The current download page as of this writing is: http://developer.berlios.de/project/showfiles.php?group_id=4148&release_id=18726
NoICE Debugger: http://www.noicedebugger.com/tour_arm/firstoocd.html
Download binary from: cloud.github.com/downloads/qgc/software/cm3.zip
Firmware Development on Mac using CodeSourcery on openpilot: http://wiki.openpilot.org/display/Doc/Firmware+Development+on+Mac
AVR on Egnite’s AVR based Internet Radio: http://www.ethernut.de/en/hardware/eir/jtag.html
Forum on OpenOCD on OS X: http://forums.leaflabs.com/topic.php?id=532
Blog for the STM32 ARM using OpenOCD on OS X: http://www.jeffplaisance.com/2010/12/openocd-on-os-x-using-flyswatter-and.html
Summary of OpenOCD on OS X 10.5: http://code.google.com/p/usbprog-jtag/
YAGARTO ARM Tool chain using Eclipse and OpenOCD: http://www.yagarto.de/
USB to Chip Adapters compatible with OpenOCD
All FTDI Based Adapters
Many evaluation boards use a FTDI chip for USB to JTAG communications. FTDI makes two kinds of drivers, the VCP version for serial port emulation, and the D2XX version which are more general and designed for dynamic libraries. To use the JTAG features you need the D2XX version. There are compatibility issues between the two, see the FTDI read me here.
Download the D2XX version: http://www.ftdichip.com/Drivers/D2XX.htm
ARM-USB-OCD
Three-in-one USB JTAG debugger - offers JTAG + RS232 (full modem signals supported) port + power supply all in one compact device.
Mac OS 10.7 + Eclipse + OpenOCD + STM32 (ARM Cortex M3)
Excellent tutorial in four parts. Detailed Instructions for putting Eclipse and OpenOCD on OS X for ST’s ARM targets.
http://salvatoremenendez.blogspot.com/2011/08/mac-os-eclipse-openocd-stm32-arm-cortex.html
ARM GCC + gdb + OpenOCD tool chain build (without MacPorts)
Build a Texas Instruments Stellaris tool chain on OS X without using macports. Macintosh OS X.
http://www.arklyffe.com/main/2010/08/29/arm-gcc-toolchain-build/
MacPorts information
Macports home
MacPorts tutorial for installation of MacPorts and a example application
http://fragmentized.net/content/tutorial-installing-macports
MacPorts tutorial for using
http://2tbsp.com/content/easily_manage_unix_packages_mac_macports,_formerly_darwinports
USB-AtmelPrg: Wolfgang's Universal Interface Cable
USB-AtmelPrg is a USB-based universal interface providing all features needed when designing with programmable devices like AVR 8-bit RISCs via SPI, XILINX CPLDs and 32-bit ARMs via JTAG port.
Bus Blaster
Bus Blaster v2 is an experimental, high-speed JTAG debugger from Dangerous Prototypes.
http://www.seeedstudio.com/depot/bus-blaster-v2-jtag-debugger-p-807.html
Turtelizer
Turtelizer is an JTAG debugger from Ethernut. Its connector uses the AVR 10 pin pinout.
http://www.ethernut.de/en/hardware/turtelizer/openocd.html
Turtelizer, OPENOCD, and the Ethernut 3: