使用IAR在开发nordic问题记录
使用IAR在开发nordic的sdk的时候,官方有一段话
*****
Note for IAR 8 users:
(Libraries for IAR 8 require wchar_t to be of size 32 bits while IAR 7 requires 16 bits).
To run a project using IAR 8, follow these intructions:
- Open the IAR project in IAR 8. The IAR workbench will automatically generate an IAR 8 compatible project file.
- If the project contains one of the precompiled libraries listed below, replace it with the IAR 8 compatible alternative
(there are no projects targeting nRF51 in this SDK).
- Save the project.
- When building the project, you might get the warning: "The header file 'cmsis_iar.h' is obsolete and should not be used. [...]".
- The problem is described in DevZone post: https://devzone.nordicsemi.com/f/nordic-q-a/31123/iar-ewarm-8-22-1-complains-about-cmsis_iar-h
The solution is to remove all occurrences of #include <cmsis_iar.h>.
The affected libraries are:
- micro-ecc crypto:
- IAR7: Includes library located in the folder named “…_iar\…”.
- IAR8: Switch to using the library from the folder named “…_armgcc\…”.
- nrf_cc310, nrf_cc310_bl, and nrf_oberon:
- IAR7: Includes the library where “_short_wchar_” is part of the file name.
- IAR8: Switch to using the library with similar naming, but where the “short_wchar” is removed.
- Gazell, NFC Tag, and 802.15.4:
- IAR7: Includes the library where the file name ends with “_iar”.
- IAR8: Switch to using the library with similar file name that ends with “_gcc”.
*****
同时,官当sdk在下面的各个开发平台中进行验证,
,The following toolchains/devices have been used for testing and verification:
- ARM: MDK-ARM version 5.18a
- GCC: GCC ARM Embedded 6.3 2017-q2-update
- IAR: IAR Workbench 7.80.4 (IAR 8 - see note below)
- SES: SES 3.40
因此,今天特意在iar8编译hrs心率例程的时候,发现了wchar_在iar7和iar8是不同的,因此建议使用iar7.80.4进行开发比较妥当,与官方的sdk相匹配。keil的ses两个开发坏境是没有问题的。
最新文章
- spring boot 部署为jar
- AIDL使用解析
- 设置Android程序图标
- 【转】Flume(NG)架构设计要点及配置实践
- CSS笔记(十三)CSS3之过渡
- Objective-C:Foundation框架-常用类-NSDate
- poj 1797 Heavy Transportation(最短路径Dijkdtra)
- 【Android】如何使用安卓的logcat『整理』
- Django中的ORM进阶操作
- EasyUI Combotree 只允许选择 叶子节点
- Mysql数据库中 ,涉及事物,循环添加数据
- haproxy path_beg
- JavaSE高级1
- (二十六)svn的问题二
- 配置linux软件下载跟新地址
- Java基础 -- 深入理解泛型
- Windows10 VS2017 C++模拟点击按键
- 爬虫-day02-抓取和分析
- python六十一课——高阶函数之reduce
- [01-01] 示例:用Java爬取新闻