<?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>Flashing nRF52840 module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64575/flashing-nrf52840-module</link><description>Hi everyone, 
 First of all sorry for the big post but I have to clear many questions inside my head. 
 I just finished and received my prototype board that incorporates Raytac&amp;#39;s MDBT50Q-P1MV2 module. This module is pre-approved by Nordic and is based</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Aug 2020 16:17:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64575/flashing-nrf52840-module" /><item><title>RE: Flashing nRF52840 module</title><link>https://devzone.nordicsemi.com/thread/264715?ContentTypeID=1</link><pubDate>Sun, 16 Aug 2020 16:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:679d59d8-0cbe-42fe-b3e2-5a587b28586b</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Nick,&lt;/p&gt;
&lt;p&gt;Sorry for the delay I was on vacation.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module/264605"]However, what it is not clear for me is that, I didn&amp;#39;t required to upload the softdevice seperately.[/quote]
&lt;p&gt;I believe that Nordic is trying to reduce complexity for developers who are getting started with Nordic devices and the SoftDevice.&amp;nbsp; All of the BLE examples have the SoftDevice included and the SES projects have the SoftDevice loaded for you.&amp;nbsp; You can find this if you review the .emProject file.&lt;/p&gt;
&lt;p&gt;I have created scripts which merge the SoftDevice, bootloader and application hex files into a single hex file for production.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing nRF52840 module</title><link>https://devzone.nordicsemi.com/thread/264605?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 11:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2978235-9f7a-49ac-9286-ba1b5243aaf6</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Hi Darren and thank you for your answer&lt;/p&gt;
[quote userid="6058" url="~/f/nordic-q-a/64575/flashing-nrf52840-module/263502"]Did you add connections to the SWCLK and SWDIO pins of the module on your prototype board?&amp;nbsp; This is where you connect the debugger.[/quote]
&lt;p&gt;Yes I have added those debugging lines and I finally managed to flash my evaluation board with three different ways using:&lt;/p&gt;
&lt;p&gt;1. Segger IDE&lt;/p&gt;
&lt;p&gt;2. nRF Connect for Desktop -&amp;gt; Programmer (upload hex file)&lt;/p&gt;
&lt;p&gt;3. nrfjprog (hex file)&lt;/p&gt;
&lt;p&gt;However, what it is not clear for me is that, I didn&amp;#39;t required to upload the softdevice seperately. Looking e.g. the hex file of the blinky project in ble_peripheral examples, I can see the title of each hex file includes the softdevice. What is happening here? The generated hex files of Nordic&amp;#39;s examples includes the softdevice? I mean maybe the linker merges application&amp;#39;s hex file with softdevice&amp;#39;s hex file?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1597405569225v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing nRF52840 module</title><link>https://devzone.nordicsemi.com/thread/263502?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 23:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a14137-b729-41f3-b768-b927aa90c2b1</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Nick,&lt;/p&gt;
&lt;p&gt;That is a long post :)&lt;/p&gt;
&lt;p&gt;I have tired to answer each question below, I haven&amp;#39;t used the RayTac modules before some my answers will be more generic.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"]Now I want to flash the third party module. What I have understood so far is that there are actually two methods to flash the SOC, either using DFU bootloader or using an external programmer like a J-Link. &lt;strong&gt;Is this right?&lt;/strong&gt;[/quote]
&lt;p&gt;Yes, that is right.&lt;/p&gt;
&lt;p&gt;[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"][/quote]&lt;/p&gt;
&lt;p&gt;What I&amp;#39;ve written is that in order to update the softdevice or the application or the bootloader directly from USB you have to implement the so called &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_secure_bootloader.html"&gt;secure DFU bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also it is required to implement the secure DFU bootloader if you want to update the application Over The Air (OTA)&amp;nbsp;&lt;strong&gt;right&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes that is correct.&amp;nbsp; The last time I checked Nordic didn&amp;#39;t have an example DFU bootloader the implemented both OTA and serial.&lt;/p&gt;
&lt;p&gt;[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The module I have received is equiped with a bootloader? In general when Nordic ships nRF SOCs are equiped with the Bootloader?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The J-Link EDU mini I purchased is equiped with the J-Link software or I have to install it manually?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Each module is different.&amp;nbsp; Some module manufacturers include code on the module to help get you up and running some do not.&amp;nbsp; The should be some details in the documentation for the module.&lt;/p&gt;
&lt;p&gt;No, Nordic doesn&amp;#39;t ship their modules with firmware on them unless you have very large volumes.&amp;nbsp; You normally need a Segger J-Link or J-Flash to program the chip.&amp;nbsp; Did you add connections to the SWCLK and SWDIO pins of the module on your prototype board?&amp;nbsp; This is where you connect the debugger.&lt;/p&gt;
&lt;p&gt;You should install&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools&lt;/a&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools"&gt;command line tools&lt;/a&gt;&amp;nbsp;so you can program the device.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"]In order to update the application through the J-Link I can use either Segger or nRF Desktop -&amp;gt; Programmer (adding the hex file)? Also I have read in some posts of using the nRFGo Studio (but I have not any experience with this)[/quote]
&lt;p&gt;nRFGo Studio is very old an shouldn&amp;#39;t be used any more.&amp;nbsp; You can use nRF Desktop as you pointed out or nrfjprog which is part of the command line tools linked above.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"]In order to upload a ble_peripheral example I have to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fgetting_started_softdevice.html"&gt;program the soft device&lt;/a&gt; first or it is not required? So far, I have purchased five nRF52840 DK and I&amp;#39;ve never needed to program the softdevice and all the examples running normally.[/quote]
&lt;p&gt;Yes if you want to use any of the Bluetooth LE examples you need to program the softdevice first.&amp;nbsp; The reason you haven&amp;#39;t needed to do it is Segger Embedded Studio does it for you when you debug your application.&amp;nbsp; If you have been testing just the peripheral examples then the soft device isn&amp;#39;t needed.&lt;/p&gt;
[quote userid="87871" url="~/f/nordic-q-a/64575/flashing-nrf52840-module"]In general what is the procedure before starting updating any third party module? Should I erase the module and then &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_bootloader.html"&gt;programming the bootloader&lt;/a&gt;? Where do I find the bootloader?[/quote]
&lt;p&gt;Again when using third party modules the vendor should provide some guidance as to what they module comes with if anything.&amp;nbsp; I normally erase the module and put on my own application.&lt;/p&gt;
&lt;p&gt;You need to compile the bootloader you self since you custom board is likely using different pins than the Nordic DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope this helps.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>