<?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>sscanf causes fault on NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74697/sscanf-causes-fault-on-nrf9160</link><description>Hi, 
 I&amp;#39;m working in the asset tracker v2 project and currently I need to do a simple hex to char array conversion. This entails using sscanf. However the use of sscanf consistently produces a fault (z_arm_exc_spurious) even with the simple code below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 May 2021 17:53:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74697/sscanf-causes-fault-on-nrf9160" /><item><title>RE: sscanf causes fault on NRF9160</title><link>https://devzone.nordicsemi.com/thread/308614?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 17:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a39a673-4258-428c-bfff-ba65e6b63247</guid><dc:creator>Aidanv</dc:creator><description>&lt;p&gt;Thanks for the response. It turns out I had a large buffer that was likely exceeding the stack limitations and the sscanf was a red herring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sscanf causes fault on NRF9160</title><link>https://devzone.nordicsemi.com/thread/308018?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 20:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d1130da-92c0-4ebf-90fa-2ada0bd8fc55</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sscanf() is provided by newlib.&amp;nbsp;&lt;/span&gt;Try setting these&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NEWLIB_LIBC_FLOAT_SCANF=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>