<?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 USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75748/nrfutil-usb-dfu-trigger-seems-not-to-work-on-linux-systems</link><description>Hi 
 I am developing an application for the nrf52840dongle. I want to be able to connect the dongle to a Raspberry Pi 3B+ which has a zip file containing the new firmware to be flashed. The zipfile is not generated on the Pi itself. 
 On my Windows pc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Nov 2024 08:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75748/nrfutil-usb-dfu-trigger-seems-not-to-work-on-linux-systems" /><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/511600?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a58f84da-b3b6-48eb-8f87-7080573c8dc9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for taking the time to post your solution here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/511560?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 17:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:215d99c0-bd7e-4896-be99-042102eb2823</guid><dc:creator>jul-nc</dc:creator><description>&lt;p&gt;I got it working. =)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;here my instructions:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="markdown"&gt;# Install nrfutil on RPi4

```console
mkdir nrfutil
cd nrfutil
curl -LO https://github.com/NordicSemiconductor/pc-nrfutil/archive/v6.1.7.zip
unzip v6.1.7.zip
cd pc-nrfutil-6.1.7
```

replace &amp;quot;pc_ble_driver_py &amp;gt;= 0.16.4&amp;quot; to &amp;quot;pc_ble_driver_py&amp;quot; in requirements.txt
```console
sed -i &amp;#39;s/pc_ble_driver_py &amp;gt;= [^ ]*/pc_ble_driver_py/&amp;#39; requirements.txt
```

check max python version in setup.py with the python on the system
python_requires=&amp;#39;&amp;gt;=3.7, &amp;lt;3.11&amp;#39;,

```console
python3 -m pip install -r requirements.txt
```

if `python3 -m pip install -r requirements.txt` not working? check [[https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-mana](https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-mana)]

may try:
```console
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
```

```console
pip install .
```


perform dfu via serial (the start may takes some time up to 30 seconds or more):

```console
nrfutil dfu serial -pkg app_dfu_package.zip -p /dev/ttyAMA0 -b 115200 -prn 1 -fc 0
```
or
```console
nrfutil dfu serial -pkg app_dfu_package.zip -p /dev/ttyS0 -b 115200 -prn 1 -fc 0
```
`/dev/ttyAMA0` for (Bullseye) and `/dev/ttyS0` for (Bookworm)?

perform dfu serial with debug
```console
nrfutil -v -v -v -v dfu serial -pkg app_dfu_package.zip -p /dev/ttyAMA0 -b 115200 -prn 1 -fc 0
```&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/511544?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 16:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0bdcf3a-980b-4e6e-b3bb-75eb277ca025</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Getting serial DFU to work on the Pi should be possible without much effort as it doesn&amp;rsquo;t rely on precompiled C libraries like DFU over BLE. What version of Python is installed on this Pi? You might need to use an older version than the one distributed with the OS, but it should be Python 3, not Python 2. Python 3 is compatible with version 6.1.7.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/511542?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 16:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043ddd8c-6b67-4b7a-946e-137aa53365dc</guid><dc:creator>jul-nc</dc:creator><description>&lt;p&gt;Does this work really on Raspberry Pi ? I mean its ARM. I see nowhere that&amp;nbsp;this is supported.&lt;br /&gt;&lt;br /&gt;For me this:&lt;br /&gt;&lt;br /&gt;sudo nrfutil -v -v -v -v dfu serial -pkg app_dfu_package.zip -p /dev/ttyAMA0 -b 115200 -prn 1 -fc 0&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;is not working on Raspberry Pi (using nrfutil version 5.2.0). On Windows (nrfutil version 6.1.7) no problem.&lt;br /&gt;Bootloader has disabled HWFC and Baudrate is set to 115200.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/312441?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 15:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:936abd71-9f0d-48a5-8b6f-56a2399cbf4c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for updating the thread. You may also consider giving your user write access to ttyACM0 so you don&amp;#39;t have to run the script as root. &lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52546/nrf-connect-linux"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52546/nrf-connect-linux&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrfutil USB DFU trigger seems not to work on Linux systems</title><link>https://devzone.nordicsemi.com/thread/312339?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 11:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f546cf-c0e4-4a58-afb9-f35f026a7b93</guid><dc:creator>Matthias_A</dc:creator><description>&lt;p&gt;Adding sudo to the command did the trick.&lt;/p&gt;
&lt;p&gt;sudo nrfutil -v -v -v -v dfu serial -pkg ot-rcp.zip -p /dev/ttyACM0&lt;/p&gt;
&lt;p&gt;works fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>