<?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>Adding ARM math library to Segger&amp;#39;s nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29174/adding-arm-math-library-to-segger-s-nrf52-ble-projects---check-__fpu_present-compile-error</link><description>Hi there~. I tried Nordic&amp;#39;s FFT example (SDK 14.2) with a PCA10040 board. So I tried to add that FFT related codes in the heart rate peripheral example. I use the Segger&amp;#39;s Embedded Studio 3.30 (SES) on Windows 10 PC. 
 
 I compared the preprocessors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jan 2018 04:00:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29174/adding-arm-math-library-to-segger-s-nrf52-ble-projects---check-__fpu_present-compile-error" /><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115960?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 04:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe12d758-9f54-4288-8a74-c819f08c83ef</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Wow, you are my rescuer, Joakim! Case closed!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115959?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 09:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b2fd35-4e0a-44b0-89f8-9fc9a2646f5b</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Matthew!&lt;br /&gt;
Thanks for uploading your project.&lt;br /&gt;
Try including the &lt;code&gt;nrf.h&lt;/code&gt; headerfile in your &lt;code&gt;my_foo.c&lt;/code&gt; file (that it turn includes the &lt;code&gt;nrf52.h&lt;/code&gt;, which sets the &lt;code&gt;__FPU_PRESENT == 1&lt;/code&gt;), that should get rid of the error.&lt;br /&gt;
Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115958?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 04:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9543ef72-cf33-4242-a706-bf8dd64042f5</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Thanks guys! I have uploaded the project to the original picture. Can you take a look, please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115957?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 12:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b31ec0-ceb7-458d-9f19-87d479730b8a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;I&amp;#39;m haven&amp;#39;t been able to reproduce the error that you are seeing.&lt;br /&gt;
Maybe you could upload your project/main file so I can test your project?&lt;br /&gt;
Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115955?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2018 09:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa2ac31-63bb-401b-827c-43901b1f1b5c</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, Joakim.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you have the same problem as Matthew?
RE: Yes. I was using the NUS (Nordic UART Service) example and tried to combine the FFT example.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I observed the same compiler message.&lt;/p&gt;
&lt;p&gt;Can you try it on your side? Just like this question stated, I don&amp;#39;t want to add &lt;code&gt;__FPU_PRESENT&lt;/code&gt; in the preprocessor menu, either.&lt;/p&gt;
&lt;p&gt;-Regards, MANGO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115956?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2018 14:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae5c617-651b-407e-a1d3-1caf41a9fcd0</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi MANGO!&lt;br /&gt;
Do you have the same problem as Matthew?&lt;br /&gt;
I&amp;#39;m not aware of any other configurations, I couldn&amp;#39;t find anyone either.&lt;br /&gt;
I&amp;#39;ll see what I can find out and get back to you.&lt;br /&gt;
Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115954?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 04:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f5bfa9-4b09-40a3-8c57-05c54671df1b</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hello, Joakim.&lt;/p&gt;
&lt;p&gt;This looks strange. Both HRS project and FPU_FFT(S132) project uses the &lt;code&gt;nRF5_SDK_14.2.0_17b948a/components/device/nrf52.h&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and it is commonly defined that &lt;code&gt;#define __FPU_PRESENT 1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then why does the &lt;code&gt;#error &amp;quot;Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)&amp;quot;&lt;/code&gt; appear&lt;/p&gt;
&lt;p&gt;if I don&amp;#39;t manually define &lt;code&gt;__FPU_USED&lt;/code&gt; in the Embedded Studio&amp;#39;s preprocessor menu?&lt;/p&gt;
&lt;p&gt;Since both projects use the same &lt;code&gt;nrf52.h&lt;/code&gt; file, adding this looks unnecessary to me.&lt;/p&gt;
&lt;p&gt;Aren&amp;#39;t we missing other configuration difference between two projects?&lt;/p&gt;
&lt;p&gt;-Regards, MANGO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding ARM math library to Segger's nRF52 BLE projects - check __FPU_PRESENT compile error</title><link>https://devzone.nordicsemi.com/thread/115953?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 14:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73bd6378-63ca-49cc-adc0-2190582bc682</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi MatthewKYEO!&lt;br /&gt;
You should be able to find the #define __FPU_PRESENT  1 in the nrf52.h header file.&lt;br /&gt;
It should be set to 1 in your HRS example as well, but you can verify that it is.&lt;br /&gt;
Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>