nrf51822应用经验杂烩

本文分享了使用Keil uVision5破解过程中遇到的问题及解决方法,包括选择cotex-Mstandard破解lic以通过编译,以及如何针对51822芯片的rev3版本烧写softdevice8.0等实战经验。

曾经认真的做过一段时间,虽然最后结果不咋地,但经验是真的。

keil uvision5 不熟悉,选择 cotex-M professional的破解,编译不过,总说product not defined ,改
cortex-M standard的破解lic,过了。

51822芯片换成rev3的版本,才能烧写softdevice 8.0,这是问了好久找了好久才发现的问题,这个版本的softdevice有了一些新的特性,非rev3 版本的芯片不能用,否则rev1/2的烧进去了也是跑不动。

sdk 9.0的bootloader是 以51422 XXAC为目标芯片的,其ram为32kB。 转为适配XXAA(ram16K)的51822的方法是:
不要,坚决不要修改target,就保持51422 XXAC,
但是----rom和ram按照51822的真实情况来设置:
IROM start: 0x3C000 size: 0x3C00
IRAM1 start:0x20002C00 size:0x1380
IRAM2 start:0x20003F80 size:0x80(NoInit checked)
    整个工程在project options里就改这个地方和 borad宏定义。工程代码基本不改动,尤其是不需要改动stack 和heap

就当每个芯片都有坑爹之处吧。想当年用个台湾的阉割版单片机片子,文档上说short型是16位,但实际上仍然是最大255,导致某个老兄一个晚上先重装开发环境,后重装电脑,然后精力不济病倒仍然没搞定。。。

最大连接时间,最小连接时间,这些参数对于传输频率什么的影响非常大。


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、付费专栏及课程。

余额充值