<?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>Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99299/thingy91-debug-probe-and-blinky</link><description>Hello, I&amp;#39;m using Nordic Thingy91 for a college project, but I&amp;#39;m having some trouble figuring something out... I&amp;#39;ve managed to install every required extension on Visual Studio with Nrf Connect, but I can&amp;#39;t exactly find good tutorials on how to program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 May 2023 13:59:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99299/thingy91-debug-probe-and-blinky" /><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/424038?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 13:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1583eea-3f5b-4b61-b7d3-0022e5816d55</guid><dc:creator>lcogarcia</dc:creator><description>&lt;p&gt;Hello, I have found out that the problem with my blinky was the checkbox during the whole &amp;quot;add build configuration part&amp;quot;, the one that says &amp;quot;Enable debug options&amp;quot;. For some reason, it was preventing my blinky from working, so I tried several different things to make blinky work.&lt;/p&gt;
&lt;p&gt;After changing two things, it started working, so I repeated the app test several times and determined, by exclusion of parts, that the &amp;quot;Enable debug options&amp;quot; checkbox somehow interferes with the functioning of &amp;quot;blinky&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thank you for your help, still!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/424034?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 13:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bebea13-f83f-41de-a4fc-bf6eb1cab315</guid><dc:creator>lcogarcia</dc:creator><description>&lt;p&gt;Ok, so after testing several forms (whilst deleting and recreating the blinky app with different settings), I found out that the culprit for making blinky not work is the &amp;quot;Enable debug options&amp;quot; checkbox.&lt;/p&gt;
&lt;p&gt;The line of code I added to prj.conf was unneeded,&lt;/p&gt;
&lt;p&gt;So yeah, at last, I have made it work and now I know exactly what was messing with the blinky. Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/424020?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 13:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efd3b560-7209-45ea-a3b9-a37db823c1eb</guid><dc:creator>lcogarcia</dc:creator><description>&lt;p&gt;Ok, so I somehow got it to work.&lt;/p&gt;
&lt;p&gt;What I did different was, when I was adding the build configuration, I didn&amp;#39;t click on the &amp;quot;Enable debug options&amp;quot; checkbox, because I noticed that it had a disclaimer that said :&lt;/p&gt;
&lt;p style="color:#cccccc;cursor:text;font-family:&amp;#39;Segoe WPC&amp;#39;, &amp;#39;Segoe UI&amp;#39;, sans-serif;font-size:13px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;margin:0px;padding:0px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&amp;quot;Enables these Kconfig options:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;CONFIG_DEBUG_THREAD_INFO=y&lt;/code&gt;&lt;/p&gt;
&lt;div class="codicon codicon-warning" style="display:inline-block;padding-left:0px;text-align:center;text-decoration:none;vertical-align:text-top;"&gt;&lt;/div&gt;
&lt;p style="color:#cccccc;cursor:text;font-family:&amp;#39;Segoe WPC&amp;#39;, &amp;#39;Segoe UI&amp;#39;, sans-serif;font-size:13px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;margin:10px 0px 0px;padding:0px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Debug optimizations can cause stack overflows if your threads&amp;#39; stack sizes are fine tuned for other optimization levels.&amp;quot;&lt;/p&gt;
&lt;p&gt;And then I added the following line of code to prj.conf: &lt;/p&gt;
&lt;p&gt;&lt;span style="color:#e06c75;"&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span style="color:#abb2bf;"&gt;=y&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;which is a workaround that worked for some people, at least according to the comment section in the following youtube video: &lt;a href="https://www.youtube.com/watch?v=RiQM1_XlJ24"&gt;https://www.youtube.com/watch?v=RiQM1_XlJ24&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now the thingy91 is finally blinking red, but I&amp;#39;m going to check which of the two workarounds is the culprit for finally making it work, unless both actions were required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423936?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 09:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7abd68bc-f653-4df9-831b-74439cb5fe33</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Aha, so its not building correctly. I&amp;#39;m not sure what that specific problem indicates. You might find more info in the actual build logs (You&amp;#39;ll find them in the next tab - either output or terminal iirc).&lt;br /&gt;Now, it seems this error is not within the blinky app it self, but a part of the wider toolchain.It also seems this question&amp;nbsp;might fall in the category &amp;quot;..&lt;span&gt;solutions provided in them are very specific to the person asking the question&amp;quot;, as you&amp;nbsp;described it in your original post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I do not know what causes this error as I havent seen it before. The full build logs might be helpful in debugging further.&amp;nbsp; But I would just try to remove the blinky app completely and try again, or try with a different sample app. If it doesn&amp;#39;t work, you might need some better help than I can give.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you do any changes to the blinky app or other config files? If you did, please describe your steps here. And k&lt;/span&gt;&lt;span&gt;eep posting relevant info here, it will make it easier for the community or Nordic employees to give you the right help :)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423930?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 09:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b9d0b0-66b8-4788-8d45-36ad9f64b779</guid><dc:creator>lcogarcia</dc:creator><description>&lt;p&gt;When I do a pristine build, this is what shows up on the Visual Studio Terminal:&lt;/p&gt;
&lt;p&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/3817.Terminal.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423919?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 08:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f083392-1c2f-4fff-a2e5-2d6338ae086c</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;So you can flash it with Asset Tracker, and it works fine. But when you flash it with Blinky, its just dead? And if you flash it with Asset Tracker again, it works fine? This is weird, but it tells us that &amp;quot;everything works&amp;quot;, except the blinky app.&lt;/p&gt;
&lt;p&gt;Connectivity bridge for the nrf52 is correct. Building for&amp;nbsp;&lt;span&gt;thingy91_nrf9160_ns is correct. Your approach to flashing it is correct, as it works with Asset Tracker. So there must be something specific with the Blinky app.&lt;br /&gt;1. Are you sure its building properly? No errors in the logs? If there are any, can you share them?&lt;br /&gt;2. Have you done any changes at all to the blinky app? Did you try to do a pristine build? Or maybe deleting the app entirely and trying again from scratch?&lt;br /&gt;3.&amp;nbsp;Have you tried other samples? Try building and flashing something else, just to see if it works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps&amp;nbsp;Nordic employees will have some&amp;nbsp;additional info here, but while you&amp;#39;re waiting you can try these points.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423916?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 08:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d4a5f3c-8af6-488b-97ff-aa495bb23a40</guid><dc:creator>lcogarcia</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;ve followed all of the steps that you have indicated; however, it still won&amp;#39;t work. The only thing I haven&amp;#39;t yet done is use the LTE Link Monitor to read outputs, but assuming that the LED doesn&amp;#39;t blink red as it&amp;#39;s supposed to, I&amp;#39;m not sure there&amp;#39;s an output at all. &lt;/p&gt;
&lt;p&gt;Whenever I load it with the &amp;quot;asset_tracker_v2&amp;quot;, it works properly and it even gives me the device&amp;#39;s location (albeit with a pretty rough accuracy), even the LED flashes properly with green flickering lights, changing to purple and so on and so on.&lt;/p&gt;
&lt;p&gt;I just build the program on &amp;quot;thingy91_nrf9160_ns&amp;quot;, using nrf Connect 2.3.0 SDK. My Nordic Thingy91 hardware version is 1.6.0.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if this would affect anything, but I flashed the nrf52840 with the &amp;quot;thingy91_nrf52_connectivity_bridge_2023-03-02_8f26142b.hex&amp;quot; file, since I think that&amp;#39;s how you update it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read online that one of the possible fixes would be to properly update nrf52840 properly and THEN the nrf9160 SiP in that specific order for it to start working? Maybe I did something wrong while updating? Please give me a hand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423718?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 09:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e269268-d65d-4a9f-b2a5-59f751f69a08</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Luis,&lt;/p&gt;
&lt;p&gt;After building the application on Thingy:91 by VSCode you need to follow the following steps:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Navigate to&amp;nbsp;build f and obtain file app_signed.hex&lt;/li&gt;
&lt;li&gt;Connect Thingy91 to computer using USB cable, holding the SW3 button during power on the device so you can reach into MCU boot mode p&lt;/li&gt;
&lt;li&gt;nrf connect -&amp;gt; Programmer -&amp;gt; Open&lt;/li&gt;
&lt;li&gt;Select Device Nordic Thingy91, click enable MCU boot.&lt;/li&gt;
&lt;li&gt;Drag file app_signed.hex into right pane or browse it from the build folder&lt;/li&gt;
&lt;li&gt;In programmer, Click Write and Write&lt;/li&gt;
&lt;li&gt;Uploading complete successfully&lt;/li&gt;
&lt;li&gt;Disconnect USB cable&lt;/li&gt;
&lt;li&gt;Power down and back up again&lt;/li&gt;
&lt;li&gt;LED flashes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Torje Johansen also talked about the same process in his comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 debug probe and Blinky</title><link>https://devzone.nordicsemi.com/thread/423531?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 12:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a77e5205-ce5c-4a59-92a6-1fff5c50dfdc</guid><dc:creator>Torje</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;You can program the Thingy:91 via the Programmer-app in nRF Connect for Desktop. After building your program in VS Code, you can find the files you need in the build folder it generates. The Thingy:91 needs to be in &lt;span&gt;application serial recovery&amp;nbsp;&lt;/span&gt;mode, so hold the button (SW3) while&amp;nbsp;turning it on and connect it via USB. When this is done, find the &amp;quot;app_signed.hex&amp;quot; file in the build directory and drag it to the Programmer-window. It should be smooth sailing from here. Following these steps should help you get the apps working.&lt;/p&gt;
&lt;p&gt;I recommend using the &amp;quot;LTE Link Monitor&amp;quot; to read outputs from the Thingy.&lt;/p&gt;
&lt;p&gt;I hope this is helpful, and that is answers your questions. Good luck!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Torje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>