background image

OLIMEX© 2015

ARM-USB-OCD user's manual

3.8 CooCox IDE

CooCox CoIDE is a new, free and highly-integrated software development environment for 
ARM based microcontrollers, which includes all the tools necessary to develop high-quality 
software solutions in a timely and cost effective manner.

There is built-in support for Olimex OpenOCD tools. To make them work together install the 
drivers as explained in ''3.2.2 Drivers and driver installation'' and edit the debug configuration of the
project to match the debugger. 

Please note that CooCox uses FTDI drivers.

 

The LibUSB and the

WinUSB drivers will NOT work with CooCox IDE.

Click Debug - > Debug Configuration and set the settings in the following order:

Adapter: Olimex-Open OCD, Port: JTAG, Max Clock – 500K Hz, Startup – check Run to main, 
Reset Mode: SYSRESETREQ; Disable the Semi-hosting since it isn't stable yet; Enable caching for
faster debugging; the host address for the GDB is local host e.g. 127.0.0.1 and the port is 2009.

The configuration might be seen on the pictures below:

Additional information might be found in the following document: 

https://www.olimex.com/Products/ARM/JTAG/_resources/How_to_run_CooCox_with_Olimex_JT
AGs_v2.pdf

3.9 Olimex Open Development Suite (ODS) package

Olimex provides own free distribution of an open-source Integrated Development Environment 
(IDE). There are several modules that are required to provide the same feel as commercial products.
The ODS is consisted of Eclipse IDE + Y Zylin Em OpenOCD. It is packed 
with a Windows installer so if you are a pure Linux user you might want to skip this chapter.

The package is primarily meant to be used by people who own an Olimex OpenOCD debugger and 
one of the supported Olimex boards. It might be a very helpful software package for the OpenOCD 
beginners.

The debuggers supported are:

Page 28 of 33

Содержание ARM-USB-OCD-H

Страница 1: ...ARM USB OCD H ARM USB OCD OLIMEX OPENOCD ARM JTAG DEBUGGERS USER S MANUAL Document revision D July 2015 All boards produced by Olimex LTD are ROHS compliant...

Страница 2: ...d This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arising from the use of any information in this document or any er...

Страница 3: ...SB OCD 14 3 3 Detailed software setup 14 3 3 1 Getting OpenOCD 15 3 3 2 Drivers and driver installation 16 3 3 3 Driver installation in Windows 17 3 3 4 Driver installation in Linux 19 3 3 5 Driver in...

Страница 4: ...015 ARM USB OCD user s manual CHAPTER 5 REVISION HISTORY AND SUPPORT 31 5 Introduction to the chapter 31 5 1 Document revision 31 5 2 Useful web links and purchase codes 31 5 3 Product support 33 Page...

Страница 5: ...with up to 200mA at 5V Able to power a target board via a standard DC barrel jack cable for the external powering included 2 1 5 5 14mm female connectors at both ends Downloadable Windows installer f...

Страница 6: ...mel AVR debugging AVReAL and AVRdude software tools Yet while these applications of ARM USB OCD are possible we do not provide any support regarding such use Please note that Olimex OpenOCD debuggers...

Страница 7: ...s included in the package The ARM USB OCD can provide 5V or 9V or 12V controlled via jumper while ARM USB OCD H can only provide 5V This feature is useful when you want to power the target board witho...

Страница 8: ...an overview of the board usage and features Chapter 2 provides information about the connectors and the status LEDs Chapter 3 provides a guide for quickly setting up the board and the needed software...

Страница 9: ...d green LED on the top Upon USB connection the LED might power up However it is mainly meant to indicate programming debugging in progress The red LED should blink when you have an on going operation...

Страница 10: ...16 GND 17 NOT CONNECTED 18 GND 19 TARGET SUPPLY 20 GND Pins 1 and 2 of the JTAG connector are voltage reference that probes if the target is already powered by another source If it is not the ARM USB...

Страница 11: ...ers The cable can be used between the barrel jack of the debugger and the barrel jack of the target board The DC barrel jack has a 2 0mm thick inner pin and 6 3mm hole diameter The inner pin carries t...

Страница 12: ...OLIMEX 2015 ARM USB OCD user s manual Page 12 of 33 ARM USB OCD H powering LPC P11C24 via the PWR_OUT jack...

