<?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>Integrate pc-nrfprog-js in an electron app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54206/integrate-pc-nrfprog-js-in-an-electron-app</link><description>Hi, 
 I am trying to develop an electron app to program the DFU with *.zip firmware file generated by nrfutil. I looked at the nrfprog-js api and want to use the following function 
 
 I have a few questions: 
 1. What are the requirements to add this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 00:58:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54206/integrate-pc-nrfprog-js-in-an-electron-app" /><item><title>RE: Integrate pc-nrfprog-js in an electron app</title><link>https://devzone.nordicsemi.com/thread/300259?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 00:58:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed805774-f88a-4ecc-9e42-9f5a3c53f889</guid><dc:creator>public_virtual_void</dc:creator><description>&lt;p&gt;I&amp;#39;d love some help with this as well - anyone&amp;nbsp;have any idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate pc-nrfprog-js in an electron app</title><link>https://devzone.nordicsemi.com/thread/219355?ContentTypeID=1</link><pubDate>Sat, 09 Nov 2019 12:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75db9d34-7afd-42bb-93e0-f808bf2dffdc</guid><dc:creator>Parichay</dc:creator><description>&lt;p&gt;Considering the complexity of pc-nrfjprog-js with electron, I&amp;nbsp;am trying to add `pc-nrf-dfu-js` in my project. I am trying to run the following code in my project:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;DfuUpdates.fromZipFilePath(fimrwareLocation)
      .then(updates =&amp;gt; {
        const serialTransport = new DfuTransportSerial(serialPort, 16)
        const dfuOperation = new DfuOperation(updates, serialTransport)
        console.log(&amp;#39;Starting Bootloader DFU&amp;#39;)
        dfuOperation.start(true)
      })
      .then(() =&amp;gt; {
        console.log(&amp;#39;Bootloader DFU completed successfully!&amp;#39;)
      })&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I get the following error:&lt;/p&gt;
&lt;p&gt;DfuError: Error message: Timeout while reading from serial transport.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any hint on what could be the issue? What am I doing wrong here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>