CoLinkEx_V1.1 User Manual - CooCox

coocox.org
  • No tags were found...

CoLinkEx_V1.1 User Manual - CooCox

Rev. 1.1 Release: 2012-08-21Website: http://www.coocox.orgForum:Technical:http://forum.coocox.orgmaster@coocox.comMarket:market@coocox.com1


1. Catalog1. Catalog ......................................................................................................................... 21. CoLinkEx Overview ...................................................................................................... 31.1 Introduction & Feature ........................................................................................... 32. Hardware Introduction .................................................................................................. 32.1 Overview ............................................................................................................... 32.2 Jumpers settings ................................................................................................... 42.3 SW/JTAG Debug Interface.................................................................................... 42.4 Mini USB Port ........................................................................................................ 42.5 LED ........................................................................................................................ 43. Getting Started ............................................................................................................. 53.1 Version Information ............................................................................................... 53.2 Hardware Source Requirement ............................................................................ 53.3 Preparation ............................................................................................................ 54. CoLinkEx Installation and Use ..................................................................................... 64.1Installation ............................................................................................................. 64.1.14.1.24.1.3Update the firmware ....................................................................................... 6Install the Driver of CoLinkEx ........................................................................ 7Connect CoLinkEx to PC ............................................................................. 104.2Use CoLinkEx ...................................................................................................... 124.2.1 How to use CoLinkEx in CoIDE ................................................................... 124.2.1 How to use CoLinkEx in CoFlash ................................................................ 154.2.2 How to use CoLinkEx in MDK ...................................................................... 185. How to use CoLinkEx to debug other devices ........................................................... 215.1 ARM SW/JTAG Interface .................................................................................... 215.2 Connection method ............................................................................................. 212


1. CoLinkEx Overview1.1 Introduction & FeatureCoLinkEx is a hardware debugging adapter which supports SW debugging and supportsARM Cortex M devices, it supports debugging in CooCox software and Keil RealViewMDK.Features:‣ Supports Cortex-M devices‣ Supports SW debugging‣ Supports JTAG debugging‣ Supports CoFlash, CoIDE, MDK and IAR2. Hardware Introduction2.1 OverviewID Description ID DescriptionD1 Red LED, Error status RESET Reset ButtonD2 Yellow LED, Connection J1 Micro-USB InterfaceD3 Blue LED, Busy status J2 10pin 2.54mm ARM JTAG/SW InterfaceJP1 Update Pin J3 10pin 2mm ARM JTAG/SW InterfaceJP2 Power Supply Pin J4 20pin 2.54mm ARM JTAG/SW Interface3


2.2 Jumpers settingsID Name Default Settings NoteJP1 UPDATE Open Allow user to update the firmware of CoLinkExwhen this jumper is closed.JP2 Power Open Connecting VCC pin of the ARM JTAG/SWInterface to +3V3.2.3 SW/JTAG Debug InterfaceCoLinkEx use ARM standard 20 pin, 2.54mm SW/JTAG Interface. Most target boardsupport this interface. The 10pin 2.54mm/2.0mm interface is also supported. You can usethe interface to debug ARM Cortex M devices. If your target doesn’t support these threeinterfaces, see: How to use CoLinkEx to debug other devices.2.4 Mini USB PortCoLinkEx communicate and get power from PC through this Mini USB AB interface.When you Installed JP2, CoLinkEx will give the power supply to the target board.2.5 LEDCoLinkEx provide 4 LEDs, They show the power status, error, connection, busystatus of CoLinkEx.4


3. Getting Started3.1 Version Information‣ Firmware: 0.4‣ Driver: 1.2.0(or 1.2.1)‣ Software:• CoIDE 1.4.0 or higher• CoFlash 1.4.0 or higher• MDK 4.03(or higher) plus CoMDKPlugin1.4.0 or higher3.2 Hardware Source RequirementWhen you use CoLinkEx, The PC is required to use the following sources: CPU: 2.0GHz (at least) Memory: 512M (at least) USB Interface: 1 (at least) Serial Line interface use COM1 Operation System: Windows XP/Windows Vista/Win 7 Software need: CoIDE, MDK, IAR(with CoMDKPlugin, CoIARPlugin)3.3 Preparation• Install CoIDE or the corresponding Plugin• Update the firmware and install the driver, Refer to: CoLinkEx Installation andUse• Jumpers’ setting: JP1, JP2 both OFF.• USB Connection: Using USB cable, one end plugged into the Mini USB port onthe CoLinkEx (J1), the other end connected to PC.5


