<?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>Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89324/add-usb-bootloader-to-ble-bootloader</link><description>Dear Nordic Engineers 
 I would like to add usb bootloader to ble bootloader. 
 I modify config of pca10056_usb_debug/sdk_config.h and add .c .h file of pca10056_usb_debug to pca10056_s140_ble. 
 After I encounter some errors: 
 
 This is my flash.xml</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jun 2022 13:04:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89324/add-usb-bootloader-to-ble-bootloader" /><item><title>RE: Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/thread/374744?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 13:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99cfd2ac-221b-4e9c-976b-1de93d72b277</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I tried to build your project but it got another issue:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:318px;max-width:652px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1304x636/__key/communityserver-discussions-components-files/4/2313.pastedimage1656507313182v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would suggest you to have a look at&amp;nbsp;this case:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72015/official-ble-and-uart-combined-dfu-bootloader"&gt;Official BLE and UART Combined DFU bootloader?&lt;/a&gt;&amp;nbsp;There is an instruction on how to do it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I also made an example &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35431/dfu-over-ble-and-usb/166471"&gt;here &lt;/a&gt;, it&amp;#39;s for UART and BLE in SDK v15.2 but it&amp;#39;s a good source of reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/thread/374706?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 10:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31ec0e1c-3287-4ca0-b6c1-5ae83d59629d</guid><dc:creator>Hannibalhz</dc:creator><description>&lt;p&gt;Dear Bui&lt;/p&gt;
&lt;p&gt;I use NRF5 SDK 17.1.0.I will try to&amp;nbsp;&lt;span&gt;increase the flash more.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please help me review my project.Does it have other problem?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/thread/374538?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 12:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80b4873-2765-4f82-9012-3b0c7102f72e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wang,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Have you tried to increase the flash more ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that if you use Oberon library it will require more flash space.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please state the SDK version you are using.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/thread/374430?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 02:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870bb473-5478-45c6-b1b7-d70162a2255a</guid><dc:creator>Hannibalhz</dc:creator><description>&lt;p&gt;Dear Bui&lt;/p&gt;
&lt;p&gt;The following file is my project.&lt;/p&gt;
&lt;p&gt;I will try to change to&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_START=0xf6000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_SIZE=0x8000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It displays some new errors:&lt;/span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘secure_bootloader_ble_s140_pca10056_debug’ from solution ‘secure_bootloader_ble_s140_pca10056_debug’ in configuration ‘Release’
Generating linker script ‘secure_bootloader_ble_s140_pca10056_debug.ld’
Linking secure_bootloader_ble_s140_pca10056_debug.elf
.text is too large to fit in FLASH1 memory segment
.crypto_data is too large to fit in FLASH1 memory segment
.dfu_trans is too large to fit in FLASH1 memory segment
.svc_data is too large to fit in FLASH1 memory segment
.log_const_data is too large to fit in FLASH1 memory segment
.nrf_balloc is too large to fit in FLASH1 memory segment
.log_backends is too large to fit in FLASH1 memory segment
.sdh_ble_observers is too large to fit in FLASH1 memory segment
.sdh_req_observers is too large to fit in FLASH1 memory segment
.sdh_state_observers is too large to fit in FLASH1 memory segment
.sdh_stack_observers is too large to fit in FLASH1 memory segment
.sdh_soc_observers is too large to fit in FLASH1 memory segment
.fs_data is too large to fit in FLASH1 memory segment
.rodata is too large to fit in FLASH1 memory segment
.data is too large to fit in FLASH1 memory segment
section .tdata overlaps absolute placed section .mbr_params_page
section .mbr_params_page VMA [00000000000fe000,00000000000fefff] overlaps section .text VMA [00000000000f63b8,000000000010352b]
Build failed&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please give me some good suggestion.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7416.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../7416.sdk_5F00_config.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4572.ses.zip"&gt;devzone.nordicsemi.com/.../4572.ses.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add usb bootloader to ble bootloader.</title><link>https://devzone.nordicsemi.com/thread/374356?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 13:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:140bafe2-0757-4fa6-b5db-a6f318ab8d1d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wang,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let me know what exactly you did by &amp;quot;&lt;span&gt;&amp;nbsp;pca10056_usb_debug/sdk_config.h and&amp;nbsp; add .c .h file of&amp;nbsp; pca10056_usb_debug to&amp;nbsp;pca10056_s140_ble.&amp;quot;&amp;nbsp; ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The error is suggesting that the flash size configure for the bootloader is not enough to handle both the USB and BLE transport layer.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;What you need to do is to increase the size of the bootloader. To do that you need to move the start address of the bootloader down, for example instead of &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_START=0xf8000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_SIZE=0x6000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can change it to&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_START=0xf6000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_SIZE=0x8000&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>