<?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>Debugging crashes after a few lines for every programm, even though pure execution works without issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112264/debugging-crashes-after-a-few-lines-for-every-programm-even-though-pure-execution-works-without-issues</link><description>When I try to debug a programm (build with &amp;quot;optimize for debugging&amp;quot; and debugging started by pressing &amp;quot;Debug&amp;quot; in VSCode) I get to the debug-view and can also go one or a few lines further (using e.g. Step-Over or Continue), but then the program crashes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2024 09:47:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112264/debugging-crashes-after-a-few-lines-for-every-programm-even-though-pure-execution-works-without-issues" /><item><title>RE: Debugging crashes after a few lines for every programm, even though pure execution works without issues</title><link>https://devzone.nordicsemi.com/thread/491060?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 09:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4b46e4c-85d5-49c0-ad47-0a68f8a7e650</guid><dc:creator>gdl</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging crashes after a few lines for every programm, even though pure execution works without issues</title><link>https://devzone.nordicsemi.com/thread/490629?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9268637-e181-44a2-bf1b-4eaec6fd0afe</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can repeated this issue if enable Optimize for debugging &amp;quot;-Og&amp;quot; option for building firmware then start Debug and run step over.&lt;/p&gt;
&lt;p&gt;The device will keep rebooting with following fatal error from TF-M debugging port.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Sec&amp;nbsp;Thread]&amp;nbsp;Secure&amp;nbsp;image&amp;nbsp;initializing!&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Booting&amp;nbsp;TF-M&amp;nbsp;v2.0.0&lt;br /&gt;&lt;/span&gt;&lt;span&gt;[DBG][Crypto]&amp;nbsp;Initialising&amp;nbsp;Mbed&amp;nbsp;TLS&amp;nbsp;3.5.2&amp;nbsp;as&amp;nbsp;PSA&amp;nbsp;Crypto&amp;nbsp;backend&amp;nbsp;library...&amp;nbsp;complete.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;FATAL&amp;nbsp;ERROR:&amp;nbsp;Reserved&amp;nbsp;Exception&amp;nbsp;0x0000000C&lt;br /&gt;&lt;/span&gt;&lt;span&gt;[Sec&amp;nbsp;Thread]&amp;nbsp;Secure&amp;nbsp;image&amp;nbsp;initializing!&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Booting&amp;nbsp;TF-M&amp;nbsp;v2.0.0&lt;br /&gt;&lt;/span&gt;&lt;span&gt;[DBG][Crypto]&amp;nbsp;Initialising&amp;nbsp;Mbed&amp;nbsp;TLS&amp;nbsp;3.5.2&amp;nbsp;as&amp;nbsp;PSA&amp;nbsp;Crypto&amp;nbsp;backend&amp;nbsp;library...&amp;nbsp;complete.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;FATAL&amp;nbsp;ERROR:&amp;nbsp;Reserved&amp;nbsp;Exception&amp;nbsp;0x0000000C&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have reported this error to our TF-M experts to see if this is a bug or not and will give you an update later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging crashes after a few lines for every programm, even though pure execution works without issues</title><link>https://devzone.nordicsemi.com/thread/490386?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 15:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251e5141-89c6-4710-8bf9-ad6a4c9d77b4</guid><dc:creator>gdl</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;br /&gt;&lt;br /&gt;I still have the same problem when running the uploaded project.&lt;br /&gt;(I decompressed the zip and opened it using Open Folder. For debugging i built it for &amp;quot;nrf9161dk_nrf9161_ns&amp;quot; with &amp;quot;Optimize for debugging (-Og)&amp;quot; as Optimization level.)&lt;br /&gt;(For some projects debugging works somewhat (for many lines, but not until the end) when additionally adding the compiler-flags in the CMakeLists.txt, but that doesn&amp;#39;t seem to make a difference for this project.)&lt;br /&gt;&lt;br /&gt;The serial terminal (when debugging the zipped project past first line) reads&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
Begin
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
Begin
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
Begin &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging crashes after a few lines for every programm, even though pure execution works without issues</title><link>https://devzone.nordicsemi.com/thread/489881?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 08:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54202bfc-0065-4cb4-b491-fc26826f4e6c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is common to see this kind of crash when you debug with time sensitive functions like BLE/Cellular IoT communication, but what you have seen for this hello world sample is unusual.&lt;/p&gt;
&lt;p&gt;I did a test with your codes on my setup, and I can successfully run it without crash. Just share my whole project here, could you test the following project and build for nrf9161dk_nrf9161_ns?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_debug.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_debug.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>