<?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>CPU stuck after starting debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102001/cpu-stuck-after-starting-debugger</link><description>Hello. 
 I&amp;#39;m using ncs2.4.0 and compiling my code for a custom board based on the nrf9160dk_ns and most of the times I start the debugger, the code starts at 
 
 DEFAULT_IRQ_HANDLER ( SPU_IRQHandler ) and it stays there. 
 
 How can I fix this? 
 
 Thank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jul 2023 11:52:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102001/cpu-stuck-after-starting-debugger" /><item><title>RE: CPU stuck after starting debugger</title><link>https://devzone.nordicsemi.com/thread/437232?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26258207-5898-4be3-92c0-e0958f1dc6cc</guid><dc:creator>diogodias</dc:creator><description>&lt;p&gt;ok, thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU stuck after starting debugger</title><link>https://devzone.nordicsemi.com/thread/437227?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84fe079-06cc-4a68-b70f-b7535ade42ce</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I got information from our developers on how to debug the SPU further:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;br /&gt;the DEFAULT irq handler does not produce enough information to be able to debug. RAMACCERR triggers if the SPU config is violated. To see where the PC is when the RAMACCERR triggers you need to cherry-pick this fix: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/11723"&gt;https://github.com/nrfconnect/sdk-nrf/pull/11723&lt;/a&gt; (with accompanying patches to TF-M). And enable logging with these Kconfigs: &lt;a href="https://github.com/SebastianBoe/fw-nrfconnect-nrf-1/commit/a912e335e725ab31bc282e90ddc2662086b6549e#diff-d083cad8c190cd70f8ac39cfa495d2e3be7088b264311f68e6e3a85ca5ed2be6R103"&gt;https://github.com/SebastianBoe/fw-nrfconnect-nrf-1/commit/a912e335e725ab31bc282e90ddc2662086b6549e#diff-d083cad8c190cd70f8ac39cfa495d2e3be7088b264311f68e6e3a85ca5ed2be6R103&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU stuck after starting debugger</title><link>https://devzone.nordicsemi.com/thread/437217?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38d90ce0-e795-4891-9f10-06a8efab37d0</guid><dc:creator>diogodias</dc:creator><description>&lt;p&gt;Hello.&lt;br /&gt;No, I tried 2 examples and it didn&amp;#39;t happen.&lt;br /&gt;Yes, my code has a bootloader.&lt;br /&gt;Yes, I tried unchecking the &amp;quot;Enable debug options&amp;quot; and it fixed the problem, however, I would like to have that option enabled.&lt;br /&gt;No, I don&amp;#39;t use USB.&lt;br /&gt;Sure, the registers:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7532.print.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU stuck after starting debugger</title><link>https://devzone.nordicsemi.com/thread/437184?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 09:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4789c08-f7c5-46ce-ba6a-f03c353fa4d2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you see the same issue for our examples as well?&lt;/p&gt;
&lt;p&gt;Does you code have a bootloader?&lt;/p&gt;
&lt;p&gt;Does your code work if you do not have debugging enabled?&lt;/p&gt;
&lt;p&gt;Do you use USB in your application or bootloader?&lt;/p&gt;
&lt;p&gt;Can you have a look at the SPU registers in the IRQ handler and give me a screenshot?&lt;br /&gt;Something like this:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0724.pastedimage1689758304241v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>