<?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>nrf52840 FPU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76750/nrf52840-fpu</link><description>dear all 
 I use nrf52840 to compile a library with floating-point operation. I configured it in my *. Conf 
 CONFIG_ FPU = y, but we can&amp;#39;t find sqrtf, sinf, logf and so on. I know you can use these functions if you include math. H in keil. But how can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jun 2021 13:12:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76750/nrf52840-fpu" /><item><title>RE: nrf52840 FPU</title><link>https://devzone.nordicsemi.com/thread/317498?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 13:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120b3260-93b4-4392-a114-5d78a295d8f9</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try setting the following as well?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SSE=y&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which version of NCS are you using?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 FPU</title><link>https://devzone.nordicsemi.com/thread/317281?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 15:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d468775d-2b48-4921-ba50-711141458c45</guid><dc:creator>Liuguofeng</dc:creator><description>&lt;p&gt;Nice to meet&amp;nbsp; you Mrte&lt;/p&gt;
&lt;p&gt;I added it as you suggested。&lt;/p&gt;
&lt;p&gt;pri.conf&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_FPU=y&lt;br /&gt;# CONFIG_FPU_SHARING=y&lt;br /&gt;CONFIG_NEWLIB_LIBC=y&lt;br /&gt;# CONFIG_NEWLIB_LIBC_NANO=y&lt;br /&gt;CONFIG_CBPRINTF_FP_SUPPORT=y&lt;/p&gt;
&lt;p&gt;# Set CONFIG_NEWLIB_LIBC_FLOAT_PRINTF if printf should be able to print float&lt;br /&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;the problem remains unsolved。&lt;/p&gt;
&lt;p&gt;Here is my compilation error section&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624632967560v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Liuguofeng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 FPU</title><link>https://devzone.nordicsemi.com/thread/317206?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 11:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e62bd5fc-774a-4b4e-94d7-d095374ef656</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To enable floating point formatting you must set the following config:&lt;/p&gt;
&lt;pre&gt;CONFIG_CBPRINTF_FP_SUPPORT=y&lt;/pre&gt;
&lt;p&gt;Please add this to prj.conf and see if it fixes your issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>