<?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>Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84340/cannot-debug-anna-b112-with-nrf52840-dk-as-jlink</link><description>Hi, 
 while switching to the nRF Connect SDK, I cannot program anymore my ANNA B112 (which is a nRF52832) using my nRF52840-DK as a programmer. 
 The following are working: 
 
 Flashing and reading the program from the ANNA B112 with VS Code and SES using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2022 12:52:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84340/cannot-debug-anna-b112-with-nrf52840-dk-as-jlink" /><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/372578?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 12:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bbd9d25-dce2-4600-8f3b-be41601eeecf</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Following the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_debug_out.html?cp=4_0_4_7_9"&gt;Debug out&lt;/a&gt; for the nRF52840 DK you should be able to detect the BLE8 Click as an external device and program it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1655297188240v1.png" alt=" " /&gt;&lt;br /&gt;As long as you have not cut SB40 you don&amp;#39;t need to connect VDD_nRF&amp;#39; to VDD_nRF together with jumpers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;building a simple sample like the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/basic/minimal"&gt;minimal&lt;/a&gt; should work on the BLE8 Click even if you build of the nrf52840 DK.&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: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/352708?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 16:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e198105-856b-43d1-9fd1-ef2d3312bd51</guid><dc:creator>emlynkz</dc:creator><description>&lt;p&gt;I tried 1.7.0 for the NCS version. Tried disabling MCU boot.&lt;/p&gt;
