<?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>nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53549/nrfutil-raspberry-pi-secure-dfu-nrf52832</link><description>Hi Nordic: 
 I want to build a raspberry connected to a 52832 board via uart, 
 this raspberry pi with 52832 board need doing secure DFU to remote BLE device, the raspberryPI and 52832 board are inside a box, we can&amp;#39;t replace 52832 board by 52840 dongle</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2019 13:48:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53549/nrfutil-raspberry-pi-secure-dfu-nrf52832" /><item><title>RE: nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/thread/225382?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 13:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5758565-12ae-46ae-b541-c3fe93493096</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="68472" url="~/f/nordic-q-a/53549/nrfutil-raspberry-pi-secure-dfu-nrf52832/225084"]But it&amp;#39;s difficult for me to build pc-ble-driver for ARM platform, because vcpkg for ARM[/quote]
&lt;p&gt;Try downloading the pre-compiled library from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/releases"&gt;https://github.com/NordicSemiconductor/pc-ble-driver/releases&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;i.e. download the&amp;nbsp;nrf-ble-driver-4.1.1-linux_x86_64.tar.gz, and find the .so in the lib folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/thread/225084?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 08:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c97b3501-92f3-42b7-863b-977e4c04617e</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
&lt;p&gt;I still can&amp;#39;t work well, after read the links you provide,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my understanding based on RPI with 52840 dongle( I use 52840 dongle first to reduce complexity, using 52832 custom board is the future task)&lt;/p&gt;
&lt;p&gt;- In my PC environment, nrfutil5.2 + dependently pc-ble-driver ( which is &amp;quot;pc_ble_shared_sd_api_v3.dll),&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can do dfu-ble to remote device.&lt;/p&gt;
&lt;p&gt;- So my choice is to install nrfutil5.2 + linux-pc-ble-shared-sd-api_v3.so for my RPI.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s difficult for me to build pc-ble-driver for ARM platform, because vcpkg for ARM&lt;/p&gt;
&lt;p&gt;Their are a unofficial pc-ble-driver version from:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/accessing-the-softdevice-api-from-python-with-pc-b"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/accessing-the-softdevice-api-from-python-with-pc-b&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the version is too old (sd-api-v1), so could you provide pc-ble-driver-v3 of ARM platform or guide me how to build it for ARM platform?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/thread/224772?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 14:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1fc470-67cb-4c58-bd72-a4cd956375a3</guid><dc:creator>Sigurd</dc:creator><description>[quote user="josephwei"]So is &amp;quot;serial_port_enum&amp;quot; can still work in your environment?[/quote]
&lt;p&gt;&amp;nbsp;You probably need to make some changes to the script to get it working with the dongle. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49934/pc-ble-driver-not-enumerating-pca10059"&gt;this &lt;/a&gt;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52531/the-issue-when-using-pc-ble-driver-py-for-nrf52840-dongle/212156#212156"&gt;this&lt;/a&gt; post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/thread/224670?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284334f4-e1e4-4834-93d9-5806d68e9a62</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi Sigurd:&lt;/p&gt;
&lt;p&gt;Thanks for reply,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Today I do many compatibility test,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So far I only can do DFU-BLE for other device as following setting:&lt;/p&gt;
&lt;p&gt;- on a windows10 PC with python2.7,&lt;/p&gt;
&lt;p&gt;- no matter nrfutil3.5 or 4.0 or 5.2&lt;/p&gt;
&lt;p&gt;- 52840-dongle with a firmware from nrf-connect-pc-programmer-1.3.1 auto download&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One thing I want to confirm, my 52840-dongle with the firmware from nrf-connect-pc, but when I run &amp;quot;python2.7 serial_port_enum.py NRF52&amp;quot;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is show &amp;quot;0 serial port found&amp;quot; (see following), but DFU ble is working)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3247._2A677D540D54_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So is &amp;quot;serial_port_enum&amp;quot; can still work in your environment?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil, raspberry pi, secure dfu, nrf52832</title><link>https://devzone.nordicsemi.com/thread/216453?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 18:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:118fecf3-5762-4c8d-a9c1-273d1402452d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) n&lt;span&gt;rfutil is really a python application, and I would think you can use it on the&amp;nbsp;Raspberry Pi as long as you have all the&amp;nbsp;requirements installed. I would start by trying to install it using pip with &amp;quot;pip install nrfutil&amp;quot;. You can find more information on&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil" rel="noopener noreferrer" target="_blank"&gt;GitHub&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Some other relevant posts: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45345/run-nrfutil-dfu-on-a-raspberry-pi"&gt;link 1&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47898/nrfutil-for-dfu-mesh-on-raspberry-pi"&gt;link 2&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15509/trying-to-use-a-nrfutil-command-on-raspbian-os"&gt;link 3&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) In order to create connectivity firmware that is compatible with custom nRF52 hardware you have to apply the patch found &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/hex"&gt;here&lt;/a&gt;&amp;nbsp;(nRF5_SDK_15.3.0_connectivity.patch), to&amp;nbsp;the connectivity example in SDK 15.3.&amp;nbsp;You can find the connectivity example in&amp;nbsp;&lt;code&gt;SDK_FOLDER\examples\connectivity\ble_connectivity\pca10040\ser_s132_hci&lt;/code&gt;. You can then change the pinout in pca10040.h or create a custom_board.h to match your custom hardware pin settings.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) Based on the description on what you want to do, then yes.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>