keil_提示出错 cannot load flash programming algorithm !

用STM32开发板调试例程时(用的是JLINK),提示出错 cannot load flash programming algorithm !

遇到这种问题一般都是,Programming algorithm没有添加,或者添加错误,

添加步骤如下:

keil_提示出错 cannot load flash programming algorithm !_第1张图片

首先确认,下载器是stlink还是jlink,然后根据步骤1,2,3,4 选择合适的algorithm 就可以。

官方给出ARM调试提示解决方法:

http://www.keil.com/support/docs/2747.htm

RESOLUTION

The programming algorithm depends on the device. For example, when you are using the MCB2100 board with the Philips LPC2129 device, you need to select the algorithm as described below:

  1. Open the dialog Project — Options — Utilities.
  2. Select ULINK ARM Debugger and click Settings to open the Flash Download Setup dialog.
  3. In the Flash Download Setup dialog use the button Add and select the programming algorithm LPC2000 256KB Flash.
  4. Specify under RAM for Algorihtm Start: 0x40000000 and Size: 0x0800 since this is the valid address range for the RAM.

It is important that you setup the RAM for Algorithm to an available on-chip RAM space. The area shown above is correct for the Philips LPC2000 devices but it may be different for other devices.

 

但是自己在Project->Option->中已经添加了programming algorithm

还是报错, 试着降低下载的时钟频率,操作如下
 

1.Project->Option...->Debug->use:Settings
2.将Max JTAG clock 降低 即可。

这种方法是应该是下载时候收到干扰了,降低频率提高可靠性。

 

 

你可能感兴趣的:(stm32)