<?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>NRF52 code stuck and restarted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93668/nrf52-code-stuck-and-restarted</link><description>Hello guys. 
 I am using a board based on the NRF52840 device. We run a code that we developed earlier and it was not well coded but working. it involves the interfacing of three to 4 different sensors interfaced based on SPI and I2c. All these sensors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Nov 2022 13:36:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93668/nrf52-code-stuck-and-restarted" /><item><title>RE: NRF52 code stuck and restarted</title><link>https://devzone.nordicsemi.com/thread/394712?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 13:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e4eaeac-522d-4721-a142-4ea8cc51b1f2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which exact SoftDevice version are you using?&lt;/p&gt;
&lt;p&gt;The screenshot here shows what I would expect to if pausing after jumping to main, as normally happens automatically when you debug. So this screenshot does not seem to indicate any issue (except if the reset was not expected?). The instruction address which is not a multiple of 4 looks a bit odd, but it likely just a Thumb instruction (in the SoftDevice in this case), which are 16 bits.&lt;/p&gt;
&lt;p&gt;As this looks like a reset, I would start by checking the RESETREAS to verify that it was a reset, and what the reset reason was. That should give a pointer to where to look next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>