<?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 burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110136/how-to-burn-bootloader-into-a-brand-new-nrf52832</link><description>Hi, I got a brand new u-blox BMD-300-A-R soldered onto my custom PCB. I have connected the SWDIO, SWDCLK, VDD and GND to my nrf52dk according to instructions here ( nRF52 Series &amp;gt; nRF52832 &amp;gt; nRF52 DK &amp;gt; Hardware description &amp;gt; Debug out for programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2024 16:52:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110136/how-to-burn-bootloader-into-a-brand-new-nrf52832" /><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478828?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 16:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10ce1ae-994c-46cd-9739-a5020ac81185</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;When you install the nRF Command Line tool, it might guide you to install the J-Link tools. If not, you could download via&amp;nbsp;&lt;a href="https://www.segger.com/downloads/jlink/"&gt;https://www.segger.com/downloads/jlink/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Make sure the J-Link commander can detect your board as 3.3v.&lt;/span&gt;&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/pastedimage1713199480718v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]I have connected the SWDIO, SWDCLK, VDD and GND to my nrf52dk[/quote]
&lt;p&gt;&lt;span&gt;Do you connect to the debug-out connector (&lt;/span&gt;&lt;span&gt;P19&lt;/span&gt;&lt;span&gt;) using a 10-pin cable or use&amp;nbsp;&lt;/span&gt;&lt;span&gt;P20&lt;/span&gt;&lt;span&gt;&amp;nbsp;for a custom connection?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478612?ContentTypeID=1</link><pubDate>Sat, 13 Apr 2024 00:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70db383a-56f2-4467-aafc-df108f1ed15d</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;OK. This time in addition to the current connections, I used Power Profiler to power the custom board, with 3300mV. Then, I got the following result&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --deviceversion&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 231 milliseconds with result -102&lt;br /&gt;1050386997 - UNKNOWN&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure where the J-Link commander is. I am using nrf52-dk as the debugger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478609?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 21:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1de80c5-fbb5-475b-a96f-2f90d9553cf0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You have to provide power to both&amp;nbsp;&lt;span&gt;custom PCB and DK, instead of connecting the power from DK.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What voltage does the J-Link commander detect? Make sure the J-Link commander can detect it as 3.3v.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478607?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 20:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91a70b3f-1852-48c0-b2a0-76e25b1be90c</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;I am powering the custom PCB by connecting VDD and VTG on P20 from the nRF52-DK. The GND from the P20 is shorted with the GND on GPIO pins on nRF52-DK, and GND on my custom board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478543?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 12:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a546890-99c8-491b-a41d-fdcd9b129f34</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you also provide power to the&amp;nbsp;&lt;span&gt;custom PCB? Make sure the J-Link commander can detect it as 3.3v.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478407?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 22:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c360d85-5527-4e54-9d28-e2665c08fa2a</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;&amp;quot;nrfjprog --deviceversion&lt;br /&gt;[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 263 milliseconds with result -102&lt;br /&gt;1050386997 - UNKNOWN&lt;br /&gt;[error] [ Worker] - An unknown error.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;[2024-Apr-11 15:10:13] [debug] --------------------------------------------------------------------------------&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] nrfjprog -f nrf52 &amp;ndash;&amp;ndash;recover --log &lt;br /&gt;[2024-Apr-11 15:10:13] [debug] nrfjprog version 10.24.1 external&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] --------------------------------------------------------------------------------&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] Library loaded, loading member functions.&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] Member functions succesfully loaded.&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ Client] - open&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ Client] - start&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence dc3467b3-117a-44c1-92d4-df20b6a535b8.&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Client] - Command open executed for 23 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ Client] - config&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ JLink] - Logger sink registered in JLink logger&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - open&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - just_check_family&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - open_dll&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink_V794e\JLink_x64.dll.&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] [SeggerBackend] - Library loaded, loading member functions.&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] [SeggerBackend] - Member functions succesfully loaded.&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - Set batch mode&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - dll_version&lt;br /&gt;[2024-Apr-11 15:10:13] [ info] [SeggerBackend] - Segger dll version 7.94.e loaded.&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Command open executed for 2 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Client] - Command config executed for 15 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ Client] - enum_emu_snr&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - config&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - enum_emu_snr&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Command config executed for 1 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - enum_emu_con_info&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - is_connected_to_emu&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - enum_emu_con_info&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - is_connected_to_emu&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Command enum_emu_con_info executed for 2 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - close&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - is_connected_to_emu&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - close&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - disconnect_from_emu&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - is_connected_to_emu&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [SeggerBackend] - Segger Backend closed.&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ nRF52] - nRF family DLL closed&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Command close executed for 13 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Client] - Command close executed for 30 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [debug] [ Client] - terminate&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0&lt;br /&gt;[2024-Apr-11 15:10:13] [trace] [ Worker] - Executed 5 commands for 18 milliseconds&lt;br /&gt;[2024-Apr-11 15:10:14] [debug] [ Client] - Worker process exited with code: 0&lt;br /&gt;[2024-Apr-11 15:10:14] [debug] [ Client] - Worker process exited with code: 0&lt;br /&gt;[2024-Apr-11 15:10:14] [debug] [ Client] - Child process terminated with result 0&lt;br /&gt;[2024-Apr-11 15:10:14] [trace] [ Client] - Executed 5 commands for 83 milliseconds&lt;br /&gt;[2024-Apr-11 15:10:14] [debug] [ Client] - terminate&lt;br /&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478403?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 21:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006a7ff0-3f1c-4737-8586-86d1fdd19611</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Sorry, it&amp;#39;s &amp;quot;nrfjprog --deviceversion&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you execute&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;nrfjprog -f nrf52 ––recover&amp;quot;? If not, please provide the log.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478398?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 19:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fba9484-6b9e-4c80-9fc1-18d254ad180f</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;I just updated it to the latest 10.24.1. The result is the same. I am running the command from Windows Command Prompt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478397?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 19:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431f6b78-50aa-4287-8c10-5ef4f749512a</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;Here is the return:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog -v&lt;br /&gt;nrfjprog version: 10.21.0 external&lt;br /&gt;JLinkARM.dll version: 7.94e&lt;br /&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --device --log&lt;br /&gt;ERROR: An invalid argument was provided. Use --help for a list of valid&lt;br /&gt;ERROR: arguments.&amp;quot;&lt;/p&gt;
&lt;p&gt;I am not sure where the log file is saved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478394?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 19:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b282a7c3-e821-42cb-9275-cf4126931010</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;What &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download"&gt;nRF Command Line Tool &lt;/a&gt;version are you using? Could you update to the latest version, and then try again?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you type the following commands and provide the return?&lt;/p&gt;
&lt;p&gt;nrfjprog -v&lt;/p&gt;
&lt;p&gt;nrfjprog --device&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Provide the log by executing &amp;quot;nrfjprog -f nrf52 ––recover --log&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Maybe the following can help&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.segger.com/J-Link_cannot_connect_to_the_CPU"&gt;https://wiki.segger.com/J-Link_cannot_connect_to_the_CPU&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.segger.com/Incorrect_J-Link_USB_driver_installed"&gt;https://wiki.segger.com/Incorrect_J-Link_USB_driver_installed&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/search?q=program%20BMD-300#serpq=program%20BMD-300"&gt;https://devzone.nordicsemi.com/search?q=program%20BMD-300#serpq=program%20BMD-300&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478390?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 18:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d377b5f3-cd69-47d5-b88a-9f7e836719a3</guid><dc:creator>TomX</dc:creator><description>&lt;p&gt;Thank you for the reply!&lt;/p&gt;
&lt;p&gt;I tried to run this command in CMD, but I got the following error:&lt;/p&gt;
&lt;p&gt;&amp;quot;ERROR: The arguments provided perform no operation. Use --help to read about the valid argument combinations.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&amp;quot;&lt;/p&gt;
&lt;p&gt;I checked nrfjprog --help, both arguments can be found as in&lt;/p&gt;
&lt;p&gt;&amp;quot;--recover Erases all user available non-volatile memory and&lt;br /&gt; disables the read back protection mechanism if&lt;br /&gt; enabled.&amp;quot;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&amp;quot;-f --family &amp;lt;family&amp;gt; Selects the device family for the operation. Valid&lt;br /&gt; argument options are NRF51, NRF52, NRF53, NRF91,&lt;br /&gt; and UNKNOWN.&lt;br /&gt; If UNKNOWN family is given, an automatic family&lt;br /&gt; detection of the device is performed. Note that&lt;br /&gt; providing the actual family is faster than&lt;br /&gt; performing the automatic family detection. If&lt;br /&gt; --family option is not given, the default is taken&lt;br /&gt; from nrfjprog.ini. Must be combined with another&lt;br /&gt; command.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, when I try to connect to my custom board in Programmer v4.3.0, the JLink device no longer appears. Instead, it&amp;#39;s nRF52 DK, with UNKNOWN_FAMILY. The console says&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell"&gt;Failed to reading readback protection status for application core core. Error: [object Object], message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to burn bootloader into a brand new nrf52832?</title><link>https://devzone.nordicsemi.com/thread/478332?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c7b616a-5bfb-4a7a-8808-12eb9695c658</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you run the nrfjprog recover command as the datasheet indicated?&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/pastedimage1712840237408v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://content.u-blox.com/sites/default/files/BMD-300_DataSheet_UBX-19033350.pdf"&gt;https://content.u-blox.com/sites/default/files/BMD-300_DataSheet_UBX-19033350.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>