<?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>nRF DFU softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45528/nrf-dfu-softdevice</link><description>Hello, 
 I am not able to update the softdevice from 6.0.0 to 6.1.0. This usecase is useless as I am in dev stage of my product. However I need to be sure I will be able to update later the softdevice. 
 So I program my IC with the 6.0.0 and an old app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Apr 2019 12:16:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45528/nrf-dfu-softdevice" /><item><title>RE: nRF DFU softdevice</title><link>https://devzone.nordicsemi.com/thread/179487?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 12:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b4e9c51-450d-4655-97bb-82be7a17d2ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest to get a nRF52 DK and perform PC UART DFU with that, then you can have a reference UART trace (using a logic analyzer for example) that you can refer to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think PRN has to set to 1. We store data into flash on every&amp;nbsp;NRF_DFU_OP_OBJECT_WRITE packet. There are some buffers and transmission doesn&amp;#39;t need to wait for flash write to finish.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to print out some logging on RTT for example, to find out why there is a restart. I don&amp;#39;t see the difference when transmitting the application image and softdevice image. If there was any issue with the size of the softdevice, it should happen by the end of the transaction (or at least after you have received certain amount of the softdevice image).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you figure out something.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF DFU softdevice</title><link>https://devzone.nordicsemi.com/thread/179292?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 15:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bf0f66d-16e7-4b41-9351-3dfc8222bb8d</guid><dc:creator>sbu</dc:creator><description>&lt;p&gt;Thanks a lot for your reply.&lt;/p&gt;
&lt;p&gt;Yes you&amp;#39;re completly right for the setup.&lt;/p&gt;
&lt;p&gt;I have done very light modification on the bootloader. I add a GPIO to give STM32 the current mode of the code (app or bootloader), and use a custom_board.h.&lt;/p&gt;
&lt;p&gt;I am not combining both files, I am trying to push 4 files at the end. starting with the 2 soft devices files.&lt;/p&gt;
&lt;p&gt;I spend some time today since my post here to enable the NRF_LOG module. It seems that the inactivity timeout is the problem. It is restarted if I understand properly only once per object (size 0x1000 in my case). I disable this timeout (value 0) and seems not to finish the process. still unclear why it happens always at the same address, but as I do have a lot of checksum calculation on the STM32 side, maybe when reaching the end of the file, it takes to much time... I wanted to trigger the event on every valid packet received so that I can keep a reasonnable inactivity management, but I am not sure this is a good idea.&lt;/p&gt;
&lt;p&gt;One possibility to reduce the time to transfer one object is to increase the MTU. MTU is 0x83, so 64bytes after slip decode, which is in fact quite small. Any reason for this value ? any risk to increase it ?&lt;/p&gt;
&lt;p&gt;One more thing, I set PRN to 1, because otherwise, the nRF seems to have an overflow somewhere. I don&amp;#39;t think it is an uart overflow, but more either a flash write or event overflow.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have not testing from a computer, as I do not have any USB/UART 1.8V converter. But yes, I manage to update the app using the same process, but the app is smaller that the SD for now. maybe with a bigger app, I will have the same issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, as it seems to be an inactivity issue somewhere, I will deal with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF DFU softdevice</title><link>https://devzone.nordicsemi.com/thread/179265?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 14:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92465d75-ae49-4e1f-ab8f-919ebfb63605</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Stephane,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please clarify your setup. You are doing DFU from an STM32 to a nRF52832 chip via UART ? The image is stored in STM32 flash and the firmware to transfer the image to the nRF52 is written&amp;nbsp;for&amp;nbsp;the STM32 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You haven&amp;#39;t done any modification on the NRF52 bootloader code ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is no option in the DFU target code to receive softdevice and application at the same time. So it will need to be sent to the nRF52 in 2 shots. First one should be the SD and after that the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since it can&amp;#39;t be combined, we should focus on updating each of them separated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you managed to do an application update from STM32 to nRF52 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to update the NRF52 with a PC to test ? And make sure the bootloader would work in both S132 v6.0 and S132 v6.1&lt;/p&gt;
&lt;p&gt;Capture logging on the nRF52 when you receive image would help identify the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF DFU softdevice</title><link>https://devzone.nordicsemi.com/thread/179140?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 08:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d51dec-eb4a-4264-bfa9-2feb51ca2dde</guid><dc:creator>sbu</dc:creator><description>&lt;p&gt;I may precise, that I just to in force dual bank mode, and also stucked after 0x23000 bytes sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>