蓝牙nrf51822使用s110_nrf51_8.0.0协议栈遇到的 下载问题

问题描述: 在例程中第一次烧录不会出错,当修改了源程序再次烧录时会出现

Programming Failed! Error: Flash Download failed  -  "Cortex-M0"

的错误。在Debug和Utilities配置中都没有错,代码编译也没有出错。


解决方法:在target里面修改,当再次烧录时 IROM1 区和 IRAM1区的起始地址和大小发生改变,改回来就行了,例如用的是s110_nrf51_8.0.0协议栈,协议栈大小为96k,那么IROM1起始地址为0x18000,大小0x28000,IRAM1 起始地址0x20002000 大小0x6000,不同的协议栈大小不同,改的值也不同,可以参考未修改过的官方例程里面的设置来配

s110_nrf51_8.0.0 The main features of this release are the ability to set the size of the GATT Server Attribute Table when initializing the BLE stack, the possibility for the application to be notified when the SoftDevice receives scan requests, and the ability to disable RF channels for advertising. Changes to CPU availability during radio events, DC/DC converter configuration, and PPI channel allocations have been made to take advantage of the nRF51 series IC revision 3. The BLE API has been aligned to that of the S120 SoftDevice. Notes: This is a major release which has changed the Application Programmer Interface (API), requiring applications to be recompiled. This SoftDevice version is not Production tested on all IC revisions, and is not compatible with nRF51 IC revision 1. Users of the SoftDevice must verify the compatibility of their SoftDevice/IC combination for development and for production. Compatibility information is found in the nRF51 Series Compatibility Matrix, which can be downloaded from the Nordic Semiconductor web page. SoftDevice properties The SoftDevice Specification corresponding to this release is the S110 SoftDevice Specification v2.0. This version of the SoftDevice contains the Master Boot Record (MBR) version 1.0.1. The combined MBR and SoftDevice memory requirements for this version are as follows: Flash: 96 kB (0x18000 bytes). RAM: 8 kB (0x2000 bytes) (default value - dependent upon configured size of the GATT Server Attribute Table). New functionality SoftDevice The application can now configure the amount of memory reserved for the GATT Server Attribute Table when initializing the BLE stack (DRGN-3744). Configuration is optional. By default, the RAM reserved for the Attribute Table will be 0x700 bytes. This is the same default allocation as in the S110 v7.1.0. GAP The application can now configure the SoftDevice to deliver events when scan request packets are received (DRGN-2880, NRFFOETT-281). The application can now selectively dis
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值