zoukankan      html  css  js  c++  java
  • 使用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两个开发坏境是没有问题的。

  • 相关阅读:
    解决js跨域问题
    JS中如何使用Cookie
    js 概念(构造函数)
    js中this的用法
    ORA-00932:类型类型不一致
    记录一次使用 Comparator排序
    Element-ui Message消息提示限制弹出一次
    IDEA启动Tomcat的时候8080端口被占用(MyEclipse类似)
    JAVA中JSONObject对象和Map对象之间的相互转换
    MySQL笔记 【狂神说】
  • 原文地址:https://www.cnblogs.com/CodeWorkerLiMing/p/10578123.html
Copyright © 2011-2022 走看看