CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx...

21
CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this document is believed to be reliable and accurate. However, CoiNel Technology Solutions LLP does not give any representations or warranties, expressed or implied, as to the completeness or accuracy of such information and shall have no liability for the consequences of use of such information. CoiNel Technology Solutions LLP reserves the right to make changes to information published in this document, at any time and without notice, including without limitation specifications and product descriptions. This document replaces and supersedes all information supplied prior to the publication hereof. www.coineltech.com - 1 -

Transcript of CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx...

Page 1: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

CoiNel CoLinkEx Debugger

With CooCox ColinkEx plug-in on Keil MDK.

Disclaimers Information in this document is believed to be reliable and accurate. However, CoiNel Technology Solutions LLP does

not give any representations or warranties, expressed or implied, as to the completeness or accuracy of such

information and shall have no liability for the consequences of use of such information. CoiNel Technology Solutions LLP reserves the right to make changes to information published in this document, at

any time and without notice, including without limitation specifications and product descriptions. This document

replaces and supersedes all information supplied prior to the publication hereof.

www.coineltech.com - 1 -

Page 2: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

TABLE OF CONTENTS

1. Introduction 3

2. Hardware Requirements 3

3. Software Requisites 4

4. Procedure To Install 4

Step1: Download USB Drivers 4

Step2: CoiNel Colinkex USB Driver Installation 5

Step 3: Debug Interface Drivers 8

Step 4: Coocox Colink Mdk Plugin Install And Setup 13

5. Programming/Debugging through

CoiNel Colinkex Debugger Using Keil. 16

www.coineltech.com - 2 -

Page 3: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

1. Introduction: This document is intended to guide the reader to process the setup of CoiNel CoLinkEx Debugger

with CooCox ColinkEx plug-in on Keil MDK.

CoiNel CoLinkEX- Debugger enables you to:

Download programs to your target hardware.

Examine memory and registers.

Single-step through programs and insert multiple breakpoints.

Run programs in real-time.

Program Flash Memory.

Connect using JTAG /SWD.

The setup involves the hardware connection and software installation/settings.

2. Hardware Requirement: You will require the following hardware:

CoiNel CoLinkEx Debugger.

Target board.

USB mini cable.

10 pin ribbon cable connector (1.27mm) for SWD.

20 pin ribbon cable connector for JTAG.

Computer with P-IV and above with minimum of 256MB RAM Connect target board to CoiNel CoLinkEx Debugger via 10pin/20pin cable (choose as per target

board requirements). The CoiNel CoLinkEx is connected to the PC via USB connection option

provided (Use USB Cable to do so).

www.coineltech.com - 3 -

Page 4: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

3. Software: Pre-requisites Make sure that you have installed Keil Microvision for ARM (MDK-ARM) installed on your PC. The following USB driver and plug-in need to be installed to test the CoLinkEx Debugger.

CoiNel ColinkEx Usb drivers.

CooCox MDK plug-in setup.

4. PROCEDURE TO INSTALL Step 1. Download/Save USB Drivers. Download and install the driver for CoiNel CoLinkEx Debugger from the following link

http://www.coocox.org/Colinkex.htm When you click on the above link, a new web browser window will pop up taking you to

CooCox ColinkEx page. Select appropriate ColinkEx-Usb Driver versions Ex: If you are using Windows XP (32 bit). Select

Note:

You can also copy the above link and paste it in the web browser (internet explorer/firefox

etc) address link in case the clicking option does not work.

You can also download the file from the download section from the following link. Download/save file in a specific path on your computer.

www.coineltech.com - 4 -

Version 1.2.1

as required.

Page 5: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Step 2. CoiNel ColinkEx USB Driver Installation.

a. Open the location where you have saved the USB Driver setup file.

b. Install the driver. You will get the following windows

Click Next

www.coineltech.com - 5 -

Page 6: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

The path can be chosen. The default installation path is shown. Click Next.

Click Install

www.coineltech.com - 6 -

Page 7: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Click on Continue Anyway

Installation Completed.

www.coineltech.com - 7 -

Page 8: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Step 3. Debug Interface Drivers

a. Connect CoiNel CoLinkEx to the PC via USB cable.

The image shows that the CooCox hardware is detected

b. After the hardware is detected, the following hardware detection message will be displayed

Press Next

c. The Following window is displayed

Click Next.

www.coineltech.com - 8 -

Page 9: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

d. Next Window

Click on Continue

Anyway e. After complete installation, following window will be displayed

Click Finish

This will Install the CooCox CoLinkEx Debug Interface software.

Note: Repeat step 3 again for one more software installation for CooCox. This is

also automatically detected. www.coineltech.com - 9 -

Page 10: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

After installing these drivers you should see USB Composite Device and CooCox ColinkEx Debug

interface in Universal Bus Controllers listing in device manager options as shown below

How to open device Manager

Right Click on My Computer

Select Manage and left Click Computer Management Window will pop up as given in

the next figure

www.coineltech.com - 10 -

Page 11: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Select Device Manager Option. Doing this will show Device Manager Contents on the left side of

the window as given below.

Click on USB Serial Bus Controllers Options

www.coineltech.com - 11 -

Page 12: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Here you should be able to see the USB Composite Device and Coocox ColinkEx Debug interface

in Universal Bus Controllers and in Ports(COM & LPT) you should be able to see CooCox(COM).

