<?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>Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76702/can-keil-compiled-library-be-used-in-segger-embedded-studio</link><description>dear all 
 Can keil compiled library be used in segger embedded studio? For example, I have a paw8001_ ofn114009_ 12_ m4f_ keil.lib 
 Library, can I put it directly into NRF connect SDK project to compile? 
 Best Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 12:02:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76702/can-keil-compiled-library-be-used-in-segger-embedded-studio" /><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/319359?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 12:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270c77eb-6a8e-42c1-b6e0-cb075f8754bd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please open a new case for this question as it is not directly related to the original topic. (Also, I will be OoO from three weeks from today and unable to reply.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/319257?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 02:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f490b09-6066-46bf-a5a3-5e7ac6d6f3ff</guid><dc:creator>Liuguofeng</dc:creator><description>&lt;p&gt;dear Einar Thorsrud&lt;/p&gt;
&lt;p&gt;&amp;nbsp;By the way&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I encountered a strange problem with mcuboot in ncs1.6.0, and the program has been running for a long time&amp;nbsp; to FIH_PANIC&amp;nbsp; and&amp;nbsp;It&amp;#39;s not going to work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; FIH_CALL(boot_go, fih_rc, &amp;amp;rsp);&lt;br /&gt;&amp;nbsp; if (fih_not_eq(fih_rc, FIH_SUCCESS)) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; BOOT_LOG_ERR(&amp;quot;Unable to find bootable image&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; FIH_PANIC;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1625796114530v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please ask what causes this？&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/318950?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 10:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11ffe2b2-91dc-49bf-89ef-b59aaf180be6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is good you have a work around, but it seems odd.&amp;nbsp;I agree this seems like a compiler issue. I am not able to find any reference to this, but perhaps it is worth testing a different GCC version (though the workaround seems fair enough).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/318745?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 09:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea6c04d-da99-4190-a4a5-8e8913e11eca</guid><dc:creator>Liuguofeng</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I put the config_ COMPILER_ Opt = - LM &amp;quot;into my pri.conf, the problem still exists,&amp;nbsp;But there&amp;#39;s one amazing thing，When I put the following code in *. C,Even though I don&amp;#39;t make any calls。The compilation is successful。&lt;/p&gt;
&lt;p&gt;It looks like there&amp;#39;s something wrong with the compiler。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#include &amp;lt;math.h&amp;gt;&lt;/p&gt;
&lt;p&gt;#if(1)&lt;br /&gt;int compare(const void *, const void *);&lt;br /&gt;void test(void)&lt;br /&gt;{&lt;br /&gt; const char *a[10] = {&amp;quot;enter&amp;quot;, &amp;quot;number&amp;quot;, &amp;quot;size&amp;quot;, &amp;quot;begin&amp;quot;, &amp;quot;of&amp;quot;, &amp;quot;cat&amp;quot;, &amp;quot;case&amp;quot;,&amp;quot;program&amp;quot;,&amp;quot;certain&amp;quot;,&amp;quot;a&amp;quot;};&lt;br /&gt; float op;&lt;br /&gt; float result;&lt;br /&gt; op = 0.08;&lt;br /&gt; result= sqrtf(op);&lt;br /&gt; result= log10f(op);&lt;br /&gt; result= expf(op);&lt;br /&gt; result= cosf(op);&lt;br /&gt; qsort(a, 10, sizeof(a[0]), compare);&lt;br /&gt; result= tanf(op);&lt;br /&gt; result= sinf(op);&lt;br /&gt; result= logf(op);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;int compare(const void *c, const void *d)&lt;br /&gt;{&lt;br /&gt; int m,n,r;&lt;br /&gt; char **a, **b; // !!&lt;br /&gt; a = (char **)c;&lt;br /&gt; b = (char **)d;&lt;br /&gt; m = strlen(*a);&lt;br /&gt; n = strlen(*b);&lt;br /&gt; r = m - n;&lt;br /&gt; if (r != 0)&lt;br /&gt; return r;&amp;nbsp;&lt;br /&gt; return memcmp(*a,*b,m);&amp;nbsp;&lt;br /&gt;}&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/317601?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c10507-01f0-41b7-95d2-bcb7317b9f66</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you attempted to build with&amp;nbsp;&lt;code&gt;CONFIG_COMPILER_OPT=&amp;quot;-lm&amp;quot;&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;(In SES you add compiler options by clicking &lt;em&gt;Extended Settings&lt;/em&gt; in the dialog&amp;nbsp; you get from Open nRF Connect SDK Project..., and then add it under&amp;nbsp;&lt;em&gt;Extra CMake Build Options&lt;/em&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/317290?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 15:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba7e95e-3190-4d70-b05e-7cc4ac437556</guid><dc:creator>Liuguofeng</dc:creator><description>&lt;p&gt;My current library just uses floating point operations，The device IC is nrf52840, my pri.conf is&amp;nbsp;&lt;br /&gt;CONFIG_FPU=y&lt;br /&gt;CONFIG_NEWLIB_LIBC=y&lt;br /&gt;CONFIG_CBPRINTF_FP_SUPPORT=y&lt;br /&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;/p&gt;
&lt;p&gt;but&amp;nbsp;There are many such errors when compiling the library&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624633991538v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Are there any good suggestions for me to solve these problems ？&lt;/p&gt;
&lt;p&gt;I found these functions in math. H, but I can&amp;#39;t use them&lt;/p&gt;
&lt;p&gt;It seems to have something to do with this condition&lt;/p&gt;
&lt;p&gt;#if __ISO_C_VISIBLE &amp;gt;= 1999&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624634217726v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624634411984v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/317172?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 09:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:032197b4-3c4b-4c7d-8457-c96db207410a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, that should be no problem (but note that it must map the IC you use. For instance if the library is built to use floating point instructions you cannot use it with nRF5 devices that does not have and FPU, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/317098?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 02:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b2a22b5-fa29-4faa-8d77-b2a4b6cdb552</guid><dc:creator>Liuguofeng</dc:creator><description>&lt;p&gt;Thank you very much for your reply. If I use GCC library, is that ok?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can keil compiled library be used in segger embedded studio?</title><link>https://devzone.nordicsemi.com/thread/316965?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 11:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4583e2-d031-4cf2-b661-6ec63e1b7564</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, that will not work, primarily because of different wchar size between Keil and GCC (which is used by SES).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>