<?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>SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23353/sdk11-serial-dfu-to-s132v4-from-s132v2</link><description>Recently I have been working with the serial bootloader from SDK 11. I can upload a softdevice, and supporting application using this bootloader without issue, as long as it’s the same softdevice version. In the case of SDK 11, that would be s132v2. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jul 2017 13:52:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23353/sdk11-serial-dfu-to-s132v4-from-s132v2" /><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91816?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 13:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce45aab-971b-4e0f-8cfb-873ade8e5ea7</guid><dc:creator>Bert</dc:creator><description>&lt;p&gt;To summarize, thanks to @Bjørn Spockeli, I learned that using the DFU implementation in SDK11 s132v2 while attempting to upgrade the softdevice to s132v4 would require the softdevice headers to be swapped out. This change is required because the bootloader itself leverages the softdevice API. Thus, swapping a new softdevice, without the headers, would not work in most cases.&lt;/p&gt;
&lt;p&gt;This however poses major issues as the jump from 11 to 13 changes certain constructs in terms of the softdevice and SDK. For example SDK11 s132v2 uses pstorage for the bootloader, while SDK 13 has moved entirely to fstorage, not to mention the addition of sdk_config. There&amp;#39;s a few ways to solve that problem, and I was able settle on one in order to to get a rough version up and running. With that said, it felt like a force fit. I opted to move to the new secure serial DFU in SDK 13 and all is well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91815?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 15:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd162a9-3dd6-4fd2-8e47-643d01b07f2e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, that is correct. The bootloader is using the SD API and it must therefore be compatible with the SoftDevice present on the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91814?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 15:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396a4f72-2090-43b5-829b-f47db726047b</guid><dc:creator>Bert</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry @Bjørn but I don&amp;#39;t fully understand the question. I&amp;#39;ll try to answer the best I can. I am trying to update to an application built against SDK 13 that requires s132v4. The SDK11 s132v2(0x81) bootloader is present on the device, and does get updated according to the FWID(0x98). After reading your comment though, I think I see what your&amp;#39;re saying. Due to the fact that my application requires s132v4, the SDK11 s132v2 bootloader must be updated to s132v4, and compiled with the s132v4 headers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91813?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 14:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6378bdc6-5dc6-4f90-9a19-3be9abbff0fa</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, that is because the S132 v4.x.x SoftDevice is larger than the S132 v2.x.x, which means that application start address must be shifted upwards. However, you did not answer my question: Is the bootloader present on the device after the update of the SD and Application still based on SDK v11.0.0 and S132 v2.0.0? If that is the case then you have a bootloader that is incompatible with the S132 v4.0.0 SoftDevice and that is why your&amp;#39;re getting an error. You will have to compile the SDK v11.0.0 bootloader against the S132 v4.0.0 headers and update the bootloader, application and SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91810?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 14:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff800a0e-eea8-4a60-8bbe-201038c6ff7d</guid><dc:creator>Bert</dc:creator><description>&lt;p&gt;Hi @Bjørn, I have update the original with the details you requested. One thing I noticed right away was that the application address is different in the two screenshots, I guess that makes sense though as the s132v4(124kB) &amp;gt; s132v2(112kB).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91809?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 13:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b266f8-36e6-4529-b817-9348e7030b58</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;So this is after you have updated from from S132 v2.x.x to S132 v4.x.x? Also is the bootloader present on the device after the update built against SDK v11.0.0 and the S132 v2.x.x ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91812?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 12:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24058dba-0e0f-4403-a57b-97bc63d87e3b</guid><dc:creator>Bert</dc:creator><description>&lt;p&gt;Hi @Bjørn Spockeli, this is in the bootloader, specifically via ble_stack_init within the dfu_dual_bank_serial_s132 example. The error happens at step 3. The bootloader starts and enters DFU mode, at this point I switch over to nRFGoStudio and upload s132v4 with its utility, the bootloader then gives NRF_ERR_NO_MEM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK11 serial DFU to s132v4 from s132v2</title><link>https://devzone.nordicsemi.com/thread/91811?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 11:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:004ae175-4cb7-4f1d-9985-34fed3fa9b5b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;When you say that &lt;code&gt;softdevice_enable()&lt;/code&gt; returns error code &lt;code&gt;0x04&lt;/code&gt;, is this in the bootloader or the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>