<?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>NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68737/nrf52832-boot-loader-flashing</link><description>Hi, 
 We are going to use NRF52832 for a project, and planning to design our own PCB card and assemble the NRF52832 chips, purchased through Digikey or a similar distributor. 
 My question is, when we purchase sample chips from a distributor like Digikey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Dec 2020 08:45:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68737/nrf52832-boot-loader-flashing" /><item><title>RE: NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/thread/283716?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 08:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ce730d-fa14-495f-a741-6ad0248cc627</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I suggest that you check out the &amp;quot;DFU Getting Started Guide&amp;quot; link from my first reply. It contains guidance on all your questions here. OTA DFU, how to perform the dfu using nRF Connect for Android/iOS.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/thread/283640?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 16:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68de43d1-7cfe-4688-afed-fbf08a465bd8</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;Thank you for taking the time to explain the procedure.&lt;/p&gt;
&lt;p&gt;During the weekend, I did manage to program the bootloader on to a 3rd party board with NRF52832 (over SWD port) and also verify the same by changing some pin assignments to make sure the changes are reflected.&lt;/p&gt;
&lt;p&gt;The DFU mode that I compiled supports over the serial programming. However, I would like to investigate and start working on over the air (BLE) dfu mode, where I can program the soc through the BLE. If you have any links that you can refer, please advise me. I believe, first I&amp;nbsp; have to load a bootloader that supports OTA dfu, and then install some app on an android device or on a PC (which has attached BLE device) to deploy the app with OTA facility.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking forward to hearing back from you soon.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/thread/283483?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 10:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78124c7-d380-41f9-83a2-221bb2dffcf1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Dinesh,&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;In order to program the custom PCB, you can use the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/hw_debug_out.html"&gt;Debug Out port&lt;/a&gt; on the DK, or an external programmer. Please see the figure from the user &amp;quot;Remi&amp;quot; in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14058/external-programming-using-nrf52-dk"&gt;this post&lt;/a&gt;. You need to apply power, like in the figure from his answer. VTG and GND Detect does not supply power. They are used to check whether an external device is connected to the debugger, so power needs to be supplied from GND and VDD.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to merge the files. You can program the softdevice first, and then the bootloader. No problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="DineshB"]&lt;p&gt;&lt;span&gt;./&lt;/span&gt;&lt;span&gt;nrfjprog &lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;e &lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;./&lt;/span&gt;nrfjprog &lt;span&gt;--&lt;/span&gt;program&amp;nbsp; softdevice.hex&amp;nbsp;&lt;span&gt;-&lt;/span&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;./nrfjprog --program bootloader.hex -f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;./&lt;/span&gt;nrfjprog &lt;span&gt;--&lt;/span&gt;reset &lt;span&gt;-&lt;/span&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are the above steps correct? Or am I missing something?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;That is correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="DineshB"]Note : I am under the impression that, NRF52-DK has an on-board NRF52x chip. So when you us the nrfjprog util, how do you make sure[/quote]
&lt;p&gt;&amp;nbsp;That is correct. But if you connect VTG and GND DETECT to another nRF chip, and it is powered, it will detect the external device and program that one instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="DineshB"]Also, I couldn&amp;#39;t find the schematics for the NRF52-DK. If the schematics is available, please advise me from where I can download the same. Thanks.[/quote]
&lt;p&gt;&amp;nbsp;That can be found in the first link in this reply. I am not sure exactly what schematics you are looking for, but you should find it on &lt;a href="http://www.infocenter.nordicsemi.com"&gt;www.infocenter.nordicsemi.com&lt;/a&gt;. Let me know if there is something you struggle to find.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/thread/283403?ContentTypeID=1</link><pubDate>Sat, 05 Dec 2020 06:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400d4dbc-6e3a-438d-a2ea-c0e733159d11</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response. I was busy with some other work, so couldn&amp;#39;t get back to you promptly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Well, this is the scenario at hand.&lt;/p&gt;
&lt;p&gt;1. I have a set of custom PCB boards with nRF52832 mounted on them. Their SWD port pins are exposed.&lt;/p&gt;
&lt;p&gt;2. I have a NRF52-DK board&lt;/p&gt;
&lt;p&gt;3. I have installed the nrfjprog command line program on my windows PC.&lt;/p&gt;
&lt;p&gt;4. I have the custom hex files for the bootloader and the softdevice , which I downloaded from the SparkFun site.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to know the following.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. In order for me to program the softdevice + bootloader on to the new PCB, how should I setup the boards?&lt;/p&gt;
&lt;p&gt;I am under the impression that, the custom boards SWDIO/SWDCLK/RESET/3V3/GND should be connected to the NRF52-DK boards&lt;/p&gt;
&lt;p&gt;single raw 8 pin connectors SWDIO/SWDCLK/RESET/VTG/GND pins.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do I have to separately power my custom NRF52832 board? Or the SWD port will give the power to my board?&lt;/p&gt;
&lt;p&gt;Do I have to merge the 2 files together and program one hex file, or can I just first program the softdevice.hex file and then the booltader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Then I connect the NRF52-DK to my Windows PC where the nrfjprog utility is installed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Provided, I have the bootloader.hex and softdevice.hex files, please advise how I should program my custom board which has&lt;/p&gt;
&lt;p&gt;an on board NRF52832 chip.&lt;/p&gt;
&lt;p&gt;&lt;span class="pun"&gt;./&lt;/span&gt;&lt;span class="pln"&gt;nrfjprog &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;e &lt;/span&gt;&lt;span class="pun"&gt;-&lt;/span&gt;&lt;span class="pln"&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pln"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;nrfjprog &lt;span class="pun"&gt;--&lt;/span&gt;program&amp;nbsp; softdevice.hex&amp;nbsp;&lt;span class="pun"&gt;-&lt;/span&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pln"&gt;./nrfjprog --program bootloader.hex -f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pln"&gt;&lt;span class="pun"&gt;./&lt;/span&gt;nrfjprog &lt;span class="pun"&gt;--&lt;/span&gt;reset &lt;span class="pun"&gt;-&lt;/span&gt;f nrf52&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pln"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pln"&gt;Are the above steps correct? Or am I missing something?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note : I am under the impression that, NRF52-DK has an on-board NRF52x chip. So when you us the nrfjprog util, how do you make sure&lt;/p&gt;
&lt;p&gt;that you are programming the external chip, instead of the nrf52x chip on the NRF52-DK board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, I couldn&amp;#39;t find the schematics for the NRF52-DK. If the schematics is available, please advise me from where I can download the same. Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally, it would make sense for NRF community to publish a bootloader + softdevice hex files, for a given reference design, and the users&lt;/p&gt;
&lt;p&gt;then can easily use the utils to program the bootloader and make use of the reference design to customize to their own needs, without spending so much time on customizing bootloaders and softdevices etc. Just a thought.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to hear back from you soon.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 boot loader flashing</title><link>https://devzone.nordicsemi.com/thread/281752?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 10:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29cea3df-5533-470b-8b34-c4658bc35124</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Dinesh,&lt;/p&gt;
&lt;p&gt;1. The nRFs are not preflashed with a bootloader from the factory. If the SparkFun comes with a bootloader (which it very well may do. I am not sure), then this is a custom bootloader probably based on our bootloader design from the SDK.&lt;/p&gt;
&lt;p&gt;2. Do you mean how to flash the bootloader to the nRF or what DFU protocols we support? (Serial/OTA)? If the question is how to flash it, you need to program the bootloader using a programmer. I am not sure how this is done in large scale, but you should check this with your distributer. They probably have some experience in this field.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;and 2: I suggest you look into the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;DFU getting started guide&lt;/a&gt;. It shows how to perform a DFU Over the Air (OTA) using a phone. You can use the same method to perform the OTA using nRF Connect for Desktop and from a computer connected to an nRF using nrfutil (both serial and BLE). Please look at the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_intro.html"&gt;nrfutil tool documentation&lt;/a&gt;. Note that to use nrfutil or nRF Connect for Desktop, it requires an extra nRF device to be used as the BLE client, while using nrfutil for serial DFU, then the target device is connected directly to the computer.&lt;/p&gt;
&lt;p&gt;3. You have several options here. Yes. There is a default way to use reset button + a predefined button. Please study the SDK\examples\dfu\secure_bootloader example, and the function&amp;nbsp;dfu_enter_check() in nrf_bootloader.c, which checks the pin NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN when the bootloader is running. So if you hold this button while you press the reset button it will enter DFU mode. NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN is defined in the bootloader project&amp;#39;s sdk_config.h.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another option is something we call the buttonless dfu service, which is a BLE service that you can use to put the device in DFU mode without pressing any physical buttons.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>