&lt;p&gt;The example is hello_world. The board is a BLE8 Click by Mikroe electronics. It has a ANNA-B112 and we use it as a dev board for the the ANNA-B12.&lt;/p&gt;
&lt;p&gt;This is my wiring and connection to the nRF52840-DK. In the SDK, I have tried a custom board that we use on our production ANNA-B112 boards, the ubx_evkannab1_nrf52832.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/20220211_5F00_110923.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/20220211_5F00_110900.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/352556?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 10:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2022038d-e74f-4c08-bf37-acacbeef9320</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Stil not able to replicate the issue, but could see if the issue stil &lt;span style="font-size:12px;"&gt;presist&lt;/span&gt;&amp;nbsp;if MCUBoot is not included. It might be a trigering factor for the issue you are seeing.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you test with a different NCS tag like 1.7.0 to see if the issue still occurs. Can you give me an example that &lt;span style="font-size:12px;"&gt;consistently&lt;/span&gt;&amp;nbsp;fails 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: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/352086?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 13:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcd3d160-f8f4-40c5-ac04-ba475bcbc33d</guid><dc:creator>emlynkz</dc:creator><description>&lt;p&gt;It still never reaches my breakpoint in main.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Resetting target&lt;br /&gt;Run to &amp;#39;main&amp;#39; timed out. Trying to pause program&lt;br /&gt;[New Thread -1143358499]&lt;br /&gt;[New Thread -82578198]&lt;/p&gt;
&lt;p&gt;Thread &lt;br /&gt;2 received signal SIGTRAP, Trace/breakpoint trap.&lt;br /&gt;[Switching to Thread -1143358499]&lt;br /&gt;add-symbol-file [redacted_path]/build/zephyr/zephyr.elf&lt;/p&gt;
&lt;p&gt;That&amp;#39;s what I get in my console.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/352062?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 12:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d1038fe-86bd-478c-a710-b2271b86a40b</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;In VS code you have to manually add the symbol (.elf) file in the debugger console (SPM as example here):&lt;/p&gt;
&lt;div&gt;&lt;code&gt;add-symbol-file my-build/spm/zephyr/zephyr.elf&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;vscode does not load symbols for multi-image projects (mcuboot, spm, b0 etc) so this could be te issue you are seeing.&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: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351205?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 18:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399c656b-34be-429f-b3a2-f8752abdd996</guid><dc:creator>emlynkz</dc:creator><description>&lt;p&gt;Yes, I am using the nRF Connect for desktop app, and the toolchain manager. I tried launching VSCode both from the toolchain manager and the start menu.&lt;/p&gt;
&lt;p&gt;The cortex-debug version is v1.2.2.&lt;/p&gt;
&lt;p&gt;The method to leave the option unchecked and pressing F5 doesn&amp;#39;t work, as it never reaches my breakpoint in main, but it stops at random other files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351198?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 16:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b6c9ed-1f4d-4396-b57b-26e598ec1783</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;This might be a bug that is fixed in cortex-debug 0.4.6 or later. Pleas update if you have an earlier &lt;span style="font-size:12px;"&gt;version.&lt;br /&gt;&lt;br /&gt;There is this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79881/unable-to-use-debugger-in-vs-code-using-nrf-connect/330690#330690"&gt;Unable to use debugger in VS Code using nRF Connect - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See Einars Comment:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;In a nutshell: Leave&amp;nbsp;&amp;quot;Enable debug options&amp;quot;&amp;nbsp;unchecked&amp;nbsp;for samples that does not use threads.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update: A workaround is to be to start debugging by Run -&amp;gt; Start Debugging (or pressing F5) instead of starting by clicking the &amp;quot;Debug Application&amp;quot; icon within the nRF Connect for VS Code plugin.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-size:12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:12px;"&gt;Are you using the nRF Connect for Desktop app and using the toolchain manager? launching the SW from there?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351184?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 15:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d04da805-5c8f-4cee-8ec0-f65f4e58f77e</guid><dc:creator>emlynkz</dc:creator><description>&lt;p&gt;I get this as an error when the debug launches:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;0x00004f80 in ?? ()
Program stopped, probably due to a reset and/or halt issued by debugger
add symbol table from file &amp;quot;c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf&amp;quot;
(y or n) [answered Y; input not from terminal]
Reading symbols from c:/[REDACTED PATH TO PROJECT]/build/zephyr/zephyr.elf...
Resetting target
Resetting target
Run to &amp;#39;main&amp;#39; timed out. Trying to pause program
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried another devkit of the same model as a programmer, and also a NINA-B111 as a programmer. All 3 have the exact same behavior.&lt;/p&gt;
&lt;p&gt;NCS Version 1.8.0&lt;/p&gt;
&lt;p&gt;VSCode version 1.63.2 with nRF connect extension pack&amp;nbsp;&lt;span&gt;v2021.9.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;EDIT: OS version is Windows 10 21H2 build 19044.1466&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351183?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 15:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb264da8-fc24-495e-8177-5c250d97a52e</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="emlynkz"]Debugging doesn&amp;#39;t work.[/quote]
&lt;p&gt;Do you gett eany errors?&lt;br /&gt;&lt;br /&gt;Does it work if you are not using the nrf52840 DK as a programmer\debugger wehn using NCS(nRF Connect SDK)?&lt;br /&gt;&lt;br /&gt;Can you share some more info on the work enviroment? &lt;br /&gt;&lt;br /&gt;Operating system&lt;br /&gt;VS code version&lt;br /&gt;NCS version&lt;br /&gt;&lt;br /&gt;Thanks for the explanation.&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: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351124?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 13:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214f7c7e-1071-47fb-81ca-ac57b98a7ed7</guid><dc:creator>emlynkz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am able to erase, debug, flash and reflash with the nrf52840-DK using SES on the nrf5 SDK.&lt;br /&gt;With the nrf52840-DK using both the newer SES and VsCode and the nrfConnect SDK I can only flash, reflash and erase. Debugging doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;The device is not bricked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug ANNA B112 with nrf52840-DK as Jlink</title><link>https://devzone.nordicsemi.com/thread/351090?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b65872-1150-4e59-945a-953c32017a3d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Just want to clarify something: Are you able to debug the device with then nrf52 DK but not re-flash or otherwise erase or reset it?&lt;br /&gt;&lt;br /&gt;If the device has been flashed with code that has DCDC enabled and the physical unit does not have that then you could brick the device, could this be what happend?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is unclear to me if the device works or not after switching to nRF Connect SDK.&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>