Table of Contents

Advertisement

AT-Link User Manual
UM0004
User Manual
AT-Link connector user manual
Introduction
This user manual is written to give a complete account of AT-Link connector that is designed to
make it easier and more convenient for users to carry out MCU programming and configurations.
Applicable products:
Type
ARTERY MCU family
2022.07.22
1
Ver 2.1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AT-Link MCU Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ARTERY AT-Link MCU Series

  • Page 1 This user manual is written to give a complete account of AT-Link connector that is designed to make it easier and more convenient for users to carry out MCU programming and configurations. Applicable products: Type ARTERY MCU family 2022.07.22 Ver 2.1.0...
  • Page 2: Table Of Contents

    AT-Link User Manual Contents Overview ......................... 6 Introduction....................... 6 Glossary ........................7 Hardware configuration ..................8 AT-Link ........................8 USB interface ....................... 8 Communication interfaces .................... 8 Power supply interface ....................9 LED and buzzer ......................9 Machine programming control interface..............10 Buttons ........................
  • Page 3 AT-Link User Manual Communication interfaces ..................17 Power supply interface ....................18 LED and buzzer ......................18 Machine programming control interface..............19 Buttons ........................19 Load capacity ......................19 AT-Link-ISO+ ......................20 Load capacity ......................20 Functional overview .................... 21 PC connection and driver installation ..............
  • Page 4 AT-Link User Manual List of tables Table 1. AT-Link specifications ..........................6 Table 2. AT-Link LED and buzzer status ....................... 9 Table 3. AT-Link-EZ LED status .......................... 12 Table 4. AT-Link-Pro LED and buzzer status ...................... 14 Table 5. AT-Link+ LED1 status ..........................19 Table 6.
  • Page 5 AT-Link User Manual List of figures Figure 1. AT-Link hardware appearance ......................8 Figure 2. AT-Link-EZ hardware appearance ....................... 11 Figure 3. AT-Link-Pro hardware appearance ...................... 13 Figure 4. AT-Link-ISO hardware appearance ..................... 16 Figure 5. AT-Link+ hardware appearance ......................17 Figure 6.
  • Page 6: Overview

    AT-Link User Manual Overview Introduction Artery AT-Link is an online/offline downloader (referred to as “AT-Link” in this document) that is stable, reliable, portable and easy-to-use. Its main features are shown in Table 1. Table 1. AT-Link specifications Standard Main features...
  • Page 7: Glossary

    Enhanced General Glossary  AT-Link ARTERY AT-Link connector.  This is an in-circuit programmer software that can be used for various functions by AT-Link.  This is an in-system programmer that supports write or erase operation to the chip. ...
  • Page 8: Hardware Configuration

    AT-Link User Manual Hardware configuration AT-Link AT-Link is a basic debugger and programmer that supports IDE online debugging, online/offline programming, USB to serial interface and other functions. Its hardware configuration includes: USB interface connected to PC, status LEDs, buzzer, buttons, machine programming control interface, communication interfaces (such as SWD, SWO, serial port, NRST and BOOT0) and power interfaces (3V3 and E5V).
  • Page 9: Power Supply Interface

    AT-Link User Manual Power supply interface  3V3 power supply interface: it is used as 3.3 V power output port to output 3.3 V.  E5V power supply interface: it is used as 5 V power output or input port. As output: when the USB interface is powered, it outputs about 4.7 V;...
  • Page 10: Machine Programming Control Interface

    AT-Link User Manual Machine programming control interface Machine programming control contains START, BUSY, PASS, and FAIL interfaces. The parameters include machine programming control enable, active level polarity, START active level pulse width and BUSY delay setup time, which can be programmed through ICP PC software and saved after power-off.
  • Page 11: At-Link-Ez

    AT-Link User Manual AT-Link-EZ AT-Link EZ is a simplified debugger and programmer, which can be used in conjunction with AT- START get-started board, or works with other circuit boards after being disassembled. It supports IDE online debugging, online programming, USG to serial interface and other functions. Its hardware configuration includes: Micro USB interface connected to PC, status LEDs, communication interfaces (such as SWD, SWO, serial port, NRST and BOOT0) and power interfaces (3V3 and E5V).
  • Page 12: Leds

    AT-Link User Manual LEDs LED1-LED4 are “connected” (red), “running” (green), “USB status” (blue), and “power” (orange) respectively.  LED1 is connection status LED that indicates connection state during online operation.  LED2 is running status LED that indicates running state during online operation. ...
  • Page 13: Usb Interface

    AT-Link User Manual Figure 3. AT-Link-Pro hardware appearance USB interface It is used to communicate with PC during online download and debugging or parameter configuration. It can also act as a power supply interface for AT-Link-Pro in offline mode. LCD touch screen display LCD screen is used to display information and for touch operations.
  • Page 14: Power Supply Interfaces

    AT-Link User Manual Power supply interfaces  VDD: used as power output or input port. As output: It outputs 3.0 V, 3.3 V or 1.62 V~5.0 V (customized), depending on the voltage − output range configured by ICP host or LCD touch screen −...
  • Page 15: Machine Programming Control Interface

    AT-Link User Manual Machine programming control interface Machine programming control contains START, BUSY, PASS, and FAIL interfaces. The parameters include machine programming control signal enable, active level polarity, START active level pulse width and BUSY delay setup time, which can be programmed in ICP PC software or LCD touch screen.
  • Page 16: At-Link-Iso

    AT-Link User Manual AT-Link-ISO AT-Link-ISO literally refers to the AT-Link with isolation protection feature. Thus it has the exact same function as that of AT-Link, and shows almost no difference when used in regular scenarios compared to AT-Link. AT-Link-ISO comes with enhanced isolation protection to ensure it is capable of isolating 1500V power supply and signals.
  • Page 17: At-Link

    AT-Link User Manual AT-Link+ AT-Link+ is an enhanced debugger and programmer that supports online/offline programming, IDE online debugging, USB to serial interface and other functions. Its hardware configuration includes: USB interface connected to PC, status LEDs, buzzer, buttons, machine programming control interface, communication interfaces (such as SWD, SWO, serial port, MULTI FUNC, NRST and BOOT0) and power interfaces (3V3 and E5V).
  • Page 18: Power Supply Interface

    AT-Link User Manual Figure 6. MULTI FUNC interface connected to AT32WB415 BLE module  NRST: It can be connected to the NRST reset pin of the target board to provide a hardware reset signal, and works with BOOT0 pin for auto boot mode switching during ISP offline download.
  • Page 19: Machine Programming Control Interface

    AT-Link User Manual Table 5. AT-Link+ LED1 status Working status Connected (red) Run (green) Buzzer Power-on initialization All LEDs blink once Short beep Idle state Mute IDE operation settings Mute IDE debugging stops Mute IDE debugging in progress Mute ICP configuration in progress Mute Online/offline download on-going Blink alternately...
  • Page 20: At-Link-Iso

    AT-Link User Manual AT-Link-ISO+ AT-Link-ISO+ literally refers to the AT-Link+ with isolation protection feature. Thus it has the exact same function as that of AT-Link+, and shows almost no difference when used in regular scenarios compared to AT-Link. AT-Link-ISO+ comes with enhanced isolation protection to ensure it is capable of isolating 1500V power supply and signals.
  • Page 21: Functional Overview

    AT-Link User Manual Functional overview PC connection and driver installation AT-Link is a USB composite device that integrates HID, WinUSB and CDC device types (V2 and above firmware supports WinUSB). It is connected to PC through a USB cable.  For win7 and older operating systems, a driver needs to be installed manually.
  • Page 22: Winusb Communication

    AT-Link User Manual Figure 10. Win10 system device manager recognition CDC devices recognized WinUSB device recognized WinUSB communication For the USB interface on AT-Link, the V1 revision AT-Link supports HID only, while the V2 revision supports WinUSB in addition to the HID. The Win 10 and newer operating systems provide better WinUSB support.
  • Page 23: Figure 11. Select Cmsis-Dap Debugger In Keil

    AT-Link User Manual Figure 11. Select CMSIS-DAP Debugger in KeiL Go to Debug Settings, you would see two “AT-Link” devices in the “Adater” box, and select “WinUSB” device. In “Port” drop-down list, select “SW “. In “Max Clock”, select 5 MHz and above to get the best AT-Link performance, as shown in figure 12: Figure 12.
  • Page 24: Iar Environment

    AT-Link User Manual Debugging:  Click on “Debug” button on the software to enter the debug mode, and follow Keil window for various operations. Figure 13. Keil debugging IAR environment AT-Link is applicable to IAR V7.10 and above only. Take IAR V8.3 as an example here. ...
  • Page 25: Figure 15. Select Swd Interface In Iar

    AT-Link User Manual Then, select “SWD” Interface in “Options-Debugger-CMSIS DAP”, as shown in Figure 15: Figure 15. Select SWD interface in IAR  Debug configuration For initial debug and download operation, a device dialog box would pop out (shown below). In this window, there are two AT-Link devices available.
  • Page 26: Icp Tool Operation

    ICP tool operation ICP PC software can be used to perform online operations such as memory download/read and parameter configurations on Artery MCUs, and to encrypt AT-Link files, as well as support online/offline configuration and monitoring, firmware upgrade, among others.
  • Page 27: Figure 18. Customize The Encryption Key

    AT-Link User Manual Figure 18. Customize the encryption key In ICP, click on “file-make encryption file”, enter the encryption key, then the firmware contents in the format of bin/hex/srec/s19 generated by tools such as Keil and IAR are translated into encrypted files in the format of benc/henc/senc.
  • Page 28: Parameter Settings

    AT-Link User Manual Parameter settings This section describes how to configure AT-Link parameters. Figure 21. Parameter settings window  Number of data storage area: This indicates the number of codes stored offline, which can be configured as 1/2/4/8/16, with their individual maximum capacity being 16/8/4/2/1 MB respectively.
  • Page 29: Online Operations

    AT-Link User Manual and the target board, it is advised to reduce the SWD speed if the distance is long. To take into account the programming quality, it is recommended to connect AT-Link and target board using a flat cable thicker than AWG28. Measuring at AWG28 cable, the line length is around 10 meters for 1MHz SWD, 5 meters for 2 MHz SWD, and 3 meters for 5 MHz SWD.
  • Page 30: Offline Operations

    Figure 24. Online operation Offline operations AT-Link supports also offline download, and works with the Hex Encryption function of Artery MCU to enable encrypted data transfer during offline programming. Data transfer can be original bin/hex/srec/s19 format or encrypted benc/henc/senc format;...
  • Page 31: Figure 25. Offline Programming Process

    AT-Link User Manual Figure 25. Offline programming process Data encrypted Encrypted transmission storage area Decryption Offline project configurations This page describes how to configure offline download, including configuration information, user system data and code. All the configuration contents are collectively referred to as an offline project.
  • Page 32 Access Protection after download cannot be enabled at the same time  Encryption transmit: The encrypted transfer is done through the Hex Encryption feature of Artery MCU to ensure data security.  Verify: Verify whether the downloaded data is correct. The hardware CRC is used during transfer encryption to ensure data security.
  • Page 33: Figure 27. Offline Download Window

    AT-Link User Manual Offline download status monitoring This page describes AT-Link offline download status monitoring and related configuration. Figure 27. Offline download window  Select offline download item: Because AT-Link can store multiple offline projects, users need to select one project to activate and download. If the activated project is deleted, users need to select it again.
  • Page 34: Firmware Upgrade

    ICP, users are prompted to perform auto upgrade. Figure 28. Auto firmware upgrade  Manual upgrade: Users can download the latest firmware in benc format on Artery official website, and select a firmware and upgrade it. Figure 29. Firmware manual upgrade...
  • Page 35: Figure 30. Typical Timing Diagram Of Machine Programming Control

    AT-Link User Manual Figure 30. Typical timing diagram of machine programming control START BUSY PASS FAIL START BUSY PASS FAIL (1)START active level pulse width (2)BUSY denounce delay setup time (3)Active low level 2022.07.22 Ver 2.1.0...
  • Page 36: Button Operations

    AT-Link User Manual Button operations After the offline project configurations are saved, select a project for offline download through buttons, without the need of ICP software. When AT-Link is in idle state, press and hold the key for 3s to switch between button free download mode and single download mode.
  • Page 37: Notes

    AT-Link User Manual Notes ISP interface offline download  Bootloader code mode must be selected and used to enable ISP download;  When FAP is enabled, after the debugger interface (SWD) is connected to the device, the bootloader fails to run, in this case, power-on reset must be performed. Therefore, if ICP is used to connect to the FAP-enabled device, it is impossible to perform ISP offline download.
  • Page 38: Revision History

    AT-Link User Manual Revision history Table 7. Document revision history Date Revision Changes 2021.09.02 2.0.0 Initial release 1. Added AT-Link+ and AT-Link-ISO+ descriptions. 2022.07.22 2.1.0 2. Added WinUSB description in the section of AT-Link. 2022.07.22 Ver 2.1.0...
  • Page 39 No license, express or implied, to any intellectual property rights is granted under this document. If any part of this document deals with any third party products or services, it shall not be deemed a license grant by ARTERY for the use of such third party products or services, or any intellectual property contained therein, or considered as a warranty regarding the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.

This manual is also suitable for:

At-linkAt-link-ezAt-link-proAt-link-iso

Table of Contents