<?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>BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128480/ble-dfu-nrf5280-nrf5340</link><description>mcumgr disconnecting when i trying to ble dfu .... &amp;quot; Log from nrf connect mobile app&amp;quot; 
 nRF Connect, 2026-06-16 FYZKS52_E23993 (E2:39:93:7B:81:AA) V 17:16:59.495 Connecting to E2:39:93:7B:81:AA... D 17:16:59.495 gatt = device.connectGatt(autoConnect </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jun 2026 11:18:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128480/ble-dfu-nrf5280-nrf5340" /><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568357?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2026 11:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a698b26-e690-4c9a-ba3f-7613e7035621</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Continuously polling state flags such as i2s_buffer_ready only wastes CPU cycles. As Turbo suggested here, a semaphore should be suitable for&amp;nbsp;your case.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/kernel/services/index.html#scheduling-interrupts-and-synchronization"&gt;https://docs.zephyrproject.org/latest/kernel/services/index.html#scheduling-interrupts-and-synchronization&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-8-thread-synchronization/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-8-thread-synchronization/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568322?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 13:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136bb07e-f93c-455e-af0d-07fee70938f9</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;That is a blocking (main) thread that could in theory starve others.&lt;/p&gt;
&lt;p&gt;Workaround could be &lt;code&gt;k_sem_take()/k_sem_give()&lt;/code&gt;&amp;nbsp;instead of the i2s_buffer_ready bit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568320?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 12:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f2b080-9b5e-4f6e-88de-6412bc1d7fa0</guid><dc:creator>Macherla Swetha</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/128480/ble-dfu-nrf5280-nrf5340/568316"]I can&amp;#39;t say much without seeing any code. I understand you have proprietary code you are unable to&amp;nbsp;share, but you can still show code that isn&amp;#39;t or create pseudo code to illustrate what you are doing. Would also help to know if you are using the Zephyr drivers for i2s, etc[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    ble_init();

    codec_init();
    i2s_init();

    while (1)
    {
        if (recording_enabled)
        {
            if (i2s_buffer_ready)
            {
                process_audio();
                // write audio data to buffer
                // codec control operations
                // occasionally stop/start I2S
            }
        }

        // No user-created threads
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li data-section-id="bezrqv" data-start="99" data-end="170"&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/2705.svg" title="White check mark"&gt;&amp;#x2705;&lt;/span&gt;&amp;nbsp;A&amp;nbsp;&lt;strong data-start="105" data-end="127"&gt;simple application&lt;/strong&gt; (only BLE/main) performs DFU successfully.&lt;/li&gt;
&lt;li data-section-id="16q07k3" data-start="171" data-end="421"&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/274c.svg" title="X"&gt;&amp;#x274c;&lt;/span&gt;&amp;nbsp;my&amp;nbsp;&lt;strong data-start="180" data-end="202"&gt;actual application&lt;/strong&gt; (I2S, codec, audio processing, flash, etc.) advertises SMP, nRF Connect detects MCUboot, negotiates MTU, queries image list, and starts &lt;strong data-start="339" data-end="366"&gt;&amp;quot;Uploading firmware...&amp;quot;&lt;/strong&gt;, but &lt;strong data-start="372" data-end="420"&gt;the progress window disappears in the middle&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568316?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 11:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6205a1d9-befd-4adc-86c3-f540d664b2ab</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I can&amp;#39;t say much without seeing any code. I understand you have proprietary code you are unable to&amp;nbsp;share, but you can still show code that isn&amp;#39;t or create pseudo code to illustrate what you are doing. Would also help to know if you are using the Zephyr drivers for i2s, etc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568312?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 10:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e3edefa-4fc7-408b-8ba4-1513170d95dc</guid><dc:creator>Macherla Swetha</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/128480/ble-dfu-nrf5280-nrf5340/568110"]Our&amp;nbsp;SDK examples will typically spend &amp;gt;99% of the time in sleep (from the idle thread), and it is difficult to comment on why you are seeing the high cpu usage in your case without any details about your code. I would recommend you go through our devacademy course here: &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-7-multithreaded-applications/topic/scheduler/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-7-multithreaded-applications/topic/scheduler/&lt;/a&gt;.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Hi, i studied zephyr RTOS...&lt;br /&gt;&lt;br /&gt;in my application we have handling multiple pheripherals.. in my main thread we have while loop continuously reading i2s data and etc.. in this case iam suspecting main thread leads to BLE starve so dfu failing...is am correct? i can share my prj.conf.. but iam unable to share whole code because of privacy...&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# -------------------------------
# Console &amp;amp; Output Configuration
# -------------------------------
CONFIG_CONSOLE=y                        
CONFIG_STDOUT_CONSOLE=y                 
CONFIG_PRINTK=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_LINE_CTRL=y

#----------------------
# USB CDC ACM (USB Serial) Configuration
#----------------------
CONFIG_SERIAL=y
CONFIG_USB_CDC_ACM=y

#--------------------------------
# USB Device Stack Configuration
#--------------------------------
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT=&amp;quot;nRF5340 Composite Device&amp;quot;
CONFIG_USB_DEVICE_MANUFACTURER=&amp;quot;Nordic&amp;quot;
CONFIG_USB_DEVICE_PID=0x0004
CONFIG_USB_DEVICE_VID=0x1915

# -------------------------------
# General Kernel Configuration
# -------------------------------
CONFIG_MULTITHREADING=y                 
CONFIG_MAIN_STACK_SIZE=4096             
CONFIG_HEAP_MEM_POOL_SIZE=4096          


# -------------------------------
# Timekeeping &amp;amp; RTC
# -------------------------------
CONFIG_COUNTER=y                        
CONFIG_NRFX_RTC2=y                     


# -------------------------------
# C Library &amp;amp; Floating Point Support
# -------------------------------
CONFIG_NEWLIB_LIBC=y                    
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y       
CONFIG_CBPRINTF_FP_SUPPORT=y          
CONFIG_FPU=y                           
CONFIG_FP_HARDABI=y   
CONFIG_CMSIS_DSP=y                 
CONFIG_CMSIS_DSP_FILTERING=y 
CONFIG_CMSIS_DSP_STATISTICS=y
CONFIG_CMSIS_DSP_TRANSFORM=y
CONFIG_CMSIS_DSP_FASTMATH=y

# -------------------------------
# Bluetooth (BLE) Configuration
# -------------------------------
CONFIG_BT=y                            
CONFIG_BT_PERIPHERAL=y                 
CONFIG_BT_DEVICE_NAME=&amp;quot;FYZKS_WDS&amp;quot;      
CONFIG_BT_GATT_CLIENT=y                
CONFIG_BT_ZEPHYR_NUS=y                 
CONFIG_BT_USER_DATA_LEN_UPDATE=y        
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_BUF_ACL_RX_SIZE=502           
CONFIG_BT_BUF_ACL_TX_SIZE=502         
CONFIG_BT_L2CAP_TX_MTU=498           
CONFIG_BT_USER_PHY_UPDATE=y    
CONFIG_BT_CTLR_PHY_2M=y         
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n 

# Connection interval settings
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6    
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=8     
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0   
# CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400   
CONFIG_BT_CTLR_TX_PWR_PLUS_4=y  

CONFIG_BT_BUF_ACL_TX_COUNT=65
CONFIG_BT_L2CAP_TX_BUF_COUNT=65
CONFIG_BT_CONN_TX_MAX=65
CONFIG_BT_BUF_EVT_RX_COUNT=70


# -------------------------------
# Device Power Management
# -------------------------------                        
CONFIG_PM_DEVICE=y                           
CONFIG_POWEROFF=y          
# CONFIG_PM_DEVICE_RUNTIME=y

       
# -------------------------------
# Peripherals
# -------------------------------
CONFIG_GPIO=y                          
CONFIG_I2C=y                           
CONFIG_I2S=y                                                
CONFIG_RTC=y  
CONFIG_SPI=y 


# -------------------------------
# Flash &amp;amp; Storage
# -------------------------------
CONFIG_FLASH=y                         
CONFIG_FLASH_MAP=y                    
CONFIG_FLASH_PAGE_LAYOUT=y             
CONFIG_MPU_ALLOW_FLASH_WRITE=y              
CONFIG_NORDIC_QSPI_NOR=y             

# Stream data directly to flash
CONFIG_STREAM_FLASH=y
CONFIG_USB_MASS_STORAGE=y   # to open as drive
CONFIG_MASS_STORAGE_DISK_NAME=&amp;quot;NAND&amp;quot;
CONFIG_USB_COMPOSITE_DEVICE=y

# -------------------------------
# File System (FAT FS)
# -------------------------------
CONFIG_FILE_SYSTEM=y                  
CONFIG_FS_FATFS_LFN=y                
CONFIG_DISK_ACCESS=y                 
CONFIG_FAT_FILESYSTEM_ELM=y           
CONFIG_DISK_DRIVER_FLASH=y            
CONFIG_FS_FATFS_MKFS=y                
CONFIG_FS_FATFS_MOUNT_MKFS=y        
CONFIG_FILE_SYSTEM_MKFS=y             

CONFIG_WATCHDOG=y

# Enable the Floating Point Unit
CONFIG_FPU=y
CONFIG_FP_HARDABI=y
CONFIG_NEWLIB_LIBC=y
CONFIG_SPEED_OPTIMIZATIONS=y
CONFIG_NRF_ENABLE_ICACHE=y

# (Optional) Enable FPU sharing if multiple threads use floating point math
# This prevents context switching corruption when threads share the FPU.
CONFIG_FPU_SHARING=y

CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n


CONFIG_NORDIC_QSPI_NOR_INIT_PRIORITY=90


# STEP 2.2 - Enable FOTA over Bluetooth LE
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y


&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568117?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 08:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f3d444f-3c0a-46aa-b14c-f8111fb3a0bf</guid><dc:creator>Macherla Swetha</dc:creator><description>&lt;p&gt;ok thankyou , thanks a lot for early response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568110?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 07:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6be608d5-0957-48d9-bd4d-a51a8ee8da9c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Our&amp;nbsp;SDK examples will typically spend &amp;gt;99% of the time in sleep (from the idle thread), and it is difficult to comment on why you are seeing the high cpu usage in your case without any details about your code. I would recommend you go through our devacademy course here: &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-7-multithreaded-applications/topic/scheduler/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-7-multithreaded-applications/topic/scheduler/&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568109?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 07:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75724e34-21dc-42da-a2cb-66c7fbf65a9b</guid><dc:creator>Macherla Swetha</dc:creator><description>&lt;p&gt;yes it works with by removing while();, ... when we look into real projects if main loop having more to excute alomst main only uses 98% of cpu cycles.. what we can do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568104?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 05:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ff6519-b5ca-4f72-81d0-ef99cc358245</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see the empty while loop you have in main() now. This will&amp;nbsp;prevent other lower priority threads from running and it&amp;nbsp;explains why the device is not responding to the mcumgr commands. Solution is to simply remove your&amp;nbsp;while() loop and let the program exit the main thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568102?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2026 04:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79bf4058-cbe4-4aba-a9c4-7715d8b48a00</guid><dc:creator>Macherla Swetha</dc:creator><description>&lt;p&gt;I think it is beacause of main thread using more CPU cycles...when i put delay to cpu idle , dfu working fine...&lt;br /&gt;&lt;br /&gt;1. is there any solution / implementation methods for this instead of delay..?(except threads)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568060?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 11:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10a5fb0e-eca6-4ca3-97d5-18a4b4901a77</guid><dc:creator>Macherla Swetha</dc:creator><description>&lt;p&gt;ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568059?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 11:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6913d35-d6ae-42e0-ad7e-ae88ac95d30d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I meant&amp;nbsp;to ask&amp;nbsp;if you could provide debug logs from your nRF52 devices which you are trying to perform the dfu on.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568057?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 11:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e72b0e-b82f-459a-a053-0a2a7153821f</guid><dc:creator>Macherla Swetha</dc:creator><description>&lt;p&gt;same thing happens with &amp;quot;config_log&amp;quot; also&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU nRF5280,nRF5340</title><link>https://devzone.nordicsemi.com/thread/568054?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2026 11:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08569e50-a7cf-4ab3-b393-cda24a80afaf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log is only showing that the connection is terminated after what looks&amp;nbsp;to be the &amp;quot;&lt;a href="https://nrfconnectdocs.nordicsemi.com/ncs/3.1.0/zephyr/services/device_mgmt/smp_groups/smp_group_1.html#mcumgr-smp-group-1"&gt;image list&lt;/a&gt;&amp;quot; command, but it does not give any indication of why. I think it would be more helpful here if you could get debug logs (CONFIG_LOG=y) from your DFU target.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>