Страница 13: ...r It is recommended to do so before the purchase of the debugger SWD interface is supported only if you use the additional adapter mentioned in sub chapter 3 5 Rowley Crossworks for ARM 3 2 Detailed h...

Страница 14: ...ce JTAG ribbon cable Target i e connect the SWD adapter directly to the programmer with no cable in between them 3 3 Detailed software setup ARM USB OCD might be used with a wide range of software too...

Страница 15: ...inue reading below If you wish to compile OpenOCD under Windows you would need a proper software tool to compile the sources Since you can t use most Linux tools which were used during the creating of...

Страница 16: ...drivers are written and distributed by FTDI a Scottish company and they are considered proprietary piece of software Because the initial idea of the OpenOCD is to be fully open source as its name ind...

Страница 17: ...epend on which version of OpenOCD you are using There is a difference in the driver installation if you are using OpenOCD 0 8 0 or newer and if you are using versions prior to OpenOCD 0 8 0 The driver...

Страница 18: ...here the driver archive was extracted Upon successful installation you would probably need to repeat the whole process until all unrecognized entries in Windows Device Manager disappear This usually m...

Страница 19: ...ot pluggable devices and then gives the group read and write access Make sure your user is in the plugdev group my user was in it by default Create a file etc udev rules d olimex arm usb ocd h rules P...

Страница 20: ...t probably wrong The directory structure of the driver package changes frequently so you might need to first find the files This guide works for driver version 1 2 2 Use command line terminal to do th...

Страница 21: ...erformed by sending direct commands to the board After establishing the basic connection described below you can open new terminal and run a telnet connection The telnet would accept commands on port...

Страница 22: ...ay to communicate with your target if you use an OpenOCD version prior to 0 8 0 Note that the interface cfg is located at a different place compared to the previous example with FTDI drivers openocd f...

Страница 23: ...and how to change the vendor and product identification numbers VID and PID of the device 3 5 1 Using multiple ARM USB OCD interfaces In OpenOCD there is a specific parameter that allows the usage of...

Страница 24: ...e the following olimex arm usb ocd h1 cfg interface ftdi ftdi_device_desc Olimex OpenOCD JTAG ARM USB OCD H 1 ftdi_vid_pid 0x15ba 0x002b ftdi_serial OLWWV0SZ olimex arm usb ocd h2 cfg interface ftdi f...

Страница 25: ...ewhere and point manually the installer to that location How to use MProg 1 You need to be sure that you are using FTDI D2XX drivers not libUSB not WinUSB etc 2 Start MProg 3 Select the FT223H tab in...

Страница 26: ...It offers excellent support for Olimex OpenOCD debuggers Furthermore there are ready examples for a number of Olimex ARM boards that shortens the development time required It is recommended to use FT...

Страница 27: ...LED Inversion Mask 0 0000 Running LED Mask 0 0800 PID 0 002b VID 0 15ba The correct VID and PID for your device might be found in table 2 in case you missed it The SWD interface via ARM JTAG SWD migh...

Страница 28: ...i hosting since it isn t stable yet Enable caching for faster debugging the host address for the GDB is local host e g 127 0 0 1 and the port is 2009 The configuration might be seen on the pictures be...

Страница 29: ...the Open Source tools used in Olimex ODS once you get the idea Unfortunately Olimex is unable to provide any support for the Olimex ODS we can t give you any custom configurations neither makefiles ne...

Страница 30: ...out of luck You either have write it yourself or ask politely somebody at the OpenOCD community to do it for you Q I can t write proper makefile for my board under your Eclipse like IDE Can you pleas...

Страница 31: ...of the power jack Improved the description of the additional female female plug cable 13 14 18 20 C 10 04 15 Added information on how to run multiple debuggers in the same computers Added information...

Страница 32: ...ps www olimex com Products ARM JTAG ARM USB TINY ARM JTAG 20 10 https www olimex com Products ARM JTAG ARM JTAG 20 10 ARM JTAG SWD https www olimex com Products ARM JTAG ARM JTAG SWD USB A B CABLE htt...

Страница 33: ...l coffee on them during your work when they are powered Please note that warranty do not cover problems caused by improper use shorts over voltages ESD shock etc If the board has warranty label it sho...

Отзывы: