<?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>Customizing a bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40966/customizing-a-bootloader</link><description>If all you need is changing PHY, Tx power and Device Name in a standard nRF52840, do you need building a new bootloader from the scratch or the is a way to edit the standard firmware, build a new edited file and finally re-program this file in a standard</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 06:47:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40966/customizing-a-bootloader" /><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216274?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 06:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b89a5e-a793-4920-8df9-1f1f7aaf0254</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;Glad to hear that it solved the problem, thanks for the update. I guess the original SDK example worked because it was built without the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_error.html?cp=5_5_0_3_13"&gt;DEBUG &lt;/a&gt;flag. That means the device will get reset if an error code is passed to the APP_ERROR_HANDLER() macro&amp;nbsp;instead of entering the infinite error loop.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216162?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 12:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b079cab0-d7fd-4183-8edb-76d0b5550582</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;&amp;iexcl;You simply got it!&lt;/p&gt;
&lt;p&gt;Let me tell you that I am more than shocked with your efficiency and certainly, this deserves a great great reward. Let me think wich one.&lt;/p&gt;
&lt;p&gt;Thanks very much for such great work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216121?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 11:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99338ffa-ad0e-40d7-9d06-f0fb2cfbf264</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case APP_UART_COMMUNICATION_ERROR:
     //APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication); &amp;lt;-- remove this line to ignore UART communication errors
