<?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>How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114316/how-to-enable-disable-mcuboot-fota</link><description>Hi, 
 
 I have tested the MCUboot FOTA for my sensor with the peripheral_lbs sample project, by enabling the macros: 
 
 
 
 This works, and I can bootload the sensor via the nRF App. 
 
 On our custom board, we also use bluetooth, but when adding the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2024 13:26:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114316/how-to-enable-disable-mcuboot-fota" /><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500607?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 13:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c84fb61-428a-43db-be00-985e0c4eac4c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jju"]1. We have some very timing critical stuff in our firmware, so we would like to check what code is actually running, when including the NCS sample.[/quote]
&lt;p&gt;It is quite magic indeed. To quote myself from the course:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;br /&gt;use that.&lt;br /&gt;This configuration is named CONFIG_NCS_SAMPLE… as it makes some assumptions about the project. For your custom project, I recommend that you look at what configurations &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU"&gt;&lt;code&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/code&gt;&lt;/a&gt; set for you, and include the ones from there you need instead.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Anyways. This enabled the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/device_mgmt/index.html#device-mgmt"&gt;mcumgr library&lt;/a&gt; in zephyr, which sets up a BLE service for you which lets you send FOTA over BLE.&lt;/p&gt;
&lt;p&gt;It will still be up to you to set up BLE and advertise. The setting just sets up the service.&lt;/p&gt;
[quote user="jju"]1. We have some very timing critical stuff in our firmware, so we would like to check what code is actually running, when including the NCS sample.[/quote]
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/subsys/mgmt/mcumgr"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/subsys/mgmt/mcumgr&lt;/a&gt;&lt;/p&gt;
[quote user="jju"]2. We want to use our current App communications to enable DFU, but if the CONFIG_NCS_... stuff is included, this will (I guess) happen automatically ?[/quote]
&lt;p&gt;Yes it will. &lt;/p&gt;
&lt;p&gt;But you can see what is done in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/mgmt/mcumgr/transport/src/smp_bt.c"&gt;here,&lt;/a&gt; and then not set &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUMGR_TRANSPORT_BT"&gt;CONFIG_MCUMGR_TRANSPORT_BT&lt;/a&gt;, and instead set it up manually.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500518?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 07:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34575b55-28f7-43c8-a743-7d96880fd837</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Okay, maybe I&amp;#39;m just slow today... :-)&lt;br /&gt;I&amp;nbsp;am guessing that the&amp;nbsp;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y&lt;br /&gt;includes some code that can accept some magic BLE command, that will run the DFU.&lt;br /&gt;But two things:&lt;br /&gt;1. We have some very timing critical stuff in our firmware, so we would like to check what code is actually running, when including the NCS sample.&lt;br /&gt;2. We want to use our current App communications to enable DFU, but if the CONFIG_NCS_... stuff is included, this will (I guess) happen automatically ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500516?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 07:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46982791-a3b8-4bde-baa6-17c1484be225</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jju"]I have now read most of the information on the link, but still cannot figure out, how to make the sensor enter bootmode from my firmware ?[/quote]
&lt;p&gt;For BLE, you perform DFU when the application is running.&lt;/p&gt;
&lt;p&gt;Then you reset the device, and DFU is performed. No bootmode is needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500515?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 07:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f80bd918-d4d8-4fdf-97ae-022cc0280e1b</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Oh, sorry. Our sensor is just a custom board with the nRF52832.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500513?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 06:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b585122d-a828-43d1-8235-cb46b4ed7107</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;sensor&amp;quot;? Do you mean the nRF microcontroller?&lt;/p&gt;
&lt;p&gt;I ask for the clarification because sensor is often used about external hardware connected to the nRF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500509?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 06:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4f1aff-9314-40cf-866c-cbf9026b8935</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Thank you.&lt;br /&gt;I have now read most of the information on the link, but still cannot figure out, how to make the sensor enter bootmode from my firmware ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable / disable MCUboot FOTA</title><link>https://devzone.nordicsemi.com/thread/500386?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 09:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e3a79a8-c808-4754-8465-b537fd9fcc5e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>