<?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>board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103654/board-nrf52832-does-not-connect-anymore</link><description>I am following the BLE accademy course and flashing an exercise, the exercise did not perform as requested. 
 I could not flash anymore. 
 I clear the board from the switch button and then could not connect the board anymore even I coud see it by the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Sep 2023 14:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103654/board-nrf52832-does-not-connect-anymore" /><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446696?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 14:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ffbc14-4114-4bf2-a202-83e2efd68710</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that it worked out! :)&lt;/p&gt;
&lt;p&gt;If the firmware asserts early in the process, and the default behavior is to reset, it can be problematic to recover the board, as the firmware will effectively be in a reset-loop. This could have happened in your firmware.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: I would still recommend that you get a newer DK version. It is OK to use for evaluation, but you want to use a production grade silicon for development.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446664?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2023 12:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9576fa7-a655-42ca-9a35-d43cfc661e80</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;you are the Boss :-D&lt;/p&gt;
&lt;p&gt;I had to do both.&lt;/p&gt;
&lt;p&gt;J-Link commander at connect was going thru well as listed in the example above up to the last line. But the last line rather to say &amp;quot;Cortex-M4 identifies it says &amp;quot;Could not connect&amp;quot;.&lt;/p&gt;
&lt;p&gt;Then I ran &amp;quot;nrfjprog --recover -f nrf52&amp;quot; and it did connect. (last time it did not work).&lt;/p&gt;
&lt;p&gt;Now I am OK and VScode can see my board and flash.&lt;/p&gt;
&lt;p&gt;Now i have to find out why my code or the code suggested by the course does not work.&lt;/p&gt;
&lt;p&gt;When I flash it it goes again disconnect and then when I run connect with the J-Link commander it works, and all is fine.&lt;/p&gt;
&lt;p&gt;In any cases I know how to recover and I&amp;nbsp;appreciate your excellent help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446478?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 14:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf24195f-c5e4-4d10-a9cc-5bbf2406fbcb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Given that one of the LEDs are turned on, it might indicate that there&amp;#39;s firmware running on your device.&lt;/p&gt;
&lt;p&gt;You can try two other options:&lt;/p&gt;
&lt;p&gt;* Use J-Link Commander to recover the device&lt;/p&gt;
&lt;p&gt;* Use a batch script that runs &amp;quot;nrfjprog --recover -f nrf52&amp;quot; in a loop&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a way to use J-Link Commander (search in the start meny for it):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;device NRF52
si 1
speed 1000
connect&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of how it should look when it has been successfully found&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help
J-Link&amp;gt;device nrf52
J-Link&amp;gt;si 1
Selecting SWD as current target interface.
J-Link&amp;gt;speed 1000
Selecting 1000 kHz as target interface speed
J-Link&amp;gt;connect
Device &amp;quot;NRF52&amp;quot; selected.


Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[0][1]: E0001000 CID B105E00D PID 003BB002 DWT
[0][2]: E0002000 CID B105E00D PID 002BB003 FPB
[0][3]: E0000000 CID B105E00D PID 003BB001 ITM
[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
[0][5]: E0041000 CID B105900D PID 000BB925 ETM
Cortex-M4 identified.&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And here is a batch-script which will run recover continuously:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45078/nrf52832-not-connected-anymore-after-first-trying-to-debug-keil/177579"&gt;RE: nRF52832 not connected anymore after first trying to debug (Keil)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446473?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 13:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e10dc4ea-0c1c-42c3-9a5a-028b31275b32</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;OK thank you. I am wonder why it worked up&amp;nbsp;thru the course &amp;quot;nRfconnect sdk Fundamental&amp;quot; and now it does not work for the &amp;quot;BLE fundamental&amp;quot; course. Too bad I was using it to train me using Nordic products.&lt;/p&gt;
&lt;p&gt;Is it possible to upgrade the board by the firmware? Or the softDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446445?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2023 11:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e815f8-7d99-44e6-b466-10f98f9da66a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You have an older engineering device, which is reflected by the &amp;lt;v1.0 version of the nRF52-DK. You should use a newer DK, ideally equal to the IC revision that you will go into production with, which is highly likely nRF52832 revision 3.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446327?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 14:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a5fa629-9172-406f-a0c8-2806de9cf290</guid><dc:creator>jean-marc</dc:creator><description>&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/4810.pcb.jpg" alt=" " /&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/pastedimage1694789038443v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:336px;max-width:501px;" height="336" src="https://devzone.nordicsemi.com/resized-image/__size/1002x672/__key/communityserver-discussions-components-files/4/programming.JPG" width="501" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446273?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 12:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78dc0c1-725b-4ee4-ad63-f1f2da98608c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Thanks for the log.&lt;/p&gt;
&lt;p&gt;Unfortunately, it shows that there&amp;#39;s no successful contact with the nRF-chip at all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you share a picture of the nRF52-DK board? I just want to check all the switch positions and so forth, in case there&amp;#39;s anything there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446125?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 16:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0f6ab4-81e3-4b75-af38-089924f9aa6d</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;Oh! I though it was only for URL upload, sorry&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5164.log.log"&gt;devzone.nordicsemi.com/.../5164.log.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And yes I call &lt;span&gt;&amp;quot;nrfjprog --recover -f nrf52&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/446053?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 11:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acea7d39-bdf0-4001-87b5-be3026a9d76a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log file should be created in the folder where you ran the command from.&lt;/p&gt;
&lt;p&gt;To insert the file here, you can drag-and-drop it into the reply box.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or you can go to:&lt;/p&gt;
&lt;p&gt;Insert -&amp;gt; Image/Video/file&lt;/p&gt;
&lt;p&gt;Then press the &amp;quot;upload&amp;quot; button - which will effectively work as &amp;quot;browse&amp;quot; button, and you can navigate to the file you want to upload.&lt;/p&gt;
[quote user="jean-marc"]ERROR: Recover failed. Please make sure that the correct device family is given[/quote]
&lt;p&gt;Did you call it with the &amp;quot;nrfjprog --recover -f nrf52&amp;quot; option?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/445893?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 14:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76a9262-e449-4cec-b385-873b4199eaba</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;thank you for your precious help.&lt;/p&gt;
&lt;p&gt;--recover failed, here are the error on the vscode terminal:&lt;/p&gt;
&lt;p&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;[error] [ Client] - Encountered error -21: Command recover executed for 152 milliseconds with result -21&lt;br /&gt;ERROR: Recover failed. Please make sure that the correct device family is given&lt;br /&gt;ERROR: and try again.&lt;/p&gt;
&lt;p&gt;Sorry, no idea on how to attach a file :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/445807?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 10:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e993c51-df7e-4575-b870-559cd13e69ed</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jean-marc"]Great you fixed my bootloader problem. [/quote]
&lt;p&gt;Great to hear that the board is one step closer to working!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jean-marc"]&lt;p&gt;&lt;span&gt;I can connect thru TeraTerm.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I can see my board with nRFConnect, but cannot select it.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It is good that you can connect to the COM port, that means that the board itself works as intended.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jean-marc"]With nRFConnect I get such messages: &amp;quot;&lt;span&gt;Note: no pre-compiled firmware is available for the selected device.&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;Which application within nrf connect for desktop is reporting this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What we can try is to use nrfjprog, the command line tool, directly.&lt;/p&gt;
&lt;p&gt;* Open up a cmd prompt&lt;/p&gt;
&lt;p&gt;* write &amp;quot;nrfjprog --recover -f nrf52 --log&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it fails, please attach the &amp;quot;log.log&amp;quot; file generated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/445655?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 13:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef886b6b-42d0-4d09-9f73-5ca882e6db35</guid><dc:creator>jean-marc</dc:creator><description>&lt;p&gt;Great you fixed my bootloader problem. Thanks a lot &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I am back to the original problem :-(&lt;/p&gt;
&lt;p&gt;With nRFConnect I get such messages: &amp;quot;&lt;span&gt;Note: no pre-compiled firmware is available for the selected device.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or also this message &amp;quot;Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can connect thru TeraTerm.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I can see my board with nRFConnect, but cannot select it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With VSCode I cannot see anymore my board connected, which was working before with VSCode&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: board nrf52832 does not connect anymore</title><link>https://devzone.nordicsemi.com/thread/445614?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 11:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb517c3a-00c0-4a93-93ca-53dc5193c87d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The board led flash every second for a while and is visible on the USB but then flash rapidly and disapear from the USB.[/quote]
&lt;p&gt;Holding down this button and powering up will place the&amp;nbsp;nRF52-DK in bootloader mode.&lt;/p&gt;
&lt;p&gt;In this mode, where the X:\BOOTLOADER drive is enumerated,&amp;nbsp;you shall not&amp;nbsp;flash anything other than the jlink binary file, or the cmsis daplink binary.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a direct link to the jlink&amp;nbsp;recovery binary:&amp;nbsp;&lt;a href="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/nrf5x-dk-files/j-link-ob-sam3u128-v2-nordicsemi-170724.bin"&gt;https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/nrf5x-dk-files/j-link-ob-sam3u128-v2-nordicsemi-170724.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Found on this site:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download?lang=en#infotabs"&gt;https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download?lang=en#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you flashed another file&amp;nbsp;than the jlink/cmsis dap fw while the device is in bootloader state, you &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;can brick the board&lt;/strong&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does your board enumerate as a usb device at all now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>