<?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>OTA and BLE services</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108526/ota-and-ble-services</link><description>Hello everyone 
 
 I have been testing nrf52840 BLE .The project works but know I would like to add a way to upgrade firmware over BLE .But I don&amp;#39;t know if I can keep the existing BLE services together with OTA or manually jump to special partition/mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2024 20:47:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108526/ota-and-ble-services" /><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/471134?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 20:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c179aa4-f48e-4cf8-b40e-4d17224c6b25</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jesus Velasquez"]Is there any sample ready to use for nrf52840 ?[/quote]
&lt;p&gt;You can use the peripheral_lbs sample with those three configs.&amp;nbsp;&lt;/p&gt;
[quote user="Jesus Velasquez"] it stuck ther.Am I missing some step ?[/quote]
&lt;p&gt;Do you update with the same&amp;nbsp;&lt;span&gt;pm_static.yml?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To perform DFU, you must&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#ug-pm-static"&gt;&lt;span&gt;define a static partition map&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;because the dynamically generated partitions can change between builds. This is also important when you use a precompiled HEX file as a child image instead of building it. In such cases, the newly generated application images may no longer use a partition map compatible with the partition map used by the bootloader. As a result, the newly built application image may not be bootable by the bootloader. See&lt;/span&gt;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu"&gt;&lt;span&gt;Static&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;partition&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;requirement&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;DFU&lt;/span&gt;&lt;/a&gt;&amp;nbsp;doc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To create pm_static, I would start by doing the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/matter_weather_station/configuration/thingy53_nrf5340_cpuapp/pm_static.yml"&gt;sample_pm_static.yml&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open your old build/partitions.yml&lt;/li&gt;
&lt;li&gt;Observe that the content in the autogenerated file is similar to the pm_static file from the two files above.&lt;/li&gt;
&lt;li&gt;Open &amp;lt;your_project&amp;gt;/pm_static.yml&lt;/li&gt;
&lt;li&gt;Copy app and mcuboot content from partitions.yml to pm_static.yml&lt;/li&gt;
&lt;li&gt;Compare with sample_pm_static.yml and remove all parts of yml that are not needed (such as end_address)&lt;/li&gt;
&lt;li&gt;Try to build the project.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/471126?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 19:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b23a2031-98dc-4098-9e98-ed8a4d2727e1</guid><dc:creator>Jesus Velasquez</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;About Mobile app is ok . related to mcuboot issue&amp;nbsp; , I&amp;#39;m using NCS 2.5 . I got my BT BLE project (peripheral ) and just adding this&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709060329559v1.png_2D00_640x480.png_2D00_640x480.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I was able to perform a firmware upgrade using&amp;nbsp; nRF-Connect-Device-Manager , but seems like somethis is missing .Is there any sample ready to use for nrf52840 ? .The error that I get is&amp;nbsp; a timeout at mobile application.And at the device side&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1709060490261v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and it stuck ther.Am I missing some step ? I&amp;#39;m using the app-update.bin fron build folder to update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/470888?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 22:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f7726a0-0467-43ee-80c3-a333bb130649</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jesus Velasquez"] I want to know if&amp;nbsp;I can do another app customized .[/quote]
&lt;p&gt;Not sure if I understand the question correctly or not. You could develop your app, but our support is based on the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF-Connect-Device-Manager&lt;/a&gt;&lt;span&gt;&amp;nbsp;mobile app. On the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF-Connect-Device-Manager&lt;/a&gt;&amp;nbsp;mobile app page link, there are iOS and Android source codes for reference.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Jesus Velasquez"]I&amp;#39;m getting issues when I do the upgrade , sometimes it perform the update but get stuck there and I need to manually reset&amp;nbsp;[/quote]
&lt;p&gt;With which app,&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF-Connect-Device-Manager&lt;/a&gt;&amp;nbsp;mobile app or&amp;nbsp;another app customized?&lt;/p&gt;
&lt;p&gt;Which NCS version are you using? Could you try the last version v2.5.2?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you provide the log from the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF-Connect-Device-Manager&lt;/a&gt;&amp;nbsp;mobile app and the device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/470822?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 16:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302c1dd4-9ca9-48a6-b0b0-a5f853f6669e</guid><dc:creator>Jesus Velasquez</dc:creator><description>&lt;p&gt;Hello&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks for the reply. I&amp;#39;ve been using that one , but I want to know if&amp;nbsp;I can do another app customized .I&amp;#39;m getting issues when I do the upgrade , sometimes it perform the update but get stuck there and I need to manually reset&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/470532?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 22:29:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c295c50-e9a6-4c58-b73e-3c3893a432d2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager&lt;/a&gt;&amp;nbsp;mobile app to update.&amp;nbsp;&lt;/p&gt;
[quote user="Jesus Velasquez"]How do I know all the requeriments for BT firmware upgrade ? like advertising limitations[/quote]
&lt;p&gt;The firmware is only processed during the connection instead of advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/470324?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 19:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f16a79da-a42b-4a56-95a8-ec894f9e8778</guid><dc:creator>Jesus Velasquez</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Amanda H&lt;br /&gt;&lt;br /&gt;thanks for the quick reply , I was able to generate&amp;nbsp; static partition by copying que generated after activate mcu boot . I was able to make&amp;nbsp; work part of the BT application with the&amp;nbsp; firmware upgrade. It seems to be hidden .But I notice that the advertising that I&amp;#39;m using is not supported .So I was planning to put the mcu in certain advertising mode for the firmware upgrade. Besides this, Is there any soruce code , library or similar to integrate the firmware upgrade to an existing mobile app ? . And How do I know all the requeriments for BT firmware upgrade ? like advertising limitations&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA and BLE services</title><link>https://devzone.nordicsemi.com/thread/470116?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 20:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfcf3535-312e-49db-9627-5214ad6676ef</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check out my colleague&amp;#39;s sample&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&lt;span&gt;f you want to perform DFU, you must&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#ug-pm-static"&gt;&lt;span&gt;define a static partition map&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;because the dynamically generated partitions can change between builds. This is important also when you use a precompiled HEX file as a child image instead of building it. In such cases, the newly generated application images may no longer use a partition map that is compatible with the partition map used by the bootloader. As a result, the newly built application image may not be bootable by the bootloader. See&lt;/span&gt;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders/bootloader.html#static-partition-requirement-for-dfu"&gt;&lt;span&gt;Static&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;partition&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;requirement&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;DFU&lt;/span&gt;&lt;/a&gt;&amp;nbsp;doc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To create pm_static, I would start by doing the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/matter_weather_station/configuration/thingy53_nrf5340_cpuapp/pm_static.yml"&gt;sample_pm_static.yml&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open your old build/partitions.yml&lt;/li&gt;
&lt;li&gt;Observe that content in autogenerated file is similar to pm_static file from the two files above.&lt;/li&gt;
&lt;li&gt;Open &amp;lt;your_project&amp;gt;/pm_static.yml&lt;/li&gt;
&lt;li&gt;Copy app and mcuboot content from partitions.yml to pm_static.yml&lt;/li&gt;
&lt;li&gt;Compare with sample_pm_static.yml and remove all parts of yml that is not needed (such as end_address)&lt;/li&gt;
&lt;li&gt;Try to build project.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>