UM AT-Link Console Programmer EN
UM AT-Link Console Programmer EN
UM0006
User Manual
Introduction
This user manual gives an overview of AT-Link Console. AT-Link Console is a command-line
application based on AT-Link. With the help of this software, users can configure ARTERY MCU
devices through SWD ports.
Applicable products:
AT32F403
AT32F413
AT32F415
AT32F403A
AT32F407
AT32F435
AT32F437
AT32F425
AT32WB415
AT32L021
Contents
1 Introduction ............................................................................................................ 5
2 Installation .............................................................................................................. 6
List of tables
Table 1 List of command line parameters ............................................................................................ 8
Table 2 List of return codes................................................................................................................ 10
Table 3. Document revision history.................................................................................................... 13
List of figures
Figure- 1 Command line window ......................................................................................................... 7
Figure- 2 Batch file processing ............................................................................................................ 7
Figure- 3 Flow chart ........................................................................................................................... 12
1 Introduction
Environmental requirements
Software resources
Windows 7 and above.
Software version below 3.0.00, .Net framework 4.0 is required.
Software version 3.0.00 and above, .Net framework 4.6 is required.
No driver is required when using AT-Link debugger.
Hardware resources
AT-Link debugger
USB communication port.
Glossary
AT-Link debugger
AT-Link is a debugger, released by ARTERY, for the sake of MCU development.
2 Installation
Hardware installation
Step 1: Connect AT-Link debugger to the USB port of PC.
Step 2: Connect AT-Link debugger to the ICE interface of the target evaluation board.
Software installation
This software doesn’t need to be installed, just run the executable program directly.
3 Software operation
Operating mode
Mode 1: Input parameters on the command line
Mode 2: Batch file processing (Refer to DFU_download.bat for details on common operations)
Set device, e.g AT32F403ARGT7. You must set device when the
-device
device access protection.
-e Erase flash.
--sec n-m Erase selected sectors, begin sector-end sector, e.g 0-20.
Full path name (bin, hex file; the file type is recognized by its
--fn file_name
extension).
-uble Upload BLE molule mian code space flash contents to the specified file.
Full path name (bin, hex file; the file type is recognized by its
--fn file_name
extension).
--fn file_name Full path name (bin/hex file; the file type is recognized by its extension).
--efap1 Enable access protection, all options following this one will fail.
Enable high level access protection, all options following this one will
--efap2
fail.
If the MCU is AT32F425/L021, you must enter "--y" for confirmation.
--y
(--efap2 --y)
Get user system data from the device and write it in the specified file,
--get --fn file_name
full path name (bin/hex file, the file type is recognized by its extension).
Load user system data from the specified file and write it to the device,
--set --fn file_name
full path name (bin/hex file, the file type is recognized by its extension).
addr(hex) The address of the data to be written, 32 bit address. e.g 20000000.
value(hex) The value of the data to be written, 32 bit data. e.g 00112233.
addr(hex) The address of the data to be written, 32 bit address. e.g 20000000.
value(hex) The value of the data to be written, 16 bit data. e.g 0011.
addr(hex) The address of the data to be read, 32 bit address. e.g 08000000.
addr(hex) The address of the data to be read, 32 bit address. e.g 08000000.
-r Reset and run. When MCU access protection, this command is invalid.
0x05 -uble Failed to upload BLE module main code space Flash contents.
0x06 -usd Failed to get user system data from the device.
0x0A -w4/-w2 Error occurred while writing data to the specified flash address
0x0B -mem32/-mem16 Error occurred while reading data from the specified flash address
0x34 -eble --all Failed to erase all sectors of BLE module Flash.
0x35 -eble –all --main Failed to erase all sectors of BLE main code space.
0x36 -eble --all --nvr Failed to erase all sectors of BLE NVR space.
0x37 -eble --all --rdn Failed to erase all sectors of BLE RDN space.
0x38 -eble --sec Failed to erase selected sectors of BLE main code space.
Start
When a SPIM is
nee ded
Ena ble SPIM
Era se Flash
Download
Per form
verifica tion
according to the
nee ds
Upload an d V erify
End
4 Revision history
Table 3. Document revision history
Date Revision Changes
2022/08/12 V2.05 1. Added return codes.
2022/07/15 V2.04 1. Added AT32L021 series.
2022/04/27 V2.03 1. Support reset and run.
2022/01/26 V2.02 1. Added AT32WB415CCU7-7
2022/01/04 V2.01 1. Added SPIM support.
2. Support disable/enable of the advanced access protection.
3. Support disable/enable of the programming protection.
4. Support upload feature.
5. Support direct read/write feature.
2021/11/26 V2.00 1. Initial release Support AT32F403/F413/F415/F421/F403A/F407/F435/F437.
2. Added AT32F425 series.
Artery’s products and services are provided “AS IS” and Artery provides no warranties express, implied or statutory, including, without
limitation, any implied warranties of merchantability, satisfactory quality, non-infringement, or fitness for a particular purpose with respect to
the Artery’s products and services.
Notwithstanding anything to the contrary, purchasers acquires no right, title or interest in any Artery’s products and services or any
intellectual property rights embodied therein. In no event shall Artery’s products and services provided be construed as (a) granting
purchasers, expressly or by implication, estoppel or otherwise, a license to use third party’s products and services; or (b) licensing the third
parties’ intellectual property rights; or (c) warranting the third party’s products and services and its intellectual property rights.
Purchasers hereby agrees that Artery’s products are not authorized for use as, and purchasers shall not integrate, promote, sell or
otherwise transfer any Artery’s product to any customer or end user for use as critical components in (a) any medical, life saving or life
support device or system, or (b) any safety device or system in any automotive application and mechanism (including but not limited to
automotive brake or airbag systems), or (c) any nuclear facilities, or (d) any air traffic control device, application or system, or (e) any
weapons device, application or system, or (f) any other device, application or system where it is reasonably foreseeable that failure of the
Artery’s products as used in such device, application or system would lead to death, bodily injury or catastrophic property damage.