ULINK: NO ALGORITHM FOUND FOR ADDRESS
Information in this article applies to:
ULINK USB-JTAG Adapter
ULINK2 USB-JTAG Adapter
Keil Development Suite for ARM any Version
QUESTION
I am trying to download my project into Flash via ULINK. ULINK seems to connect to the device, but a Message Box pops up and tells me:
No Algorithm found for Address 0x0000000
ANSWER
This error usually indicates that an appropriate algorithm was not chosen for the flash device. To add one in the Target configuration:
Open Options for Target - Utilities.
Choose the ULINK ARM Debugger and press Settings.
Press Add and choose the algorithm that fits y**ice. In case that the Address Range for the device is wrong select the algortihm and correct the Start and Size information.
Define the address spaces RAM for Algorithm and the Flash ROM area valid for the algorithm with Start and Size.
Note: you cannot use the command Flash - Download for RAM areas in your application. The RAM content will be downloaded when you start the debugger.
MORE INFORMATION
Getting Started for ARM User's Guide, Flash Programming
Refer to Flash Download Configuration in the ULINK User's Guide.
先看了几遍discovery的文档(《STM32F3系列探索套件开发板》、《STM32F3DISCOVERY外设固件例程库》),又找到了《Getting started with software and firmware environments for the STM32F3DISCOVERY Kit》(UM1562),然后下了stm32f3discovery_fw.zip,f303的datasheet 慢慢看,先把环境建一下吧,安装stm32_st-link_utility。
原来机器上有mdk4.5,不好用了,找到4.6安装文件直接运行,到最后问我是否要把4.5的配置导入,当然选ok,于是顺利升级成4.6,license不变。打开stm32f3discovery_fw的demo编译,通过。然后download,出错-_-b。
看了一下,发现这里Options的debug里的Use没有配置成“ST-Link Debugger”,遂改之: