<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IAR Library (v7.xx to v8.xx) compatibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39730/iar-library-v7-xx-to-v8-xx-compatibility</link><description>I am trying to build the writable_ndef_msg example from the nRF5_SDK_15.2.0. I am using IAR&amp;#39;e Embedded Workbench (ARM v8.30.1) and I get the following Linker Error: 
 Error[Lt009]: Inconsistent wchar_t size nfc_t4t_lib.o(nfc_t4t_lib_iar.a) and 1 other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Oct 2018 10:14:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39730/iar-library-v7-xx-to-v8-xx-compatibility" /><item><title>RE: IAR Library (v7.xx to v8.xx) compatibility</title><link>https://devzone.nordicsemi.com/thread/154039?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 10:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ed9b6ac-b79d-4ee1-82d5-fc7c3ec8fdb1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the &amp;quot;gcc&amp;quot; libraries with IAR 8. Excerpt from the SDK release notes:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Note for IAR 8 users:&lt;br /&gt;(Libraries for IAR 8 require wchar_t to be of size 32 bits while IAR 7 requires 16 bits).&lt;br /&gt; &lt;br /&gt;&lt;em&gt;To run a project using IAR 8, follow these intructions:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - Open the IAR project in IAR 8. The IAR workbench will automatically generate an IAR 8 compatible project file.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - If the project contains one of the precompiled libraries listed below, replace it with the IAR 8 compatible alternative&lt;/em&gt;&lt;br /&gt;&lt;em&gt; (there are no projects targeting nRF51 in this SDK).&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - Save the project.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - When building the project, you might get the warning: &amp;quot;The header file &amp;#39;cmsis_iar.h&amp;#39; is obsolete and should not be used. [...]&amp;quot;.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - The problem is described in DevZone post: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31123/iar-ewarm-8-22-1-complains-about-cmsis_iar-h"&gt;devzone.nordicsemi.com/.../iar-ewarm-8-22-1-complains-about-cmsis_iar-h&lt;/a&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; The solution is to remove all occurrences of #include &amp;lt;cmsis_iar.h&amp;gt;.&lt;/em&gt;&lt;br /&gt; &lt;br /&gt;&lt;em&gt;The affected libraries are:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - micro-ecc crypto:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR7: Includes library located in the folder named “…_iar\…”.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR8: Switch to using the library from the folder named “…_armgcc\…”.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - nrf_cc310, nrf_cc310_bl, and nrf_oberon:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR7: Includes the library where “_short_wchar_” is part of the file name.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR8: Switch to using the library with similar naming, but where the “short_wchar” is removed.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - Gazell, NFC Tag, and 802.15.4:&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR7: Includes the library where the file name ends with “_iar”.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; - IAR8: Switch to using the library with similar file name that ends with “_gcc”.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>