<?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>nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114280/nrf52832-fota-firmware-update-using-ble</link><description>Hi, 
 
 We have developed firmware for a custom broad using the nRF52832 with 512kB flash, and our firmware currently uses 48.5% of the flash. 
 We are using Zephyr and version 2.6.1 of the toolchain. 
 The bootloader, we can find in the documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Aug 2024 12:37:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114280/nrf52832-fota-firmware-update-using-ble" /><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500210?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 12:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e1ddeb2-4a8e-40c8-abd1-aa1abc84d8ad</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="jju"]Okay, but is it then possible to use an external flash with the nRF52832 FOTA nRF sdk ?[/quote]
&lt;p&gt;Yes it is possible to use an external flash for achieving OTA DFU.&amp;nbsp;&lt;span&gt;To update via BLE DFU with SPI external flash on nRF52832, you should make sure the&amp;nbsp;&lt;/span&gt;&lt;span&gt;SPI external flash works as expected at first. Here is&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/8bd088c7c2936dbc94eddd5ede980d45a341e73d/samples/drivers/jesd216"&gt;a sample&lt;/a&gt;. You can take a look at the settings:&amp;nbsp;&lt;a title="nrf52840dk_nrf52840_spi.conf" href="https://github.com/nrfconnect/sdk-zephyr/blob/8bd088c7c2936dbc94eddd5ede980d45a341e73d/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.conf"&gt;nrf52840dk_nrf52840_spi.conf&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="nrf52840dk_nrf52840_spi.overlay" href="https://github.com/nrfconnect/sdk-zephyr/blob/8bd088c7c2936dbc94eddd5ede980d45a341e73d/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay"&gt;nrf52840dk_nrf52840_spi.overlay&lt;/a&gt;&amp;nbsp;and adopt them for your nRF52832 custom board.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Enable mcuboot, you can use&amp;nbsp;&lt;/span&gt;sysbuild_fota.conf to include&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/sysbuild_fota.conf"&gt;sysbuild configs&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/prj_fota.conf#L80-L84"&gt;These external SPI settings&amp;nbsp;&lt;/a&gt;are for the app configuration.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The board overlay file looks like&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/boards/nrf5340_audio_dk_nrf5340_cpuapp_fota.overlay"&gt;this&amp;nbsp;&lt;/a&gt;for the app.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/sysbuild/mcuboot/prj_fota.conf#L48-L56"&gt;These external SPI setting (under&amp;nbsp;sysbuild/mcuboot)&amp;nbsp;&lt;/a&gt;are for the mcuboot.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The board overlay file looks like&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/sysbuild/mcuboot/boards/nrf5340_audio_dk_nrf5340_cpuapp_fota.overlay"&gt;this&amp;nbsp;&lt;/a&gt;for the mcuboot.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;As a starting point see the&amp;nbsp;the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_quick_start.html#bootloader-quick-start"&gt;Quick start guide&lt;/a&gt;&amp;nbsp;and this&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;Bootloaders and DFU/FOTA&lt;/a&gt;&amp;nbsp;course.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Abhijith&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500190?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 11:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a802bf6e-b406-4baa-b737-f7e0f86e6303</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Okay, but is it then possible to use an external flash with the nRF52832 FOTA nRF sdk ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500182?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 11:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3b843c0-b4d4-47f1-97b4-2f10da3775f5</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;Since our current firmware, which is not complete yet, uses 48.5% of the flash, I predict we will run into trouble with a full flash.&lt;/p&gt;
&lt;p&gt;Is it possible to just have a BLE bootloader and the firmware, so if anything goes wrong, it will just start in the bootloader ?&lt;/p&gt;[/quote]
&lt;p&gt;As Alan mentioned, single bank OTA DFU won&amp;#39;t be possible. You can either consider using the nRF52840 or another SoC with a larger flash size, or you can use an external flash memory to store the new image and then perform the swapping.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/memory-optimization-with-the-nrf-connect-sdk"&gt;This blog post &lt;/a&gt;provides recommendations for memory optimization using the nRF Connect SDK, and you may also find this&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/memory.html#general_recommendations"&gt; general recommendation&lt;/a&gt; helpful. These resources can help reduce memory footprint to some extent, but they may not provide a complete solution for your issue.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500153?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4be9ba57-564b-4d09-ab01-dc8cc669b157</guid><dc:creator>ekidsalan123</dc:creator><description>&lt;p&gt;seems that&amp;#39;s not possible, you will need BLE functions when downloading new firmware.&lt;/p&gt;
&lt;p&gt;use nRF52840 to have a larger flash size might be helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500152?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0733958-c258-4a89-b9c8-0bd1ea4f107f</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Okay, thank you, so basically OTA is only possible using dual-bank ?&lt;br /&gt;Can I just create a simple firmware (BLE+bootloader), that can update my &amp;quot;real&amp;quot; firmware in the same slot ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 FOTA (Firmware update using BLE)</title><link>https://devzone.nordicsemi.com/thread/500151?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:694a2b2d-0999-4706-86e7-8f151d6ac3dc</guid><dc:creator>ekidsalan123</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94761/ncs-single-bank-dfu/400154"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/94761/ncs-single-bank-dfu/400154&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Take a look!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>