<?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>How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121860/how-to-debug-lwm2m_client-sample-on-thingy91-development-kit</link><description>Our company is in the process of developing a new IoT product for LTE-M and NB-IoT. The sample application lwm2m_client runs fine on our devkits nRF9151DK &amp;amp; Thingy91 and connects fine with Leshan, AVSystems and nRFCloud. UART console of both devkits show</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jun 2025 07:28:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121860/how-to-debug-lwm2m_client-sample-on-thingy91-development-kit" /><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539647?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 07:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b36d4e-aba9-41d4-b2ed-dead47d1b32e</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Could you please eleborate a little bit more what it dies and why it fixes the issue in this case on the Thingy91?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539640?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 06:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d346893-466e-493d-a50c-8cf5bc69faca</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="cellular_iot"]Debugging is working:[/quote]
&lt;p&gt;This is great to hear. Thank you for the update.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539552?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 12:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47809650-c97c-4ada-81cc-d63b6a437810</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for that -&amp;nbsp;&lt;span&gt;CONFIG_TFM_CMAKE_BUILD_TYPE_MINSIZEREL=y&amp;nbsp;seemingly is fixing the issue with blinky in Thingy91:&lt;br /&gt;&lt;br /&gt;Debugging is not working:&lt;br /&gt;&lt;img style="height:auto;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x0/__key/communityserver-discussions-components-files/4/2025_2D00_06_2D00_17-14_5F00_37_5F00_22_2D00_.jpg" width="1040" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugging is working:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="height:auto;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x0/__key/communityserver-discussions-components-files/4/2025_2D00_06_2D00_17-14_5F00_34_5F00_42_2D00_.jpg" width="1040" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539487?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 08:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b0c006-c4b8-4a0a-a9ab-838c83d4f923</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you try to set&amp;nbsp;&lt;span&gt;CONFIG_TFM_CMAKE_BUILD_TYPE_MINSIZEREL=y in your project configuration?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539327?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 08:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6b8ce7-f295-454c-a192-c72f679ee256</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Like this?&lt;br /&gt;&lt;img style="height:auto;max-width:600px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1200x0/__key/communityserver-discussions-components-files/4/2025_2D00_06_2D00_16-10_5F00_16_5F00_04_2D00_Clipboard.jpg_2D00_2080x0.jpg" width="600" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Outcome is the same - stuck in&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRFX_ASSERT&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;!&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;p_reg&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;FLASHREGION&lt;/span&gt;&lt;span&gt;[region_id].&lt;/span&gt;&lt;span&gt;PERM&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt; SPU_FLASHREGION_PERM_LOCK_Msk));&amp;nbsp;&lt;/span&gt;in nrf_spu_flashregion_set()&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img style="height:auto;max-width:1000px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2000x0/__key/communityserver-discussions-components-files/4/2025_2D00_06_2D00_16-10_5F00_19_5F00_01_2D00_.jpg" width="1000" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/539324?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 08:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c04ee9-af7b-4540-b0bd-96407fe35469</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you try to add debug optimizations also for the application using&amp;nbsp;&lt;br /&gt;-Dblinky_CONFIG_DEBUG_OPTIMIZATIONS=y?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538762?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 07:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aedf327-cb4b-4b06-aafb-9e516697a295</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="cellular_iot"]I now had a similiar issue when I tried to debug lwm2m_client sample on nRF9151DK. replacing -Og with -Os did&amp;nbsp;fix it for now, I could debug main() of the app.&amp;nbsp;[/quote]
&lt;p&gt;Thank you for letting me know. I have reported this internally as well.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538623?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 09:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac8b994-1c51-431c-92ad-881d49188bc8</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Thanks and looking forward!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538621?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 09:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7504aa7f-469b-4e15-90a4-7811e16301c5</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;BTW: I now had a similiar issue when I tried to debug lwm2m_client sample on nRF9151DK. replacing -Og with -Os did&amp;nbsp;fix it for now, I could debug main() of the app.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538620?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2025 09:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc841831-4237-415c-b8c0-77bc82b6d928</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have tried to replicate debugging issue that you reported.&amp;nbsp;&lt;/p&gt;
[quote user="cellular_iot"]And what helps reliably is to disable &amp;quot;optimize for debug (-Og), use -Os and manually add cmake argument&amp;nbsp;-DCONFIG_DEBUG_THREAD_INFO=y[/quote]
&lt;p&gt;There seems to be a problem when debug optimization is included in the project build configuration in VS Code. I have reported this internally. I expect to get back to you with status update by the end of the week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538280?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 15:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b80fc6f-22ac-40de-adf3-7da44e364147</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;when I try to debug the sample&amp;nbsp;lwm2m_client, it works as expected on the nRF9151DK and not on the thing91, mostly the&amp;nbsp;CPU&amp;nbsp;spins endless in the &amp;quot;flash is not locked&amp;quot; assertion like here:&lt;br /&gt;&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/pastedimage1749135985172v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;So it looks like the larger the app the higher the chance the debug setup is breaking&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538278?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 14:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38c663b-99ec-415e-830f-cabf38c81d09</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Now lets create and build a thingy91 debug version:&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/pastedimage1749133747125v2.png" alt=" " /&gt;&lt;br /&gt;And&amp;nbsp; lunch the debugger:&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/pastedimage1749133864848v3.png" alt=" " /&gt;&lt;br /&gt;Now the CPU doesnt hit the apps main():&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/pastedimage1749134140984v5.png" alt=" " /&gt;&lt;br /&gt;single stepping is not working:&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/pastedimage1749134204395v6.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Oh wow, after several atempts to F10/F5 this time I get a blinking board and a UART output:&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/pastedimage1749134583396v8.png" alt=" " /&gt;&lt;br /&gt;- but the call stack is not showing&amp;nbsp;app&amp;nbsp;threads and I cannot single step&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749134566320v7.png" alt=" " /&gt;&lt;br /&gt;After stopping the debugger, reflashing, attach debugger it looks like this - that the exception/assertion I see most often when I try to debug the lwm2m_client sample on the thingy91:&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/2025_2D00_06_2D00_05-16_5F00_50_5F00_39_2D00_nrf_5F00_spu.h-_2D00_-blinky-_2D00_-Visual-Studio-Code.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;And what helps reliably is to disable &amp;quot;optimize for debug (-Og), use -Os and manually add cmake argument&amp;nbsp;-DCONFIG_DEBUG_THREAD_INFO=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538266?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 14:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813a3410-983f-4097-9c93-ae3438701037</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Now the good version using Thingy91.&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/WhatsApp-Image-2025_2D00_06_2D00_05-at-16.19.52.jpeg" /&gt;&lt;br /&gt;&lt;br /&gt;Lets create a non debug in build_60:&lt;br /&gt;&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/pastedimage1749133272036v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;flash it:&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/pastedimage1749133586939v6.png" alt=" " /&gt;&lt;br /&gt;It blinks and UART output is working:&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/pastedimage1749133615192v7.png" alt=" " /&gt;&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/pastedimage1749133648244v8.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538263?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 14:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd5b42ba-6c55-4076-922f-a41646ef5029</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Ok, lets first show the good version using the nRF9151DK:&lt;br /&gt;New VSCode Window:&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/pastedimage1749132074531v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;create new app, copy sample from &amp;quot;nrf/samples.../blinky&amp;quot;&lt;/p&gt;
&lt;p&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/pastedimage1749132119675v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1749132149886v3.png" alt=" " /&gt;&lt;br /&gt;created in c:\blinky&lt;/p&gt;
&lt;p&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/pastedimage1749132238303v4.png" alt=" " /&gt;&lt;br /&gt;nrf connect/application/blinky/add build configuration:&lt;br /&gt;- sdk &amp;amp; toolchain v3.0.1&lt;br /&gt;- board: nrF9151dk/nRF9151/ns&lt;br /&gt;- prj.conf&lt;br /&gt;- optimize for debugging (-Og)&lt;br /&gt;- Build directory name:&amp;nbsp;build_51_dbg&lt;br /&gt;&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/pastedimage1749132475325v6.png" alt=" " /&gt;&lt;br /&gt;- click: generate and build, wait several minutes on my 16 Core i7-1360p&lt;br /&gt;- build OK:&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/pastedimage1749132734098v7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Click on actions/debug&lt;br /&gt;- some west magic, flashing, debugg view loads&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/pastedimage1749132776645v8.png" alt=" " /&gt;&lt;br /&gt;I can single step using F10:&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/pastedimage1749132890120v9.png" alt=" " /&gt;&lt;br /&gt;Serial terminal is showing blinky Uart output:&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/pastedimage1749132971208v10.png" alt=" " /&gt;&lt;br /&gt;LED1 is blinking&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538250?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 13:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2490e2fd-671f-4c0d-9702-36ada825b708</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I suggest that we start from very beginning, looking at what does not work as expected. For example, you mentioned&lt;/p&gt;
[quote user="cellular_iot"]&lt;span&gt;&lt;strong&gt;Blinky&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;on nrf9151DK_nrf9151ns: all versions work including debugging&lt;/strong&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Can you provide detailed steps and screenshots to reproduce this (starting from build command you used)?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538038?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 12:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2398c384-93f2-436b-b427-58dc1b47a381</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;I installed SDK prepackaged version v3.0.1 via VSCode as descibed in the same tutorial:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/get_started/quick_setup.html"&gt;docs.nordicsemi.com/.../quick_setup.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/538017?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 10:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57469f0c-5bce-4219-b319-54316daef0f1</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537820?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 09:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95f1a1d6-3af7-4cca-9d0b-577111844ea7</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Maybe later, for now I need to&amp;nbsp;the lwm2m_client&amp;nbsp;sample fully working on the thingy91 we own - sensors are not working so I need to debug this urgently.&lt;br /&gt;&lt;br /&gt;For debugging&amp;nbsp;I followed this tutorial:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/get_started/quick_debug.html"&gt;docs.nordicsemi.com/.../quick_debug.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537816?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 09:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f375b7-555f-427c-adf3-0a705b8f99e0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="cellular_iot"]I use VSCode like described in the tutorials and getting started and I use the blinky example for reproduction.&amp;nbsp;I gave the console a short try but lots of issues for now[/quote]
&lt;p&gt;Can you show which tutorial you followed?&lt;br /&gt;Which issues did you encounter when you used console? Can you share your build log?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537808?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 09:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a499e12-da88-4637-9032-05300a0eac2c</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;BTW - when I configure blinky for a debug build and launch the debug config, the debugger doens&amp;#39;t halt in main but just runs. When I pause, the CPU mostly hangs in this assert:&lt;/p&gt;
&lt;p&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/pastedimage1748941689845v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537801?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 08:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c40a347-714e-4835-9469-ff3721e838e3</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Thanks for reaching out!&lt;br /&gt;&lt;br /&gt;I use VSCode like described in the tutorials and getting started and I use the blinky example for reproduction.&amp;nbsp;I gave the console a short try but lots of issues for now, have to try later when I have time.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;* &lt;strong&gt;Blinky&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;on nrf9151DK_nrf9151ns: all versions work including debugging&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;* Blinky&amp;nbsp;on thingy91_nrf9160:&amp;nbsp;&lt;span&gt;all versions work including debugging&lt;/span&gt;&lt;br /&gt;&lt;span&gt;* Blinky&amp;nbsp;on thingy91_nrf9160ns:&lt;br /&gt;- standard build works&lt;br /&gt;&lt;/span&gt;- standard build with &amp;quot;optimize for&amp;nbsp;debugging (-Og)&amp;quot; doesn&amp;#39;t work&lt;br /&gt;-&amp;nbsp;&lt;span&gt;standard build with &lt;strong&gt;&amp;quot;optimize for&amp;nbsp;speed&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;(-O2)&amp;quot;&amp;nbsp;and Extra CMake arguments &amp;quot;-DCONFIG_DEBUG_THREAD_INFO=y&amp;quot; works, I can debug in VSCode.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;When I&amp;nbsp;don&amp;#39;t choose&amp;nbsp;&lt;span&gt;&amp;quot;Optimize for debugging (-Og)&amp;quot; but set&amp;nbsp;-DCONFIG_DEBUG_THREAD_INFO=y and -DCONFIG_DEBUG_OPTIMIZATIONS=y as extra CMake arguments, blinky is not working. When I re-open the build settings with &amp;quot;Edit build configuration&amp;quot; my manual set Cmake arguments are gone and&amp;nbsp;&amp;quot;Optimize for debugging (-Og)&amp;quot; is selected - so the gui just manages the translation to &amp;quot;&lt;strong&gt;-DCONFIG_DEBUG_OPTIMIZATIONS=y&lt;/strong&gt;&amp;quot; - which&amp;nbsp;seems to be the &lt;strong&gt;bad guy&lt;/strong&gt; here.&lt;br /&gt;&lt;br /&gt;So how to proceed with that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537719?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 16:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d435d58-a22b-48e0-9fe0-9aa608d7ea2e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you use VS Code for building and flashing? Do you see the same behavior if you do not use VS Code?&lt;br /&gt;&lt;br /&gt;Do you see the same problem if you do not use &amp;quot;Optimize for debugging (-Og)&amp;quot; but instead add both&lt;br /&gt;-DCONFIG_DEBUG_THREAD_INFO=y and -DCONFIG_DEBUG_OPTIMIZATIONS=y&lt;br /&gt;to your build command manually?&lt;br /&gt;&lt;br /&gt;Do you see the same result when using only&amp;nbsp;&lt;span&gt;-DCONFIG_DEBUG_THREAD_INFO=y (without optimization)?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537596?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 07:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb0452eb-0b4f-4abe-bed5-1a9f2feb4a75</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p&gt;Any idee how&amp;nbsp;a thingy:91 with LTE modem active can be debugged in 2025?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug lwm2m_client sample on Thingy91 development kit?</title><link>https://devzone.nordicsemi.com/thread/537403?ContentTypeID=1</link><pubDate>Wed, 28 May 2025 15:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b431563b-ab83-416c-baaa-036c5419d728</guid><dc:creator>cellular_iot</dc:creator><description>&lt;p data-start="89" data-end="108"&gt;Another data point:&lt;/p&gt;
&lt;p data-start="110" data-end="490"&gt;When I flash the &lt;code data-start="127" data-end="139"&gt;merged.hex&lt;/code&gt; of a non-debug blinky build to the Thingy:91 via SWD, everything works fine &amp;mdash; UART output appears and the LED blinks. Then I press the button, power-cycle the board, and end up in MCUboot. From there, I use the nRF Connect Programmer to flash &lt;code data-start="383" data-end="402"&gt;zephyr.signed.hex&lt;/code&gt; from the &lt;strong data-start="412" data-end="427"&gt;debug build&lt;/strong&gt;. After that, nothing works &amp;mdash; no UART output, no LED activity.&lt;/p&gt;
&lt;p data-start="492" data-end="650"&gt;I press the button again, power-cycle once more, and this time flash the &lt;code data-start="565" data-end="584"&gt;zephyr.signed.hex&lt;/code&gt; from the &lt;strong data-start="594" data-end="613"&gt;non-debug build&lt;/strong&gt; &amp;mdash; and the LED starts blinking again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>