<?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>Data transfer via DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26428/data-transfer-via-dfu</link><description>My example has an in-flash-memory data file that needs to be updated much more often than the code. I thought of using DFU for this and like it says here.. 
 devzone.nordicsemi.com/.../ 
 .. implementing a new &amp;quot;filetype&amp;quot;. Has anyone tried this? Which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2017 15:39:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26428/data-transfer-via-dfu" /><item><title>RE: Data transfer via DFU</title><link>https://devzone.nordicsemi.com/thread/104003?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 15:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6219b2-2f43-4874-a888-3f971116f306</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Yes.  If using the SD card we&amp;#39;d load it with the file from any machine with a writer and then transfer the card to the board(s) with the nRF52 and SD card socket. We then use a button to tell it to read the file into flash so we can remove the card.&lt;/p&gt;
&lt;p&gt;I also like the idea of adapting the DFU app to make it do file transfers.  I see the Android sources are here &lt;a href="https://github.com/NordicSemiconductor/Android-DFU-Library"&gt;github.com/.../Android-DFU-Library&lt;/a&gt;. There&amp;#39;s also a cordova library here &lt;a href="https://www.npmjs.com/package/cordova-plugin-nordic-dfu"&gt;www.npmjs.com/.../cordova-plugin-nordic-dfu&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transfer via DFU</title><link>https://devzone.nordicsemi.com/thread/104001?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 15:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c6094ea-adb4-4035-8cc6-af3a8223505c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it would be very hard to make an app to send a file via BLE to the application.
If you want to reuse the DFU app, you can also do that and just make your application so that the DFU app would think it&amp;#39;s a bootloader and send the file.&lt;/p&gt;
&lt;p&gt;You can also of course modify the bootloader, so that when it see a certain flag (for example now we do 0x0104 as command to update application, you can create a new one, 0x0105 for instance). Then in the bootloader you store the data into specified place in flash.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think using SD card should be the best way here. You plan to unplug the card and plug it into PC and write the file there before plug the SD card back ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transfer via DFU</title><link>https://devzone.nordicsemi.com/thread/104002?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 14:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582c666c-b88e-43d7-94e6-1e0ec6392f2e</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx @Hung&lt;/p&gt;
&lt;p&gt;I should have said that the only interface available on the example I have in mind is BLE.  I was thinking that I could avoid custom apps for this (at least for a quick prototype).&lt;/p&gt;
&lt;p&gt;(Apart from DFU, I don&amp;#39;t think there&amp;#39;s an off-the-shelf app for file transfer.)&lt;/p&gt;
&lt;p&gt;My latest thought is to attach an SD card and use FDS to save the data to flash. This is a little messy (wires etc) but will do if my first suggestion is too hard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data transfer via DFU</title><link>https://devzone.nordicsemi.com/thread/104000?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 13:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f0301d3-2b2d-4e75-b480-28e488b18168</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why you want to use bootloader for this task ? Could it be possible that you can just receive your memory data in your application and directly store that into flash ?&lt;/p&gt;
&lt;p&gt;The main reason of having a bootloader is to swap the application image, which the application can&amp;#39;t do on it own.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>