<?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>UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23565/uart-dfu-sequence-number-ack-image-len</link><description>What I have to do if I met this ? I round length to fit (len+4-(len % 4)). Is it right ? 
 if (!(IS_WORD_SIZED(m_start_packet.sd_image_size) &amp;amp;&amp;amp;
 IS_WORD_SIZED(m_start_packet.bl_image_size) &amp;amp;&amp;amp;
 IS_WORD_SIZED(m_start_packet.app_image_size)))
 {
 /</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2017 14:09:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23565/uart-dfu-sequence-number-ack-image-len" /><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92569?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 14:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f1b392-ec6c-4249-a0c6-770a16083f63</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, but are you able to enter the main function of the bootloader if you set&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1 Start = 0x3C000 and Size 0x3C00 with Optimization = Level 3
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;when debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92566?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 04:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71743f1f-c515-40a6-a55d-c865d88de218</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;No, when I debugging, bootloader works and application will start.Settings for debug mode is:ROM Start = 0x3A000 and RAM Start = 0x5C00 and opt = 0. Issue is occured after change settings to normal state :ROM Start = 0x3C000 and ROM Size 0x3C00 and Opt = 3. RAM settings is same, IRAM1 Start = 0x0002C00,IRAM1 Size = 0x5380, IRAM2 Start = 0x20007F80, IRAM2 Size = 0x80&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92565?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 11:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f67ad0-06a8-4117-a8b8-d05a0f24172b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Whan you say that it does not work, do you mean that you do not enter the bootloader at all, i.e. if you debug the bootloader you never enter main? Also what are your RAM settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92568?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 04:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f4d2a7-2398-4cef-b3c9-a88237308e65</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;My BOOTLOADER_REGION_START is 0x3C000 everywhere (Target settings and dfu_types). ROM size is 0x3C00. App has length = 7920 B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92564?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 14:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988054e2-9760-4b55-a2bc-e6dea963d434</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Make sure that you have set the define &lt;code&gt;BOOTLOADER_REGION_START&lt;/code&gt;in dfu_types.h so that it matches the bootloader start address in the ROM settings in Keil/linker script if you&amp;#39;re using gcc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92570?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 08:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7db22510-23da-4d34-b8bc-908c20b4a7d5</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;OK. I used image build in nrfutil and problem with length is gone. Everything works, but only with bootloader with starting address 0x3A000. It doesn&amp;#39;t work if I set optimalization to 3 and change address to 0x3C000. Starting address of my app is 0x1B000 and I have nRF51822_xxAC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92567?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 04:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dfcb0eb-c424-49de-8a5e-28c13f1cb8a1</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I use SDK11 and SD130.
I uploading only APP, so length of SoftDevice and bootloader is 0.
My app has length 22326 bytes, so right solution is:
Divide app to 43 packets with 512 bytes + (1 * 310 bytes + 2bytes)  or I have to find divisible numbers as 61 packets with 366bytes ? The second solution can be problem, because I have another app with length 53225bytes and it is not divisible...I have problem with starting application after I finished upload. Image verification is right and bootloader_app_start is running, but app doesn&amp;#39;t run. Can be problem with wrong length ?...I take compile HEX-files to upload. Is it right ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU Sequence number, ACK, image len</title><link>https://devzone.nordicsemi.com/thread/92571?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2017 13:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b57c48e-a851-4cb0-8d75-e8a5ead51b0a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which SDK version are you using? In order to pass the size check you must make sure that image sizes sent in the the start packet is dividable is a multiple of 4. The SoftDevice hex will always be a mutiple of 4 and with the BL and APP you only have to compile the code so that it ends at a flash page.
No, my understanding is that the SEQ number must be non-zero and equal to the sequence number of the previous reliable packet plus one modulo eight. Thus the first number should be 1 and the SEQ number is only 3-bits long so I assume it must be repeating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>