<?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>Automated nRF5284 DFU via USB using python</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124460/automated-nrf5284-dfu-via-usb-using-python</link><description>Hello, 
 
 I am trying to write a python script that performs a DFU on a nRF52840 so I can change its firmware without pressing any button. I think I have to use the pyusb module to be able to communicate with my nRF52840 and trigger its bootloader mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Oct 2025 01:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124460/automated-nrf5284-dfu-via-usb-using-python" /><item><title>RE: Automated nRF5284 DFU via USB using python</title><link>https://devzone.nordicsemi.com/thread/551052?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2025 01:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0bc1e9e-9ab1-47fe-a7a4-c9d1a96ff4d2</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;The trigger library is meant for the dongle, you can Build/compile with it in your program to do some DFU ,bootloader tricks.&lt;/p&gt;
&lt;p&gt;exactly what you want, your python automation would handshake with the dongle to set DFU mode , Upload the new code and it would reset on completion, other options can make it stop and wait on reboot for a do over or boot the app.&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL :-) PJ :v:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automated nRF5284 DFU via USB using python</title><link>https://devzone.nordicsemi.com/thread/549313?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 12:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3852908-baef-4361-a281-03d0098d2bfb</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Robin,&lt;/p&gt;
&lt;p&gt;If you have the same issue on native Window,&amp;nbsp;then you might have the same issue discussed in the first half of this case:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/120904/custom-nrf5340-board-no-bluetooth-signal/533924"&gt;RE: custom nRF5340 board no bluetooth signal&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Could you please refer to the answer I link and see if that is the case?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automated nRF5284 DFU via USB using python</title><link>https://devzone.nordicsemi.com/thread/549153?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 10:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08fe9fb4-f10e-4c08-908e-300ae5b38395</guid><dc:creator>Robin D.</dc:creator><description>&lt;p&gt;small precision : I use WSL1 (it seems that it is easier to manage USB connection with it than with WSL2)&lt;/p&gt;
&lt;p&gt;And I tried executing my script directly on Windows and had the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automated nRF5284 DFU via USB using python</title><link>https://devzone.nordicsemi.com/thread/549151?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 10:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b7d200-ab77-4571-ba22-71d0758c4954</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Try running Linux host somehow (e.g. via boot from USB stick). Windows and Linux have VERY different ideas about USB drivers, and mixing them will be a nightmare.&lt;/p&gt;
&lt;p&gt;There is documentation that describes how to connect USB devices to WSL, but that stuff seems off topic here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>