<?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>Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92695/serial-dfu-failed-to-allocate-buffer-on-nrf52832</link><description>Hi support team, 
 I&amp;#39;m trying to implement Serial DFU for nRF52832 from another MCU. 
 I&amp;#39;ve referred to the UART DFU Master code from this blog: 
 https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Mar 2024 11:07:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92695/serial-dfu-failed-to-allocate-buffer-on-nrf52832" /><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/472670?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 11:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd6bbfff-2f49-4ee9-884c-5c00a3412c0d</guid><dc:creator>tian bnb</dc:creator><description>&lt;div class="content-fragment-header"&gt;Hello, I have created a new, can you please have a look, I am a person debugging depressed.Nordic Case Info&amp;nbsp; Case ID: 323348&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/472655?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 10:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82d6dc6-79ce-49d6-bad7-2fb92aa1e93b</guid><dc:creator>tian bnb</dc:creator><description>&lt;p&gt;Ok, I see&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/472654?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 10:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526ba3ef-26e4-4863-b9ed-19dbbc33bad3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;make a new question&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/472640?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 08:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdabe3a3-d0ae-4ae3-b040-05c7d954a1bd</guid><dc:creator>tian bnb</dc:creator><description>&lt;p&gt;Hi, I also encountered this problem, I expanded &amp;quot;NRF_DFU_SERIAL_UART_RX_BUFFERS&amp;quot;, the problem still exists, I use &amp;quot;UartSecureDFU.exe COM8 dfufile.zip -v -v -v -v&amp;quot; and &amp;quot;nrftuil&amp;quot; to upgrade my debugging upgrade package, through the UartSecureDFU.exe &amp;quot;log, the same as my serial port. May I ask how to solve this, I use 52833 17.0.2 sdk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/472638?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 08:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eecb7855-20b3-4c78-805e-7ef811f81846</guid><dc:creator>tian bnb</dc:creator><description>&lt;p&gt;Hello, may I ask how you finally solved this problem? I am debugging 52833 now, and after trying, I also reported the same error type as yours.Below is my error log&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709800946301v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/391545?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 04:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c325c577-2fa6-4f4e-a6ad-e23d9a15a71c</guid><dc:creator>DANG CONG TAO</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666240385350v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hope it can help&lt;/p&gt;
&lt;div id="eJOY__extension_root" class="eJOY__extension_root_class"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/391441?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 13:08:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09316c2a-b0df-4614-a80a-89ea43efd403</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The next thing to look at then is this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2000FF40&lt;/pre&gt;Which is printed by the fault handler, and that is called for&amp;nbsp;NRF_FAULT_ID_SDK_ASSERT (0x00004002). What does the info struct (at 0x2000FF40) contain? And what does the call stack look like if you set a breakpoint in the&amp;nbsp;app_error_fault_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/391234?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 14:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2efcbe-445f-4e42-9d6c-a6f3cfacbc4f</guid><dc:creator>Nhuan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your help, I can solve the Serial error. But my Serial DFU application still has not worked&lt;/p&gt;
&lt;p&gt;Could you share some information about your DFU sequence? What am I missing on it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/391231?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 14:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c324fdb9-b5b9-47be-bc6a-af4ba8a9cdc8</guid><dc:creator>Nhuan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;After disabling&amp;nbsp;&lt;span&gt;Hardware Flow Control, the Serial error is solved. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But my application is still stopping at:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_CREATE (data)
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x00001000, len=1 pages), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x00001000, pending 0
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Creating object with size: 2212. Offset: 0x00000000, CRC: 0x00000000
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_serial: Sending Response: [0x1, 0x1]
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20001760
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x00001000, src=0x200017E8, len=62 bytes), queue usage: 1
&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2000FF40
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20001868
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 200018EC&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/391069?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 01:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e328c151-467b-4eed-9a3e-ac98b7efd658</guid><dc:creator>DANG CONG TAO</dc:creator><description>&lt;p&gt;I&amp;#39;m Also get that Error, when trying to update nRF52832 by UART. Do you solve it?&lt;br /&gt;with Error, Fail to send data over serial interface, try to turn of Hardware Flow Control, it solve in my case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/390163?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 07:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0edf990d-017b-4762-99f7-5757abded563</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is one less error, at least. The first error is &amp;quot;Failed to send data over serial interface!&amp;quot;, right? This comes from line 141 in&amp;nbsp;components/libraries/bootloader/serial_dfu/nrf_dfu_serial.c (nRF5 SDK 17.1.0). I suggest focusing on that first. Can you modify line 141 to also&amp;nbsp;print the error code? Perhaps that will give some indication on what the problem is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/390069?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 14:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df559ef8-92a7-4e55-8598-9aa71eb41fac</guid><dc:creator>Nhuan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I increased &lt;span&gt;NRF_DFU_SERIAL_UART_RX_BUFFERS&lt;/span&gt;, it can pass the Failed to allocate buffer error.&lt;/p&gt;
&lt;p&gt;However, nothing further took place.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_CREATE (data)
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x00001000, len=1 pages), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x00001000, pending 0
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Creating object with size: 2212. Offset: 0x00000000, CRC: 0x00000000
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
&amp;lt;debug&amp;gt; nrf_dfu_serial: Sending Response: [0x1, 0x1]
&amp;lt;error&amp;gt; nrf_dfu_serial: Failed to send data over serial interface!
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20001760
&amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x00001000, src=0x200017E8, len=62 bytes), queue usage: 1
&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2000FF40
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20001868
&amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 200018EC
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU failed to allocate buffer on nRF52832</title><link>https://devzone.nordicsemi.com/thread/390049?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 13:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307a590f-ba4b-4ca0-b0d8-3445c8fcb591</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This error comes from the call to&amp;nbsp;nrf_balloc_alloc() on line 127 in&amp;nbsp;components/libraries/bootloader/serial_dfu/nrf_dfu_serial_uart.c. I am a bit suprised that you get it if you are using an unmodified bootloader, but you can try to increase&amp;nbsp;&lt;code&gt;NRF_DFU_SERIAL_UART_RX_BUFFERS&lt;/code&gt; in the bootloader&amp;#39;s sdk_config.h to a higher value and see if that helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>