<?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>NRF52810 bootloader size related questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85113/nrf52810-bootloader-size-related-questions</link><description>I&amp;#39;m looking to build a custom bootloader for my NRF52810 device. I&amp;#39;m developing on nrf sdk 17 with SD 112. I will be leveraging the secure bootloader example and re-using code. 
 https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2022 06:34:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85113/nrf52810-bootloader-size-related-questions" /><item><title>RE: NRF52810 bootloader size related questions</title><link>https://devzone.nordicsemi.com/thread/355932?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 06:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c21901-32f0-43c1-85d9-f3566dfb2850</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;YES! Ihave found it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 bootloader size related questions</title><link>https://devzone.nordicsemi.com/thread/355892?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 16:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a9b36d-4f3d-44bd-a4c0-0f2da7274661</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you allocated some pages for application data, through&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__dfu__config.html#gafeca0997c1671ecd32a25d6c17b16af3"&gt;NRF_DFU_APP_DATA_AREA_SIZE&lt;/a&gt;? Looks like you are missing 2 pages for the full available application size in the nRF52810 chip with s112.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 bootloader size related questions</title><link>https://devzone.nordicsemi.com/thread/355676?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 01:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4157b6e-cbfa-4161-af7c-65c6a0779584</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Hi, I have the same question with nRF52810.&lt;/p&gt;
&lt;p&gt;S112 bootloader&amp;#39;s ROM start from 0x28000, so my application start from 0x19000+0xF000. But when my application&amp;#39;s bin file over 52k, DFU will show insufficient resources.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52810 bootloader size related questions</title><link>https://devzone.nordicsemi.com/thread/354826?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 13:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63d43fc-662d-4837-bbd3-a04e6829efec</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;Can you please clarify what the last line means &amp;quot;&lt;span&gt;The size of the bootloader is fixed for the lifetime of the device. This is because the location (&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___m_b_r___d_e_f_i_n_e_s.html#ga21a55e684b30e9dabbf86859cd788b1a"&gt;MBR_BOOTLOADER_ADDR&lt;/a&gt;&lt;span&gt;) that stores the start address of the bootloader is not (safely) updateable. See the SoftDevice Specification for more information.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Am I not able to build a smaller custom boot loader? And write its start address into the UICR.NRFFW[0]?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, you can build a smaller bootloader. The line implies that you can&amp;#39;t change the bootloader size for a future bootloader version, and update the bootloader through DFU with the smaller/larger bootloader.&lt;/p&gt;
[quote user=""]More importantly, if I write a smaller bootloader, am I not able to use the flash space saved for my application?[/quote]
&lt;p&gt;If you build a smaller bootloader, you can use the saved space for your application. Note that the secure bootloader is already quite optimized from our end, so you may not be able to reduce the size by much.&lt;/p&gt;
[quote user=""]Secondly, all the DFU examples in the SDK seem to start at 0x22000 , instead of the memory layout in above link which says Bootloader for nrf52810 starts at 0x28000. Any reason for this? Are the DFU examples larger than the 24k set aside for bootloader in nrf52810?[/quote]
&lt;p&gt;Not sure which examples you looked at, but the secure BLE bootloader in &amp;quot;nRF5_SDK_17.1.0_ddde560\examples\dfu\secure_bootloader\pca10040e_s112_ble&amp;quot; has a start address of 0x28000 and a size of 0x6000. The debug projects may be larger, as they may include additional debugging/logging capabilities, etc.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>