<?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>Enabling FPU causes device to reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115289/enabling-fpu-causes-device-to-reboot</link><description>I have this function that normalizes acceleration from IMU: 
 
 If I enable FPU 
 
 CONFIG_FPU =y 
 CONFIG_FPU_SHARING =y 
 
 device works for a while (10s of seconds) then reboots, if its commented out it works fine ? the issue seams to be with 
 
 sqrtf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2024 07:04:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115289/enabling-fpu-causes-device-to-reboot" /><item><title>RE: Enabling FPU causes device to reboot</title><link>https://devzone.nordicsemi.com/thread/505458?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 07:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd2634c-3a82-4304-8f16-74b80d3a58c6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Try this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Debugging configuration
CONFIG_THREAD_NAME=y
CONFIG_THREAD_ANALYZER=y
CONFIG_THREAD_ANALYZER_AUTO=y
CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y
CONFIG_THREAD_ANALYZER_USE_PRINTK=y

# Add asserts
CONFIG_ASSERT=y
CONFIG_ASSERT_VERBOSE=y
CONFIG_ASSERT_NO_COND_INFO=n
CONFIG_ASSERT_NO_MSG_INFO=n
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_THREAD_NAME=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also try the breakpoint on sys_reboot and starting your program in the debug mode to attempt to hit the breakpoint and looking at the function call stack to understand the context of the reboots. We need to get the context of reboot one way or the other to get a proper debugging direction here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling FPU causes device to reboot</title><link>https://devzone.nordicsemi.com/thread/505309?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 10:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3826318e-40bd-48b8-b5d9-ef0f8e0550b0</guid><dc:creator>IvanR</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;gives no info. Which logs options should I enable?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling FPU causes device to reboot</title><link>https://devzone.nordicsemi.com/thread/505289?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 09:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f280ef28-b134-43a0-9120-32fed6f82ce9</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]Any ideas why enabling FPU would cause it?&amp;nbsp; Thanks![/quote]
&lt;p&gt;It would be best to first understand the nature of the reboot. If it is a softreset, then you should be able to put a breakpoint in sys_reboot function, start the application in debugger and try to understand the context of this reboot. If it is hardfault then you should enable the more logs to catch some serial logs to get the nature of the hardfault.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>