CoLinkEx JTAG/SWD adapter USER MANUAL rev. A Website: www.bravekit.com
Contents Introduction... 3 1. Features of CoLinkEX adapter:... 3 2. Elements of CoLinkEx programmer... 3 2.1. LEDs description.... 4 3. JTAG interface... 4 4. SW interface... 5 5. JTAG connector pins numbers... 5 6. CoLinkEX schematic... 6 7. How to supply target board from CoLinkEx... 7 8. Installation of CoLinkEx... 8 8.1. Install the Driver of CoLinkEx... 8 8.2. Connect CoLinkEx to PC... 10 9. Update the firmware... 10 10. Use CoLinkEX... 11 10.1. How to use CoLinkEx in CoIDE... 11 10.2. How to use CoLinkEx in CoFlash... 14 10.3. How to use CoLinkEx in MDK... 15 2
Introduction CoLinkEx is a hardware-debugging adapter, which supports SW debugging and supports ARM Cortex M devices, it supports debugging in CooCox software and Keil RealView MDK. Main features of LPC1343-HB module. In addition, ColinkEx can supply target board with 3.3V or 5V via JTAG connector 1. Features of CoLinkEX adapter: Support JTAG and SW interfaces for Cortex-M microcontrollers Supported in Coocox IDE (COIDE) and Keil RealView MDK (with plugin) USB-B connector Support firmware upgrade via USB Standard 20-pin JTAG connector Can supply target board with 3.3V or 5V via JTAG connector 4 LEDs for status of programmer Compact size 55х55х18mm 2. Elements of CoLinkEx programmer BUSY LED USB bootloader jumper, JP1 3V3 jumper for supply target board Connect LED ERROR LED USB connector PWR LED 3V3 voltage regulator 3V3 jumper for supply target board 3
2.1. LEDs description. CoLinkEx programmer have four LEDs for status indication PWR show status of programmer power supply Connect status of connection to USB BUSY this LED is ON if programmer in debug mode ERROR this LED is ON if any error is occur 3. JTAG interface CoLinkEx have a standard JTAG connector. The JTAG connector is a 20 way Insulation Displacement Connector (IDC) keyed box header (2.54mm male) that mates with IDC sockets mounted on a ribbon cable The following table lists the CoLinkEx JTAG pinout. Pin Signal TYPE Description 1 3V3 OUT Power 3V3 output for supply target board from voltage regulator of CoLinkEx. Voltage on this pin available, if 3V3 jumper is closed 2,3,11,17 NC - This pin is not connected in CoLinkEx JTAG data input of target CPU. It is recommended that this pin is pulled to a 5 TDI output defined state on the target board. Typically connected to TDI of the target CPU. JTAG mode set input of target CPU. This pin 7 TMS output should be pulled up on the target. Typically connected to TMS of the target CPU JTAG clock signal to target CPU. It is recommended that this pin is pulled to a 9 TCK output defined state of the target board. Typically connected to TCK of the target CPU 13 TDO Input JTAG data output from target CPU. Typically connected to TDO of the target CPU. 15 RESET output Target CPU reset signal. Typically connected to the RESET pin of the target CPU, which is typically called "nrst", "nreset" or "RESET". 19 5V OUT Power This pin can be used to supply power to the target hardware. Voltage on this pin available, if 3V3 jumper is closed 4,6,8,10,12,14,16 GND Ground These pins connected to GND in CoLinkEx. They should also be connected to GND in the target system 4
4. SW interface CoLinkEx JTAG connector is also compatible to ARM.s Serial Wire Debug (SWD). Pin Signal TYPE Description 1 3V3 OUT Power 3V3 output for supply target board from voltage regulator of CoLinkEx. Voltage on this pin available, if 3V3 jumper is closed 7 SWDIO Input/Output Single bi-directional data pin. A pull-up resistor is required. ARM recommends 100 kohms 9 SWCLK Output Clock signal to target CPU. It is recommended that this pin is pulled to a defined state on the target board. Typically connected to TCK of target CPU. 13 SWO Output Serial Wire Output trace port. (Optional, not required for SWD communication.) These pins connected to GND in CoLinkEx. 4,6,8,10,12,1 GND Ground They should also be connected to GND in the 4,16 target system 5. JTAG connector pins numbers Numbers of JTAG connector pins showed on photo below 3 1 19 2 4 20 5
6. CoLinkEX schematic 6
7. How to supply target board from CoLinkEx With CoLinkEx adapter, you can supply target board with 3.3V/400mA or 5V/400mA via JTAG connector. 3V3 jumper 5V jumper 7.1. Power supply with 3.3V For using this function, you must close 3V3 jumper. In this case, 3.3V from on-board voltage regulator will be connected to pin 1 of JTAG connector. On target board 3.3V power supply bus must be connected to pin 1 of JTAG connector. 7.2. Power supply with 5V For using this function, you must close 5V jumper. In this case, 5V from USB will be connected to pin 19 of JTAG connector. On target board, 5V power supply bus must be connected to pin 19 of JTAG connector. 7
8. Installation of CoLinkEx 8.1. Install the Driver of CoLinkEx You can download driver from http://www.coocox.org/colinkex.htm Do the operations shown in the following picture 8
9
8.2. Connect CoLinkEx to PC When you connect CoLinkEx to PC, it will ask you to install the driver to system for the new detected devices. Then you may need to specify the path for CoLinkEx Driver. 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 installed to the system or install failed; if there isn t CooCox Port, it means that your CoLinkEx firmware and driver is old version. 9. Update the firmware You can download firmware from http://www.coocox.org/colinkex.htm How to update the firmware: 9.1. Short-circuit JP1 (activation of USB bootloader) 9.2. Connect CoLinkEx to the PC. Wait for the PC enumerates the removable disk whose label is "CRP2 ENABLD" or "CRP DISABLD". If it does not, you could press the reset button (BP1) for several times or power on again. 9.3. Delete the firmware.bin file in removable disk 9.4. Copy the downloaded firmware: ColinkEx_firmware_v0.4.bin into the removable disk 9.5. Disconnect JP1, power on again, then CoLinkEx will work normally 10
10. Use CoLinkEX Now CoLinkEx support CoIDE, CoFlash and CoMDKPlugin. The following is the configuration to use CoLinkEx in this software 10.1. How to use CoLinkEx in CoIDE After create CoIDE Project, click Debug Configuration button 11
In debug configuration page, select CoLinkEx, and set other parameters In Download page, configure the flash algorithm 12
After compile the project, click the download button to Download code to Flash Click Debug button to debug the program. 13
10.2. How to use CoLinkEx in CoFlash Open CoFlash, select a chip, e.g. (LPC11C14x301 from NXP), then select CoLinkEx in the adapter; modify the Port, Max Clock for the adapter if you need. You can refer to the following picture Switch to Download page to execute Download, Erase, Verify, Blank Check, etc 14
10.3. How to use CoLinkEx in MDK Before using CoLinkEx in Keil MDK you must install «CoLinkEx plugin for MDK» from http://www.coocox.org/colinkex.htm Open MDK Project, Click Target options to configure the project Debug -> Use, open the configuration dialog and selects "CooCox Debugger". 15
Click "Settings", and then select the CoLinkEx as the adapter. You can also modify the Port, Max Clock for the adapter, Reset, Cache, Trace or Semihosting Options, etc. Switch to Flash Download to set the flash options and the flash algorithm. 16
Then, if you debug your program in flash, you also have to configure "Utilities" by selecting "CooCox Debugger" for Flash Programming Now you can use CoLinkEx to download and debug in MDK 17