<?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>GNU compiler flags for generating FPU assembly instructions for nrf5340 app core</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86057/gnu-compiler-flags-for-generating-fpu-assembly-instructions-for-nrf5340-app-core</link><description>Hi, 
 We are building an application on the nrf5340 application core. We noticed that library calls are being made to perform double precision floating point arithmetic which are NOT utilizing the FPU. What libraries should we be linking with to take</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2022 14:05:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86057/gnu-compiler-flags-for-generating-fpu-assembly-instructions-for-nrf5340-app-core" /><item><title>RE: GNU compiler flags for generating FPU assembly instructions for nrf5340 app core</title><link>https://devzone.nordicsemi.com/thread/359402?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 14:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9939d7df-f2c6-4605-b453-9e85a706c9dc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1-1/cmake/compiler/gcc/target_arm.cmake"&gt;this file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For Cortex M33 with single-precision FPU, the GCC flags should be:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-mfpu=fpv5-sp-d16
-mfloat-abi=hard&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GNU compiler flags for generating FPU assembly instructions for nrf5340 app core</title><link>https://devzone.nordicsemi.com/thread/359395?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 13:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d019618-9ccc-43d2-84f3-2c6718c8b193</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;Thanks Jorgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are using CMake and the GNU compiler but not the Zephyr build system.&amp;nbsp; Could you please confirm the actual arguments passed into the GCC compiler and what libraries to link with?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Kurt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GNU compiler flags for generating FPU assembly instructions for nrf5340 app core</title><link>https://devzone.nordicsemi.com/thread/359375?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 13:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c130d8e-3028-4e09-bf23-e2d547d3ef02</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try to enable the following Kconfigs in your prj.conf file?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_FPU.html"&gt;CONFIG_FPU&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_FPU_SHARING.html"&gt;CONFIG_FPU_SHARING&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>