<?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>Trying to use a nrfutil command on raspbian OS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15509/trying-to-use-a-nrfutil-command-on-raspbian-os</link><description>Hi,
I&amp;#39;ve got a problem with nrfutil package on Raspberry Pi with Python 2.7.9 and pip 1.5.6 included to raspbian distribution. 
 I&amp;#39;m writing like below: 
 
 pi@raspberrypi:~ $ sudo pip install nrfutil 
 
 And package seems to be installed properly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2017 21:41:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15509/trying-to-use-a-nrfutil-command-on-raspbian-os" /><item><title>RE: Trying to use a nrfutil command on raspbian OS</title><link>https://devzone.nordicsemi.com/thread/59223?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 21:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14eeef73-1dab-4afc-8264-e3947a46c630</guid><dc:creator>Arepa</dc:creator><description>&lt;p&gt;Hi Øyvind,&lt;/p&gt;
&lt;p&gt;Does it work with the SDK12.2 or SDk13 nrfutil ver 2.2.0 to perform DFU? I tried the step above, But I did not have luck&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use a nrfutil command on raspbian OS</title><link>https://devzone.nordicsemi.com/thread/59222?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 11:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e7aea17-99f5-48a6-8283-5a69899222a0</guid><dc:creator>drDomogo</dc:creator><description>&lt;p&gt;It works, and even DFU by serial is possible which with I&amp;#39;ve had a problem using nrfutil package.&lt;/p&gt;
&lt;p&gt;Thank You very much :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to use a nrfutil command on raspbian OS</title><link>https://devzone.nordicsemi.com/thread/59221?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 09:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c1a9390-52ff-4138-aead-c0001d35c8e2</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we have nrfutil readily built for ARM cores, such as the Raspberry Pi. You can use the following workaround.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been looking a bit into this, bear with me, this is going to be a little &amp;quot;hacky&amp;quot;.&lt;/p&gt;
&lt;p&gt;First off we will download the 0.5 branch of nrfutil (Turns out that the live branch is for a future SDK 12) &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/archive/0_5_1.zip"&gt;direct link to zip here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After unzipping we need to install it, first we need to fix the dependencies, opening the requirements.txt file we find that we need to install the following (these should all have ARM builds available through pip, if they don&amp;#39;t you will have to manually install):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pip install pyserial
pip install enum34
pip install click
pip install ecdsa
pip install behave
pip install py2exe
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After installing the dependencies you should be able to run the installer from the unzip location, eg. &amp;quot;[MY UNZIP LOCATION]\pc-nrfutil-0_5_1&amp;quot;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;python setup.py install
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The neat trick here is that the python script will run &amp;quot;uncompiled&amp;quot; so we can run main without wrappers, navigate to the nordicsemi folder and run &lt;strong&gt;main&lt;/strong&gt;.py&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd nordicsemi\
python __main__.py
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For all intents and purposes this main.py is the same as nrfutil.&lt;/p&gt;
&lt;p&gt;Let me know if this works, or you find a better solution.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>