This would confirm that CoiNel ColinkEx-Debugger drivers are installed properly.

www.coineltech.com - 12 -

Page 13: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Step 4. CooCox Colink MDK Plugin Inastall and Setup: Download the Coocox ColinkEx setup file from the below given link. http://www.coocox.org/downloadfile/4coinel/CoMDKPlugin-1.4.2.1.exe.

Opening the link above will start the installer. Click save file and give the path where you want to save this setup file The file by name CooCox MDK_Plugin_V1.4.2.1_Setup would have been saved in the path that

you had given. Open that path and double click on the Setup file. Setup window will open as shown below.

Click next

www.coineltech.com - 13 -

Page 14: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Give the path where keil is installed (generally its c:\Keil). CooCox MDK plugin

takes default path as shown in fig above.

After giving the appropriate path.

Click next.

In the next window, Click install.

www.coineltech.com - 14 -

Page 15: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

A window appears showing installation process. Click on Finish once installation is completed, this

would install the CooCox MDK plug-in successfully.

You would now have successfully installed both CoiNel-CoLinkEx Debugger driver and CooCox Plug in.

www.coineltech.com - 15 -

Page 16: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

5. Programming/Debugging through CoiNel ColinkEx DEBUGGER using Keil.

Open Keil uvision IDE and go to Flash -> Configure Flash Tools -> Debug in drop

down menu select CooCox Colink Debugger as shown in fig below.

Then click on Settings option at the right side of CooCox CoLink Debugger option selected and

the settings should be done as shown in the next figure.

Click on the Adapter field to select CoiNel-CoLinkEx and Port to select SWD/JTAG according to

the target board.

www.coineltech.com - 16 -

Page 17: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Go to Flash -> configure flash tools -> Utilities tab and select CooCox debugger and select the ‘Update Target before Debugging’ check box as shown below

www.coineltech.com - 17 -

Page 18: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Finally open a project and start the debugger by clicking on Debug -> Start/Stop Debug

Session. Note: Make sure that your program is compiled properly before starting the debug

Click ok. This is shown since the keil used is for limited free version. If you have a full version Keil IDE, this option will not be displayed.

If the program is successfully downloaded then, you would see the cursor at main as shown

below.

You can keep the break points and run the program accordingly and test various registers and outputs and

appropriate break points required.

www.coineltech.com - 18 -

Page 19: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

If you have any clarifications on how to use the CoiNel ColinkEx-Debugger, you can post in

your questions at www.coineltech.com/forums

You can also contact our technical support team at [email protected]

For suggestion or complaints related to documentation, contact [email protected]

For Sales contact [email protected]

Company Address

CoiNel Technology Solutions LLP

No-32, 2nd

Floor, HAPBCO Tower, RPC Layout, Hampinagar, Bangalroe-560104 PH: +91-80-23154423

www.coineltech.com - 19 -

Page 20: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

For any technical discussion related to the product with our team and various

users, visit and post your questions at

www.coineltech.com/forums

READER RESPONSE

It is our intention to provide you with the best documentation possible to ensure successful use of the

product. If you wish to provide your comments on organization, clarity, subject matter, and ways in which

our documentation can better serve you, please mail your comments to [email protected] or call our

Technical Publications Officer at (+91) 80-23154423.

Please list the following information, and use this outline to provide us with your comments about this Data

Sheet.

1. How does this document meet your hardware and software development needs?

2. Do you find the organization of this data sheet easy to follow? If not, why?

3. What additions to the data sheet do you think would enhance the structure and subject?

4. What deletions from the data sheet could be made without affecting the overall usefulness?

5. Is there any incorrect or misleading information (what and where)?

6. How would you improve this document?

7. How would you improve our software, systems, and products?

After-sale Service We have special Technical Support Engineers to provide support and consultation in forms of telephone, E-mail and so on. TEL: +91-80-23154423 Technical Support E-mail: [email protected]

www.coineltech.com - 20 -

Page 21: CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil … · 2015-06-20 · CoiNel CoLinkEx Debugger With CooCox ColinkEx plug-in on Keil MDK. Disclaimers Information in this

Disclaimers

CoiNel Technology Solutions LLP. provides the enclosed document under the following conditions:

This document is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRATION and EDUCATION OR EVALUATION

PURPOSES ONLY. As such, the document being provided are not intended to be complete in terms of required design, marketing-

, and/or related protective considerations,

The user assumes all responsibility and liability for proper usage of the document. Further, the user indemnifies CoiNel Technology

Solutions LLP from all claims arising from the handling or use of the documents. EXCEPT TO THE EXTENT OF THE INDEMNITY

SET FORTH ABOVE, NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR

CONSEQUENTIAL DAMAGES.

No license is granted under any patent right or other intellectual property right of CoiNel Technology Solutions LLP covering or

relating to any machine, process, or combination in which such CoiNel Technology Solutions LLP products or services might be or

are used.

Information in this document is believed to be reliable and accurate. However, CoiNel Technology Solutions LLP does not give any

representations or warranties, expressed or implied, as to the completeness or accuracy of such information and shall have no

liability for the consequences of use of such information.

CoiNel Technology Solutions LLP reserves the right to make changes to information published in this document, at any time and

without notice, including without limitation specifications and product descriptions. This document replaces and supercedes all

information supplied prior to the publication hereof.

Trademarks

All referenced trademarks, product names, brands and service names are the property of their respective owners.

www.coineltech.com - 21 -