<?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>MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105792/mcumgr-is-stuck-after-a-flash-of-a-big-image</link><description>Hi, 
 
 If the image we falshed using mcumgr is 90% of the allowed image size mcumgr flashes the unit without a problem, If the image is 98% the proccess seems stuck. 
 
 This is the image list: 
 
 
 
 image erase is not working as well and will return</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2024 10:45:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105792/mcumgr-is-stuck-after-a-flash-of-a-big-image" /><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508922?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 10:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:038a6b1b-565f-4de9-b17a-23beb5d573a7</guid><dc:creator>Atanas Vladimirov</dc:creator><description>&lt;p&gt;Thank you so much!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have a wonderful day,&lt;/p&gt;
&lt;p&gt;Atanas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508902?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 08:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c6f87b-9bb7-4830-a135-30677020e195</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You need to attach an external debugger to the board (a DK or a standalone debug probe) to recover the device if you have the same problem as OP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508893?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 07:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:232b8435-b672-4e8b-b055-8c8949cb82f9</guid><dc:creator>Atanas Vladimirov</dc:creator><description>&lt;p&gt;Hey &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp; sorry if I&amp;#39;m asking something stupid, but can nrfutil be of use in such case? Can you erase/flash the &amp;quot;whole&amp;quot; device and start from scratch? Or this is not an option and the only way to &amp;quot;de-brick&amp;quot; is to attach to nrf52833-DK and reprogram?&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508105?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 09:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e45c954-05f3-4a0b-a476-74b2d0568c34</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Thanks, it was worth a shot to see if anything can be done..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508102?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 09:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a34bcb28-2af9-411b-b90f-e7540aee13ad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Unfortunately, there isn’t much that can be done with these if they do not accept new updates.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508099?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f5174a5-68a4-429d-ab0d-fe263c9b82aa</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;I understand but the units are already in the wild and this is the configuration they have..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508095?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a135d0e6-9760-448a-9772-8ef46897997c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Serial recovery is something that must be enabled in the MCUBoot child-image. Please refer to the link in my previous comment for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508087?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c4e5a13-f5ff-4196-8f41-24dc054c0d27</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Thanks, Here&amp;#39;s our prj.conf, anything else we can do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

# Enable the serial mcumgr transport.
CONFIG_MCUMGR_SMP_UART=y
CONFIG_NET_BUF_USER_DATA_SIZE=7

# Disable UART Console and enable the RTT console
CONFIG_UART_MCUMGR=y

CONFIG_UART_CONSOLE_MCUMGR=y

CONFIG_NFCT_PINS_AS_GPIOS=y

CONFIG_CONSOLE_SUBSYS=y
CONFIG_CONSOLE_GETLINE=y

# Add support for temperature sensor
CONFIG_NRFX_TEMP=y

#For analog read:
CONFIG_ADC=y

# BT configuration 
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_NAME_MAX=128
CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_DEBUG_LOG=n


CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

#CONFIG_LOG=y

# CONFIG_LOG_BUFFER_SIZE=1024
CONFIG_BT_CENTRAL=y
CONFIG_BT_GATT_CLIENT=y
# CONFIG_BT_NUS=y
CONFIG_BT_GATT_DM=y
# CONFIG_BT_SMP=y
# CONFIG_BT_SIGNING=y
# CONFIG_BT_DIS=n
# CONFIG_BT_ATT_PREPARE_COUNT=5
# CONFIG_BT_BAS=n
# CONFIG_BT_HRS=n
# CONFIG_BT_PRIVACY=y
# CONFIG_BT_KEYS_OVERWRITE_OLDEST=y
# todo: this have conflicts with the settings 
#CONFIG_BT_SETTINGS=y

CONFIG_BT_DEBUG_NONE=y
CONFIG_BT_ASSERT=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_GATT_SERVICE_CHANGED=n
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=y
CONFIG_BT_HCI_VS_EXT=n


# CONFIG_SETTINGS=y
# CONFIG_SETTINGS_RUNTIME=y

# CONFIG_FLASH=y
# CONFIG_FLASH_PAGE_LAYOUT=y
# CONFIG_FLASH_MAP=y
# CONFIG_NVS=y

#CONFIG_NEWLIB_LIBC=y

# CONFIG_CBPRINTF_NANO=y
# CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_STACK_SIZE=1024

CONFIG_POSIX_API=y

CONFIG_BT_GATT_DM_MAX_ATTRS=50

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508086?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a50b42c-7218-4448-8e3b-4ec07f834966</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;quot;serial recovery&amp;quot; is when you have a serial DFU transport (USB or UART) enabled in the bootloader itself. This allows DFU to be performed within the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/508082?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d68b3a7-cf9a-4b90-9a10-376e0ab1dbc0</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;, coming back to this thread..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In our prj.conf we have:&lt;/p&gt;
&lt;p&gt;CONFIG_BOOTLOADER_MCUBOOT=y&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please elaborate on what did you mean &amp;quot;serial recovery&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457736?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 06:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc153fbe-fcfe-4f0a-865f-1dadc2cd6a36</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457571?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 13:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3dc90b0-fd0e-40ac-afe9-e4b249aeb8a9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but I don&amp;#39;t see a way to distribute a fix for this, as FOTA is effectively disabled on these devices. This is why performing extensive testing of updates before deployment is critical.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457568?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 13:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8fa3e16-df9b-41c3-aaa6-499bfc3cc368</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Serial recovery is not enabled, only have mcumgr enabled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457567?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa8ba2c-82ae-4d93-813b-0ed16a2a64e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid it&amp;nbsp;might not be possible to recover from this since you just receive an error when you try to free up the slot by erasing it. Have you enabled serial recovery in the bootloader, or are you performing DFU through the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457546?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:22:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0a30d9-d048-417c-8f69-df0cf7876231</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Yep..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457545?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7526b711-0edb-4b16-9ea2-ec14b8eb70d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The solution should be to&amp;nbsp;not distribute an update that is too big, or have you already done that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457544?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7246884-f484-4c69-bd37-d0df6de3e05f</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Thanks for your reply, Anything we can do to fix this remotely?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457541?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ad2539-4104-4e5d-a08e-425d08ad3956</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The max. image size is limited by the slot size and also the image trailer size as noted in the MCUboot documentation here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/mcuboot/design.html#image-slots"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/mcuboot/design.html#image-slots&lt;/a&gt;. Ideally, there should have been a static assert to trigger a build error if the image is too big to fit into the allocated slot partition.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/457425?ContentTypeID=1</link><pubDate>Sun, 26 Nov 2023 07:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7599a4-d150-494a-89eb-f772a0ac8443</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;Any ideas &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/456215?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58f89681-3004-43a1-8ed9-643471bd6759</guid><dc:creator>saoron</dc:creator><description>&lt;p&gt;v2.0.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUMGR is stuck after a flash of a big image</title><link>https://devzone.nordicsemi.com/thread/456204?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:239816fa-c628-4d85-9344-e4e252a8d99f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please let me know which version of the SDK you are using so I can&amp;nbsp;attempt to reproduce this.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>