keil_提示出错 cannot load flash programming algorithm !

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

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

添加步骤如下:

首先确认,下载器是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 降低 即可。

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

 

 

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值