<?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>West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68310/west-and-debug-issue-in-nrf9160-feather-board</link><description>Hello, 
 
 This is regarding the problem faced while flash and debug the nrf9160 feather, 
 
 1) Build and flash using the west 
 
 we are using nrf 9160 feather so it has a different technique to compile and flash the code into it. 
 
 Please check the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Nov 2020 10:25:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68310/west-and-debug-issue-in-nrf9160-feather-board" /><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/281071?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 10:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def4a71e-ed5a-48ac-9147-846bd9281a2f</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Try attach instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;quot;request&amp;quot;:&amp;quot;attach&amp;quot;,&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Alternatively you could try to use &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/Segger-Embedded-Studio"&gt;SEGGER&lt;/a&gt; to debug.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/280500?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 05:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:674720a4-4464-4cf7-8523-b06028bed820</guid><dc:creator>Rkidechaa</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have done some changes to the Launch. Jason file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605676302116v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;just added the one line&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;serverpath&amp;quot;&lt;/span&gt;&lt;span&gt;:&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;C:/Program&amp;nbsp;Files&amp;nbsp;(x86)/SEGGER/JLink/JLinkGDBServerCL.exe&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;after that when I tried to debug it got below error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="monaco-list-row" id="list_id_5_0"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value error"&gt;&lt;span&gt;&lt;span class=""&gt;Please check OUTPUT tab (Adapter Output) for output from C:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class="source" title=""&gt;Launching server: &amp;quot;C:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe&amp;quot; &amp;quot;-if&amp;quot; &amp;quot;swd&amp;quot; &amp;quot;-port&amp;quot; &amp;quot;50000&amp;quot; &amp;quot;-swoport&amp;quot; &amp;quot;50001&amp;quot; &amp;quot;-telnetport&amp;quot; &amp;quot;50002&amp;quot; &amp;quot;-device&amp;quot; &amp;quot;nrf9160_xxAA&amp;quot;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_1"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;
&lt;div class="source" title=""&gt;Launching GDB: &amp;quot;C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\bin\arm-none-eabi-gdb.exe&amp;quot; &amp;quot;-q&amp;quot; &amp;quot;--interpreter=mi2&amp;quot;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_2"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;
&lt;div class="source" title=""&gt;undefinedC:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\bin\arm-none-eabi-gdb.exe: warning: Couldn&amp;#39;t determine a path for the index cache directory.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_3"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;
&lt;div class="source" title=""&gt;Reading symbols from C:/Users/rahul/ncs/v1.3.1/zephyr/samples/basic/blinky/build/zephyr/zephyr.elf...&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_4"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;
&lt;div class="source" title=""&gt;0xfffffffe in ?? ()&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_6"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value warn"&gt;&lt;span&gt;&lt;span class=""&gt;Not implemented stop reason (assuming exception): undefined &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class="source" title=""&gt;Resetting target&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="monaco-list-row" id="list_id_5_7"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;
&lt;div class="source" title=""&gt;Resetting target&lt;/div&gt;
&lt;div class="source" title=""&gt;&lt;/div&gt;
&lt;div class="source" title=""&gt;Something went wrong due zephyr.elf file.&lt;/div&gt;
&lt;div class="source" title=""&gt;&lt;/div&gt;
&lt;div class="source" title=""&gt;Can you guide me what to do next?&lt;/div&gt;
&lt;div class="source" title=""&gt;&lt;/div&gt;
&lt;div class="source" title=""&gt;With Regards,&lt;/div&gt;
&lt;div class="source" title=""&gt;Rahul Kidecha&lt;/div&gt;
&lt;/div&gt;
&lt;/div&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: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/280268?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 09:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb0ebd93-45ca-4d85-9112-b4885c53a4d3</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here is a link to a similar case using GDB, look at the jason file provided there as a guide&lt;br /&gt;Link:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66825/jlinkgdbserver-could-not-connect-to-target"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66825/jlinkgdbserver-could-not-connect-to-target&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here is a link to the segger wiki:&amp;nbsp;&lt;a href="https://wiki.segger.com/J-Link_Visual_Studio_Code"&gt;https://wiki.segger.com/J-Link_Visual_Studio_Code&lt;/a&gt;&amp;nbsp;&lt;br /&gt;and maybe take a look at this&amp;nbsp;&lt;a href="https://github.com/Marus/cortex-debug/wiki"&gt;https://github.com/Marus/cortex-debug/wiki&lt;/a&gt;, and see the &lt;strong&gt;..examples you may find useful&lt;/strong&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have not tried this personally for the time being, but i will try to figure out the problem and test it myself some time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/280210?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 21:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b437fe-ad3d-41b7-8bb3-ca42be7283c5</guid><dc:creator>Rkidechaa</dc:creator><description>&lt;p&gt;Hi Jonathon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I never used visual code to debug any microcontroller. I do not understand where exactly you want to add path.OR else you can let me know how to debug the feather using external board with other software.&lt;/p&gt;
&lt;p&gt;Can you be more specific ?&lt;/p&gt;
&lt;p&gt;I am sharing the location which you mentioned and made same changes as per my understanding&amp;nbsp; but still giving me same error.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605563889930v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605563912176v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605563928970v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Question:&lt;/p&gt;
&lt;p&gt;setting in launch.jason are correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/280047?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 08:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:442cb220-584c-41bc-8974-4eef2bb20c4f</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Rahul,&lt;br /&gt;&lt;br /&gt;Try to set &amp;quot;cortex-debug.JLinkGDBServerPath&amp;quot; in&amp;nbsp;your VS Code settings (File -&amp;gt; Preferences -&amp;gt; Settings, use search window in the top of the settings window)&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/279982?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 21:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c7f9bd-0b5e-405a-b741-3efe13ebd6c9</guid><dc:creator>Rkidechaa</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have already posted the query on the feather community. I was using&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF5340-PDK"&gt;nRF5340-PDK&lt;/a&gt;&amp;nbsp;to debug the feather. (&lt;a href="https://docs.jaredwolff.com/nrf9160-programming-and-debugging.html"&gt;https://docs.jaredwolff.com/nrf9160-programming-and-debugging.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See the image of error below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605302337408v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rahul Kidecha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West and debug issue in nrf9160 feather board</title><link>https://devzone.nordicsemi.com/thread/279917?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 13:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d195461-9e2d-46ca-8063-6ba4a9ee731d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Rahul,&lt;br /&gt;&lt;br /&gt;We at Nordic do not officially&amp;nbsp;support VScode or debugging in VScode, you can try the &lt;a href="https://community.jaredwolff.com/t/nrf9160-feather"&gt;feather community&lt;/a&gt; also, might have more luck there.&amp;nbsp;&lt;br /&gt;Another thing would be to ask the author of the VScode extension maybe.&lt;br /&gt;&lt;br /&gt;Some questions I have tough. What debugger are you using? Do you have a j-link or a DK ?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]&lt;a href="https://imgur.com/undefined"&gt;https://imgur.com/undefined&lt;/a&gt;&amp;nbsp;(link of error image)[/quote]
&lt;p&gt;Cant see any image.&amp;nbsp; Could you provide a new&amp;nbsp;picture or a description of error codes and log.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>