4. CoLinkEx Installation and Use4.1InstallationTo install CoLinkEx, you need to do the following:Update the firmwareInstall the Driver of CoLinkExConnect CoLinkEx to PC4.1.1Update the firmwareIf you are using CoMDKPlugin V1.4.0, CoIDE V1.4.0, or CoFlash V1.4.0, you need to updateCoLinkEx driver and firmware before using CooCox CoLinkEx.The firmware can be found in the disk: Tools\ColinkEx_Driver\ColinkEx_firmware_v0.4.bin,you can also download it from: http://www.coocox.org/Colinkex.htm.How to update the firmware:1)Short-circuit JP1.2)Connect CoLinkEx to the PC.Wait for the PC enumerates the removable disk whose label is "CRP2 ENABLD" or "CRPDISABLD". If it does not, you could press the reset button (BP1) for several times or poweron again.Delete the firmware.bin file in removable disk.3)Copy the downloaded firmware: ColinkEx_firmware_v0.4.bin into the removable disk.4)Disconnect JP1, power on again, then CoLinkEx will work normally.6


4.1.2Install the Driver of CoLinkExYou need to select the version of CoLinkExUSBDriver according to your Windows OS first.The driver can also be downloaded from: http://www.coocox.org/Colinkex.htm.1) If you're using the 32 bit windows system, for example:Windows XP/Windows Vista 32bit/Windows 7 32bit.Installation file: Tools\ColinkEx_Driver\CoLinkExUsbDriver-1.1.0.exeDo the operations shown in the following picture.7


2) If you are using Windows Vista 64bit or Windows 7 64bit.Installation file: Tools\ColinkEx_Driver \ColinkExUsbDriver-1.1.1.exePlease connect CoLinkEx to the computer before you start installing this driver.9


4.1.3Connect CoLinkEx to PCWhen you connect CoLinkEx to PC, it will ask you to install the driver to system for thenew detected devices. Then you may need to specify the path for CoLinkEx Driver:10


After you installed the driver, in the device manager, you will found CooCox(COM x)under Port and CooCox CoLinkEx Debug Interface under USB Controller.If there is a “?” in front of the two devices, it means that the driver have not been installedto the system or install failed; if there isn’t CooCox Port, it means that your CoLinkExfirmware and driver is old version.11


4.2Use CoLinkExNow CoLinkEx support CoIDE, CoFlash 和 CoMDKPlugin. The following is theconfiguration to use CoLinkEx in this software.4.2.1 How to use CoLinkEx in CoIDE1)After create CoIDE Project, click Debug Configuration button:12


2)In “debug configuration” page, select CoLinkEx, and set other parameters.3)In Download page, configure the flash algorithm.13


4)After compile the project, click the download button to Download code to Flash5)Click Debug button to debug the program.14


4.2.1 How to use CoLinkEx in CoFlash1) Open CoFlash, select a chip, e.g. (LPC11C14x301 from NXP), then select CoLinkExin the adapter; modify the Port, Max Clock for the adapter if you need. You can refer tothe following picture.15


2) Switch to Download page to execute Download, Erase, Verify, Blank Check, etc.16


4.2.2 How to use CoLinkEx in MDK1) Open MDK Project, Click Target options to configure the project:2) “Debug -> Use”, open the configuration dialog and selects "CooCox Debugger".18


3) Click "Settings", and then select the “CoLinkEx” as the adapter. You can also modifythe Port, Max Clock for the adapter, Reset, Cache, Trace or Semihosting Options, etc.4) Switch to Flash Download to set the flash options and the flash algorithm.19


5) Then, if you debug your program in flash, you also have to configure "Utilities" byselecting "CooCox Debugger" for Flash Programming.6) Now you can use CoLinkEx to download and debug in MDK.20


5. How to use CoLinkEx to debug other devices5.1 ARM SW/JTAG InterfaceCoLinkEx’J4 is compatible with standard ARM 20 PIN SW/JTAG Interface; J2 and J3 arecompatible with the standard ARM 10 PIN SW/JTAG Interface.5.2 Connection methodIf your board doesn’t have the debug interface which CoLinkEx supported, you need toconnect the necessary pin by yourself. You can refer to the following table:Pin Function10-PIN SW/JTAG Interface 20-PIN SW/JTAG InterfaceVCC (Optional) 1 1SWDIO/TMS 2 7SWCLK/TCLK 4 9SWO/TDO (Optional) 6 13NC/TDI 8 5RESET 10 15GND 3,5,9 4,6,…20Note:1) If you don’t use CoLinkEx to supply voltage to target board, VCC can be notconnected.2) If you don’t need to use Trace function, SWO can be not connected.3) In SW debug, SWDIO, SWCLK, RESET, GND are necessary. In JTAG debug, all theabove pins except VCC are necessary.21

More magazines by this user
Similar magazines