Keil™, An ARM® Company

ULINK®2 User's Guide

Start Sequence

ULINK2 performs a number of operations to begin debugging on a target system. The sequence of these operations depends on the target device and the configuration settings in the µVision IDE.

For OCDS and 8051 Devices:

  1. ULINK2 initializes the JTAG interface and detects the Chip ID.
  2. Some JTAG registers are programmed to Halt after Reset. In this case, ULINK2 drives the JTAG RESET output (pin 8 on the OCDS and ST connectors) low for 2 mSec.
  3. ULINK2 stops the device.
  4. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads the code to the target and performs a Reset Sequence.
  5. If the Project — Options — Debug — Initialization File text box contains the name of an initialization script, the debug commands in this script file are processed.

For ARM Devices:

  1. If Use Reset at Startup is enabled, ULINK2 drives the JTAG RESET output (pin 15 on the ARM JTAG connector, pin 8 on the OCDS and ST connectors) low for 50mSec.
  2. ULINK2 initializes the JTAG interface and detects the Chip ID.
  3. If Use Reset at Startup is enabled, ULINK2 performs a Reset Sequence.
  4. ULINK2 stops the device.
  5. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads the code to the target and performs a Reset Sequence.
  6. If the Project — Options — Debug — Initialization File text box contains the name of an initialization script, the debug commands in this script file are processed.

For Cortex-M Devices:

  1. ULINK2 initializes the JTAG/SW interface and detects the Chip ID. The HW RESET signal may be activated depending on the Connect option selected in Options — Debug — Settings.
  2. If Reset after Connect is enabled, ULINK2 performs a reset as defined by the Reset option selected in Options — Debug — Settings.
  3. ULINK2 stops the device.
  4. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads the code to the target and performs a reset as defined by the Reset option selected in Options — Debug — Settings.
  5. If the Project — Options — Debug — Initialization File text box contains the name of an initialization script, the debug commands in this script file are processed.