break&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216109?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 10:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335e089a-b6bb-4ccd-ae6b-5e428d212a07</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;I see. But were in within all program should I&amp;nbsp; write this&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;em&gt;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&amp;quot;&lt;span&gt;&amp;nbsp; sentence?&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216051?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 06:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791ec5e3-9bca-4f7e-ae84-386dfe9ee7c0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;There&amp;#39;s nothing that indicates problems with the power supply. Your application code is running fine&amp;nbsp;except that it seems to be ending up the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_error.html?cp=5_5_0_3_13"&gt;error handler&lt;/a&gt;&amp;nbsp;as I mentioned. I suspect it happens because of an UARTE &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=3_0_0_5_33_3#concept_fpm_qcm_wr"&gt;error condition&lt;/a&gt;&amp;nbsp;which is why I asked you to comment the&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;em&gt;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&amp;quot; &lt;/em&gt;line. An error condition can for instance occur if you have a floating RX input.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/216005?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 16:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5561d737-2734-4de7-8b66-bef057818688</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;I took good care in using your modified file and not mine, so the problem should be easy to&amp;nbsp;trace for you, since only you know the changes which were introduced.&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t reproduce in your lab this simple, critic and repetitive failure I described, and it only happens to me, this would necessarily mean that the culprit&amp;nbsp;would necessarily&amp;nbsp;be either the&amp;nbsp;module+host PCB I am using myself (NINA-B306 in this case)&amp;nbsp;either the Power supply. The power supply I am using, is a battery from a very recognized Lithium Polimer manufacturer, and&amp;nbsp;the problem also happens if I use a professional power supply, so I would take this reason out of the failure candidates.&lt;/p&gt;
&lt;p&gt;Regarding the module, remember that mine works perfectly when instead your file, I program the SDK v15.2.0 original ble-uart app, all this meaning that most probably, the problem comes from&amp;nbsp;any of the code modifications made on your file.&lt;/p&gt;
&lt;p&gt;All this said, I will be glad (always with your guidance) to try and discover which is the code line in your file&amp;nbsp;causing the problem, but before, it would be encouraging to know if the problem I described, happens also to you or nor, since I am not fully familiarized with all your code functions, commands and argot etc. and is going to be a tough job. Thanks.&lt;/p&gt;
&lt;p&gt;Waiting on your comments,&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215821?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 06:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f0cf69-a0ac-4770-977c-13342ec90e91</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;It looks like your program is&amp;nbsp;entering the&amp;nbsp;&lt;span&gt;app_error_fault_handler() from the UART callback. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try to comment out the &amp;quot;&lt;/span&gt;&lt;em&gt;APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&amp;quot; &lt;/em&gt;line for the&amp;nbsp;APP_UART_COMMUNICATION_ERROR event and see if that helps.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215780?ContentTypeID=1</link><pubDate>Sat, 19 Oct 2019 15:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8768fc8b-392f-4a98-b776-29563813413f</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;Here you have the readregs command output snapshot:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nRF52840-in-NINA_2D00_B306-mRFjprog_5F00_-readregs.jpg" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the snapshot when the module is programmed with your original ble-uart modified file, which presents exactly the same symptoms than the later modified files we built in our own, further modifying few more parameters. Thanks for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215293?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9cf64bc-d4f0-44a8-9119-88d3f32a3f03</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you run &amp;quot;&lt;a class="active" title="Programming nRF5x SoCs with nrfjprog" href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_nrfjprogexe.html?cp=6_1_3"&gt;nrfjprog&lt;/a&gt;--readregs&amp;quot; after you&amp;#39;ve programmed the FW and post the result here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215290?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943a5755-da06-4d83-a32e-32ee72ecd74f</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;No. I do not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215279?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 12:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02677dad-aab9-4fbc-b704-34a45855a96c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m fine, thank you. I kept the default power settings when I created the sample code, but even if I did it should not have had any impact on POR. My guess is that you get a code assertion after boot that causes the program to hang inside the&amp;nbsp;app_error_fault_handler() function. Are you able to debug the application to see if your program reaches main()? Do you have debug logging enabled?&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/215243?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 10:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31373473-40c5-4185-b7c4-1bfa8b103c14</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;How are you Vidar?&lt;/p&gt;
&lt;p&gt;We have been thoroughly testing your (see above link you sent us some time ago: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300&lt;/a&gt;) modified ble-uart application in several BLE modules and everything works flawlessly except one marginal problem we hope to be able to solve with your help.&lt;br /&gt;The problem is that all the modules we tested (all from the ublox NINA-B3 family with a nRF52840 SoC inside) running your modified firmware, present an erratic Power-On process (the modules simply don&amp;acute;t switch on, nor transmit anything), whereas when they run a non-modified ble-uart application from the SDK 15.2.0, the problem does not happen. Surprisingly, when the module is being fed from an external power supply and does not switch-on, we can measure a DC consumption of around 6 mA. The problem shows up no matter we feed the module with a power supply or with a battery.&lt;br /&gt;As far, the only way to boot up the module we found is switching on and off the power supply continuously till it does boot ...&lt;br /&gt;We suspect that the problem may be related with the nRF52840 Power Module Unit (PMU) which as you know controls the Power-On Reset and the Module initialization. &lt;br /&gt;My question is. Do you know if some of the modifications which were made on this ble-uart file you sent us were affecting the PMU block? Affecting may be to any of the power mngt library files we&amp;#39;ve found in the components SDK directory like &amp;quot;nrf_pwr_mgmt.c&amp;quot; or &amp;quot;nrf_pwr_mgmt.h&amp;quot;?&lt;br /&gt;Apart from this, do you have any suggestion to get around this annoying problem?&lt;/p&gt;
&lt;p&gt;We would very much appreciate your help.&lt;br /&gt;Thanks so much.&lt;br /&gt;Regards.&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/181033?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 12:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb6f66d-b495-4d4d-8708-f483f5627634</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;Everything is working flawlessly now. Regarding your modified ble_app_uart example and its PHY_CODED modulation, what is the BLE data rate actually&amp;nbsp;set in this case. 125 or 500 kbps?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/178524?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 22:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a4690f-5361-47f8-8e65-d6b594df7e2e</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Thanks, Vidar.&lt;/p&gt;
&lt;p&gt;By the way. Do you know of any smartphone BT v5.0 PHY_CODED compatible, apart&amp;nbsp;from (I read it somewhere) the ONEPLUS 6?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/178225?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 07:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38385ef-e73b-4fbe-a51d-fa9339e5a779</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;You can use the advertising_init() function from the original ble_app_uart example in SDK 15.2.0 if you want to revert back to 1M.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/178204?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 21:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bae4caa-1c35-4fc1-ab3b-b6dc4afc3ea7</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;APP_ADV_DURATION is now set to &amp;#39;0&amp;#39; and working fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One more thing. If I want to revert your modified ble_app_uart peripheral example to PHY_1MBPS modulation (which I imagine is the one you can scan with a standard&amp;nbsp;dongle), would you please tell me which code statements should I edit? I tried on my own editing &amp;#39;init.config.ble_adv_primary_phy&amp;#39; and &amp;#39;init.config.ble_adv_secondary_phy&amp;#39; main.c initialization statements, but obviously with not very much success.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Juan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/177995?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 07:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0971ef82-7dd0-45de-8a36-67f6972d698c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;Did you use the&amp;nbsp;&lt;span&gt;ble_app_uart_c example from my modified SDK on the dongle? You will need a scanner that is set up to scan for CODED_PHY advertisement&amp;nbsp;packets. Otherwise, it won&amp;#39;t be able to scan any packets from this peripheral.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="p143"]Apart from this, if I&amp;nbsp;change APP_ADV_DURATION from &amp;quot;18000&amp;quot; to &amp;quot;0&amp;quot;,&amp;nbsp; &amp;nbsp;(as I need permanent advertising), nothing seems to change except that&amp;nbsp;LED 1 stops blinking.[/quote]
&lt;p&gt;&lt;span&gt;In addition to setting APP_ADV_DURATION to &amp;#39;0&amp;#39; you need to change the adv. flag from BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE to&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE in advertising init.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/177923?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 20:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec80fc14-5636-4047-9296-625d9d229e83</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Now I have the ble_app_uart example compiled and running on&amp;nbsp;my PCA10056. As expected and&amp;nbsp;according&amp;nbsp;to the main.c&amp;nbsp;source code, Tx_power is set to +8 dBm,&amp;nbsp; the modulation is CODED_PHY, the Device _Name is set to &amp;quot;Nordic_uart&amp;quot;, the LED 1 is blinking and I also&amp;nbsp;&lt;span&gt;&amp;nbsp;can read the text &amp;quot;UART Start!&amp;quot; printed on the PuTty terminal emulator running on the computer&lt;/span&gt; but unfortunately, &lt;strong&gt;the device_name is not being advertised, &lt;/strong&gt;so I can&amp;#39;t connect the module from my nRF52840 USB Dongle to complete the ble_app_uart example test.&lt;/p&gt;
&lt;p&gt;If I review&amp;nbsp;the main.c code, I can see an advertising_init(); and also an advertising_start(); statement, but no advertising going on. I tried introducing an adv_start(); just after advertising_init(); since you told me to do so in the past (while discussing about&amp;nbsp;the central &amp;amp; peripheral cli example. See above comments) but the compiler does not accept it.&lt;/p&gt;
&lt;p&gt;Apart from this, if I&amp;nbsp;change APP_ADV_DURATION from &amp;quot;18000&amp;quot; to &amp;quot;0&amp;quot;,&amp;nbsp; &amp;nbsp;(as I need permanent advertising), nothing seems to change except that&amp;nbsp;LED 1 stops blinking.&lt;/p&gt;
&lt;p&gt;Being anyway the advertising matter my main concern, what am I missing?&lt;/p&gt;
&lt;p&gt;Any suggestion will be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/177481?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 06:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ad11d5d-691e-4f8a-874c-e32cff0f36e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Juan,&lt;/p&gt;
&lt;p&gt;The modified SDK uses s140 v.6.1.1 already. If you have started with a new SDK copy you can replace the entire &amp;quot;s140&amp;quot; folder with the one from&amp;nbsp;nRF5_SDK_15.2.0_mod (\nRF5_SDK_15.2.0_mod\components\softdevice\s140). nrf_error.h is located in s140/headers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/177457?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 23:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6905131b-122e-436d-a389-d75f1ea74a32</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;Using the modified SDK you sent to me (see above link) and changing the original S140 with the S140 v6.1.1 you suggested, I get this error while compiling:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nrf_5F00_error_5F00_h.png" /&gt;&lt;/p&gt;
&lt;p&gt;Since it seems that the &amp;quot;nrf_error.h&amp;quot; file path is missing, where in the modified SDK folder&amp;nbsp;could I find this header file?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/162048?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 11:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a27a989-665b-4066-a259-c8ba83e062e7</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;Hope you had a pleasant Christmass.&lt;/p&gt;
&lt;p&gt;After programming&amp;nbsp;in my nRF52840 DK board the&amp;nbsp;ble_app_uart modified example you suggested, let me make a couple&amp;nbsp;of comments.&lt;/p&gt;
&lt;p&gt;1/ Using the Segger Embedded Studio IDE I&amp;nbsp;couldn&amp;#39;t find the file &amp;quot;ble_m.c&amp;quot; in order to&amp;nbsp;type the &amp;quot;adv_start();&amp;quot; sentence you told me. Instead, I&amp;#39;ve noticed that there is an &amp;quot;advertising_init();&amp;quot;&amp;nbsp;sentence in the &amp;quot;main.c&amp;quot; file, and even&amp;nbsp;an &amp;quot;advertising_start();&amp;quot; sentence few lines later on the script. If I try to edit this file instead of the&amp;quot;ble_m.c&amp;quot; one, the SES IDE says it doesn&amp;#39;t recognize the&lt;span&gt;&amp;nbsp;&amp;quot;adv_start();&amp;quot; sentence but suggest typing &amp;quot;advertising_start() instead;&amp;quot;. Then, if I write &amp;quot;advertising_start()&amp;quot; right after &amp;quot;advertising_init()&amp;quot;, LED1 goes&amp;nbsp;permanently&amp;nbsp;on, but device_name is not being advertised. If instead I write nothing, and since in the referred modified example you&amp;nbsp;told me,&amp;nbsp;there is already an &amp;quot;advertising_start();&amp;quot;&amp;nbsp;sentence a bit further on in the original script, what I get is LED1 intermittently&amp;nbsp;blinking&amp;nbsp;but again, no device_name being advertised.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2/ To make things harder, with this example I can&amp;#39;t open a PuTTY session with the&amp;nbsp;nRF52840 DK board to see what&amp;#39;s going on by&amp;nbsp;using CLI commands.&lt;/p&gt;
&lt;p&gt;3/ If instead of the modified example I use the standard SDK_v15.2.0&amp;nbsp; ble_app_interactive you find in the&amp;nbsp;ble_central and peripheral&amp;gt;experimental folder, then I can find the ble_m.c file you mention, LED3&amp;nbsp;goes permanently on, and everything&amp;nbsp;goes fine as you said but then obviously, PHY is not coded and Tx_Power is not +8dBm (as it would have&amp;nbsp;happened if I would have used the modified example)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As&amp;nbsp;a conclusion, It seems to me that the modified example shall be further edited in order to accept the &amp;quot;adv_start();&amp;quot; sentence. I&amp;#39;m I right? Could you help on that?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;In the&amp;nbsp;hope you&amp;nbsp;will be still willing to provide some guidance to me,&amp;nbsp; then I&amp;nbsp;fill we are near to achieve the initially intended&amp;nbsp;goal.&lt;/em&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Waiting&amp;nbsp;on your comments,&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Thanks in advance.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/161528?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 18:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96cd9242-7c8e-440a-a89e-e0cfcefe0cde</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;OK OK. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/161525?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 18:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c5c676f-4444-44da-afb2-b9b5783e6f29</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a &amp;quot;diff&amp;quot; to show the change I made. Just add the &amp;quot;adv_start();&amp;quot; line after advertising_init(); in ble_m.c at line number ~1872 and it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/161512?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 16:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02c94fe9-6111-41f7-933d-e152b6969943</guid><dc:creator>p143</dc:creator><description>&lt;p&gt;Hi Vidar.&lt;/p&gt;
&lt;p&gt;Are you sure we are not missing&amp;nbsp;a starting parenthesis ({) in the script you sent me?&lt;/p&gt;
&lt;p&gt;and also, where should I copy this script, at the end of the ble_m.c file script or not matter where in within?&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Customizing a bootloader</title><link>https://devzone.nordicsemi.com/thread/161123?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 08:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:727cbd51-8a2f-4f0b-b607-1ef76a8737b7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You are not wrong, just add adv_start() here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;+++ b/examples/ble_central_and_peripheral/experimental/ble_app_interactive/ble_m.c
@@ -1872,6 +1872,7 @@ void ble_m_init(void)
     bas_init();
     conn_params_init();
     advertising_init();
+    adv_start();
 }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="p143"](Post Data. The link&amp;nbsp;&lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52840-DK/S140-SD-v6/60625"&gt;https://www.nordicsemi.com/eng/nordic/Products/nRF52840-DK/S140-SD-v6/60625&lt;/a&gt;&amp;nbsp;you provide gives a 404 error )[/quote]
&lt;p&gt;This is a link to our old website, it should have been redirected. Use this one instead:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software/S140/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-Tools/Software/S140/Download#infotabs&lt;/a&gt; &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software/S140/Download#infotabs"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>