<?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 change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76820/how-to-change-the-dfu-bootloader-tx-power</link><description>Hi 
 I have a question, the Nordic SDK have a DFU, I want to know what is the default value of TX power in Bootloader? Can we change the TX power? if yes. How to change it? 
 
 Thanks! 
 Looking forward to your reply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 05:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76820/how-to-change-the-dfu-bootloader-tx-power" /><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/318086?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 05:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a57044-c221-4b5c-9d12-b06dab2b8e66</guid><dc:creator>frankraul</dc:creator><description>&lt;p&gt;Hi,Charlie&lt;/p&gt;
&lt;p&gt;Ok，Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/317973?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 12:33:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f8cf6a-a5a3-49fd-8172-d0a9e8f531f7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Frankraul,&lt;/p&gt;
&lt;p&gt;You can expand the bootloader size by modifiying the flash map configuration. For example,&amp;nbsp;the current bootloader starting address of&amp;nbsp;&lt;span&gt;nRF52840 (S140 v7.0.x)&amp;nbsp;BOOTLOADER_START_ADDR&lt;/span&gt;&amp;nbsp;is 0xFE000 as shown on the memory map, you can shift it down to&amp;nbsp;0xFD000 to get extra 4KB space. The following code in nrf_bootloader_info.h shows&amp;nbsp;CODE_START decides&amp;nbsp;&lt;span&gt;BOOTLOADER_START_ADDR.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BOOTLOADER_START_ADDR (CODE_START)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;CODE_START is defined in &amp;quot;app_util.h&amp;quot; as&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define CODE_START ((uint32_t)&amp;amp;_vectors)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is decicded by paramenter in SES IDE. Choose Options-&amp;gt;Common-&amp;gt;Linker-&amp;gt;Section Placement Macros, and modify FLASH_START from 0xf1000 to 0xf0000. This will finally shift&amp;nbsp;&lt;span&gt;BOOTLOADER_START_ADDR to 0xFD000.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/315x240/__key/communityserver-discussions-components-files/4/6180.bootloarderSize.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/317849?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 07:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a82b803-987b-476c-8750-bf2b1c1c2356</guid><dc:creator>frankraul</dc:creator><description>&lt;p&gt;Hi,Charlie&lt;/p&gt;
&lt;p&gt;Understand,Thanks for your reply, but we need&amp;nbsp;add some&amp;nbsp;&lt;span&gt;&amp;nbsp;hardware initialization in bootloader project, Flash is full,we can not add.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/317638?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 08:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84c12be-0937-40ca-9b7e-327272c433f4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Frankraul,&lt;/p&gt;
&lt;p&gt;Please read the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_modules.html"&gt;Bootloader and DFU modules&lt;/a&gt;&lt;span&gt;&amp;nbsp;to have an overview of these concepts. For your questions:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. When you use the bootloader, the memory is divided into different zones with different usage. You can find here the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=8_1_3_5_0_7#lib_bootloader_memory"&gt;memory map&lt;/a&gt; assignment of nRF52 with softdevice enabled. You can say the flash is full or it is prearranged :-)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I suspect that you want to add your own application code to the example. This is not correct. You should build and sign your application separately and using DFU to program it. This is the reason why you use bootloader and DFU, isn&amp;#39;t it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/317578?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 01:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c2e5aa-1af3-4a0b-ae48-c566a18f848c</guid><dc:creator>frankraul</dc:creator><description>&lt;p&gt;Hi,Charlie&lt;/p&gt;
&lt;p&gt;Ok,Thanks for your reply.but there is one question. the nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble\ses project, The flash space&amp;nbsp;almost been&amp;nbsp;used up. I can not add new code in the project.please see below picture.Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE56_-2021_2D00_06_2D00_29-093711.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE56_-2021_2D00_06_2D00_29-094102.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the DFU bootloader TX power</title><link>https://devzone.nordicsemi.com/thread/317477?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6840e114-4c02-47d1-bfcd-daddf1251293</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Frankraul,&lt;/p&gt;
&lt;p&gt;The bootloader does not have the configuration for BLE TX power.&lt;/p&gt;
&lt;p&gt;It is the softdevice that decides the default value of TX power.&amp;nbsp;&lt;span&gt;The default TX power with the softdevice is the same with the default TX power in the radio TXPOWER register which is 0x00 (0dbm).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can use sd_ble_gap_tx_power_set() to change TX power level. For an implementation example of the TX Power Service, you can refer to the ble_app_proximity example in the SDK.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>