<?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>FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117284/fota-over-ble-fails-after-upgrade-to-ncs-2-8-0</link><description>Hi, 
 
 I&amp;#39;m trying to implement firmware updates over BLE with mcuboot as boot loader. 
 I got it working with NCS 2.6.1, but I&amp;#39;ve upgraded to NCS 2.8.0 and now nRF Connect for iOS gives the error: Sending the request timed out. 
 
 I have the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 15:39:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117284/fota-over-ble-fails-after-upgrade-to-ncs-2-8-0" /><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/517997?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 15:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01082922-883a-45e5-ba2c-b9918cab47cf</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;It turned out that the issue was that the `adc_read_async` call was being performed from within the timer handler. It seems that timer handlers run in ISR context. When performing the `adc_read_async` from a work item submitted by the timer handler the system freeze vanishes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515820?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 19:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc7b8ad-abb1-4ec2-b865-b5e04395d0a3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try to check the logs. Debug logs are disabled by default. You can scroll to the top of logs, tap on Filter and enable &amp;quot;Debug&amp;quot;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515398?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 08:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b26a4f-b817-4294-93a0-b31ddf37aa84</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;Disabling the buffer count doesn&amp;#39;t solve it, the firmware still stops running.&lt;/p&gt;
&lt;p&gt;I did notice however that the BLE connection itself is maintained when the firmware stops running, so it seems that not everything in the firmware stops. Assuming that the firmware needs to do something actively to maintain the BLE connection...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515321?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 16:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6540541c-3baf-4478-9225-7c072f364055</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for additional logs.&lt;br /&gt;In the nRF Connect application, there should be &amp;quot;Configuration&amp;quot; section below the &amp;quot;Start&amp;quot; button for DFU. One of the items in the configuration is &amp;quot;Number of Buffers&amp;quot;. You can try to set its value to &amp;quot;Disabled&amp;quot;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515136?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 14:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56879ed8-fbbf-4583-a8e2-ee1d3470eeba</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;Regarding the logs:&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t get Device manager to log anything, but I&amp;#39;ve attached logs of the firmware and of nRF Connect for iOS.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fw-log.txt"&gt;devzone.nordicsemi.com/.../fw-log.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Project_2D00_50253.txt"&gt;devzone.nordicsemi.com/.../Project_2D00_50253.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515123?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 13:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703d00df-387d-4f07-9450-488a2237432b</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for suggesting to disable the logging intensive task. This allowed me to track down the issue to the following call:&lt;/p&gt;
&lt;p&gt;&lt;code&gt; err = adc_read_async(adc, &amp;amp;sequence, &amp;amp;adc_signal);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t matter whether I include the &amp;amp;adc_signal or not, if it&amp;#39;s NULL the firmware upload still times out. So it seems that the ADC code running results in some kind of dead-lock in the system.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve included the complete ADC reading code, but it&amp;#39;s basically a timer that calls adc_read_async at a 100 Hz interval. I&amp;#39;m unsure why this should cause a dead-lock when used in companion with the mcumgr code.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6518.adc.c"&gt;devzone.nordicsemi.com/.../6518.adc.c&lt;/a&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/515053?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 09:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffc6155-3df3-4a4d-bd86-868deaacda85</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Remco Poelstra"]I just tried Device Manager (1.8.1(3)) and it seems to have the same problem. It gets stuck on UPLOADING... after I press &amp;#39;Start&amp;#39;. Other functions seem to work fine.[/quote][quote user="Remco Poelstra"]During the last tests I had some logging intensive task running and I noticed that during the upload the device (also) logs &amp;#39;mcuboot_util: Image index: 0, Swap type: none&amp;#39; and keeps logging the other task for a short while and then completely stops. It seems the processor completely hangs. There is no other output and running the firmware in the debugger also doesn&amp;#39;t trigger a breakpoint or something. It simply all stops.[/quote]
&lt;p&gt;What happens if you remove all logging intensive tasks?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you provide full logs when using both nRF Connect for iOS and Device Manager?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/514937?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 15:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6baed082-699c-4288-8ce1-9a1958939510</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t have a recent Android device.&lt;/p&gt;
&lt;p&gt;I think the problem is on the firmware side, as I can&amp;#39;t explain the hanging of the firmware otherwise. That would explain why the mobile device can&amp;#39;t continue the upload, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/514932?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 15:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd59b729-6398-4fc6-bd75-588c20e665d4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If you have any newer Android phone, you could try to test if the same problem appears when using corresponding Android applications.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/514930?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 15:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba4cc2f-d5d8-46cb-b170-95a9dd0cceac</guid><dc:creator>Remco Poelstra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using nRF Connect for iOS version 2.7.13(40).&lt;/p&gt;
&lt;p&gt;I just tried Device Manager (1.8.1(3)) and it seems to have the same problem. It gets stuck on UPLOADING... after I press &amp;#39;Start&amp;#39;. Other functions seem to work fine.&lt;/p&gt;
&lt;p&gt;I I remove CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT I can&amp;#39;t use the SMP functions at all. The device disconnects and reports an error (over RTT) that the requested authentication level can&amp;#39;t be reached (which is an understandable error in my situation).&lt;/p&gt;
&lt;p&gt;During the last tests I had some logging intensive task running and I noticed that during the upload the device (also) logs &amp;#39;mcuboot_util: Image index: 0, Swap type: none&amp;#39; and keeps logging the other task for a short while and then completely stops. It seems the processor completely hangs. There is no other output and running the firmware in the debugger also doesn&amp;#39;t trigger a breakpoint or something. It simply all stops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA over BLE fails after upgrade to NCS 2.8.0</title><link>https://devzone.nordicsemi.com/thread/514924?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 14:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d21ca8-30a1-4e28-b55b-7189b3bc54f3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which version of the nRF Connect for iOS application do you use?&lt;br /&gt;&lt;br /&gt;Have you tried to use&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-device-manager"&gt;Device Manager&lt;/a&gt; mobile application instead? Do you see any difference in result compared to nRF Connect for iOS?&lt;br /&gt;You can look at this &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf52/fota_update.html#testing_steps"&gt;testing steps&lt;/a&gt; when performing FOTA update on the nrf52 device.&lt;/p&gt;
[quote user=""]Apart from shuffling a few config&amp;#39;s from prj.conf to sysbuild.conf, the only change is that I needed to add &amp;#39;&lt;span&gt;CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT&amp;#39; to allow access to the SMP characteristics as CONFIG_BT_SMP is enabled but I do not have MITM protection.&lt;/span&gt;[/quote]
&lt;p&gt;What happens if you do not add CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT? Do you get the same error?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>