<?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>Custom bootloader with nrf52832 dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102597/custom-bootloader-with-nrf52832-dk</link><description>Hello, 
 We have been trying to develop a custom bootloader, with ncs v2.3.0 
 As a starting point. we use a nrf52832 dk 
 1) I made a copy of the bootloader from the samples dir in ncs. which I renamed &amp;quot;my_bootloader&amp;quot;, in my apps local dir. 
 2) I use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Aug 2023 09:13:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102597/custom-bootloader-with-nrf52832-dk" /><item><title>RE: Custom bootloader with nrf52832 dk</title><link>https://devzone.nordicsemi.com/thread/440673?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 09:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7decf52-4440-4117-a1e6-044388bb0662</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Enjoy your vacation!&lt;/p&gt;
&lt;p&gt;You can use external flash for the secondary slot with the default bootloader. We do not have this by default for nRF52832, but we do have for other devices.&lt;/p&gt;
&lt;p&gt;I made a simple example showing how to configure this in devicetree for nRF52832. Since we are using mx25r64 for external flash on other boards I used the same in the example.The example is configured to use SPI2 for external flash, but this can be changed. By default it uses SPI, but I have added the configurations for using SPIM as comments, so all you need to do is uncomment the configurations.&lt;/p&gt;
&lt;p&gt;One thing to note is that child images do not inherit configurations in devicetree overlays or project configurations from the parent image, so I added mx25r64 to the boards devicetree instead (zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts). Normally, I would not recommend changing the dts files in the SDK, but if you are creating a custom board you would most likely put the external flash in the boards devicetree anyway. Another way is to add mx25r64 in both the projects and MCUboots overlays. You can see the changes I made to nrf52dk_nrf52832.dts in nrf52dk_nrf52832_dts_diff.txt.&lt;/p&gt;
&lt;p&gt;Please be aware that I have not tested the code. only that it builds, so I cannot guarantee that it works as it is. There might be some wrong configurations of the mx25r64 devicetree node, as I took it directly from a different overlay. &lt;br /&gt;Let me know if you run into any issues or have any questions!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_nrf52832_5F00_mcuboot_5F00_ext_5F00_flash.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_nrf52832_5F00_mcuboot_5F00_ext_5F00_flash.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom bootloader with nrf52832 dk</title><link>https://devzone.nordicsemi.com/thread/440463?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 10:23:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d72b51b-c83d-427b-ac23-67676108822f</guid><dc:creator>M Martin</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Our app is 350k, and we want to do remote upgrades. 350k is too big for the 52832, so we want to transfer the update in BLE, store it on a separate flash, and use a custom bootloader to verify and swap the images. Customizing the bootloader seems to me to be the simplest way to do this.&lt;/p&gt;
&lt;p&gt;I think in theory, it would also be possible to just specify an external flash in the dts, but I did not find enough information to do this, using the pins I want and the flash mem I want.&lt;/p&gt;
&lt;p&gt;I will have a look again at &amp;quot;adding a child image using the zephyr modules&amp;quot; .&lt;/p&gt;
&lt;p&gt;I will get back to you in 2 weeks ( after my vacation)&lt;/p&gt;
&lt;p&gt;Thanks and talk to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom bootloader with nrf52832 dk</title><link>https://devzone.nordicsemi.com/thread/440107?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 12:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd6227a-a04d-4215-bc30-d015fe70a026</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you explain what it is you want to achieve? Why do you want to use a custom bootloader instead of the existing solutions?&lt;/p&gt;
&lt;p&gt;If you want to add it as a child image, you must either add it as a module as described in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#ug-multi-image-add-child-image-oot"&gt;Adding a child image using Zephyr modules&lt;/a&gt;, or you must add it in nrf/samples/CMakeLists.txt.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>