Keil Logo

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 low for 2 mSec (pin 8 on the OCDS and ST JTAG Interface).
  3. ULINK2 stops the device.
  4. If Project — Options — Debug — Load Application at Startup is enabled, then ULINK2 downloads the code to the target and performs a Reset Sequence.
  5. If the text box Project — Options — Debug — Initialization File contains an initialization script, then the debug commands in this script file are processed.

For ARM Devices:

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

Related Knowledgebase Articles

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.