<?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 dfu serial shows: TypeError: &amp;#39;NoneType&amp;#39; object is not iterable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87382/nrfutil-dfu-serial-shows-typeerror-nonetype-object-is-not-iterable</link><description>Hi, 
 i am using nrfutil 6.1.0 in windows (i&amp;#39;ve installed it typing pip install nrfutil), i am using python 3.6.5 and when trying to serial dfu it shows the following error: 
 
 C:\Users\mtapia\Desktop\tools&amp;gt;nrfutil dfu usb-serial -pkg aquana_nrf52840_s140</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2022 06:25:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87382/nrfutil-dfu-serial-shows-typeerror-nonetype-object-is-not-iterable" /><item><title>RE: nrfutil dfu serial shows: TypeError: 'NoneType' object is not iterable</title><link>https://devzone.nordicsemi.com/thread/366588?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 06:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6fee74a-518b-4fc4-abea-d199540f4924</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does this happen only on this particular application image or all images you generate?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Because I don&amp;#39;t want you to share your private key, can you compile a bootloader with a new private key, and then upload both the new image and the new private key file here, so that I can test the image myself?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, please copy paste the nrfutil command that you used to generate the image, so that I can have a look.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu serial shows: TypeError: 'NoneType' object is not iterable</title><link>https://devzone.nordicsemi.com/thread/366550?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 18:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9a729d-1a4a-4acc-8dd9-a8768fe358e0</guid><dc:creator>Manuel Tapia</dc:creator><description>&lt;p&gt;i updated python to be 3.8 and it does not works yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651776596417v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;below i am showing to you an Ubuntu screenshot which works OK following the same steps.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651776956940v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;can the issue be that my .zip image is being generated in ubuntu? does the .zip image should be generated in windows?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu serial shows: TypeError: 'NoneType' object is not iterable</title><link>https://devzone.nordicsemi.com/thread/365695?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 08:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5b3187-b224-4bd3-9425-8edaffc5536a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested your image. Obviously, I am not able to actually perform the DFU, since I don&amp;#39;t have your private key, so my bootloader will reject the application. (Unless you are using an open bootloader, I didn&amp;#39;t test that, so please let me know if that is the case).&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t notice in the first post, but you need to update to python 3.7 or later. I am using python 3.8.0, and nrfutil works on my (Windows) computer:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651478718151v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The python 3.7 requirement is listed here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_installing.html?cp=10_7_1"&gt;https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_installing.html?cp=10_7_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu serial shows: TypeError: 'NoneType' object is not iterable</title><link>https://devzone.nordicsemi.com/thread/365470?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 15:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:425ac8cc-acc6-48dd-a752-09bc0642e262</guid><dc:creator>Manuel Tapia</dc:creator><description>&lt;p&gt;the image is OK, actually i can serial DFU the image in Linux but not in Windows, the image is attached here, what i am doing is i have the COM9 used at the first time as debugging (using tera term) then after applying a CLI command that i created to set the device in dfu mode, once the device is in dfu mode, i am closing the tera term to have the COM9 not used and then using this command to serial dfu:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfutil dfu usb-serial -pkg aquana_nrf52840_s140.zip -p COM9 -b 115200&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aquana_5F00_nrf52840_5F00_s140.zip"&gt;devzone.nordicsemi.com/.../aquana_5F00_nrf52840_5F00_s140.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the same steps and the same image i am following in Linux and it works OK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;actually i did a test leaving the COM9 opened and the log is different you can see it in the attached file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/com9_5F00_opened.txt"&gt;devzone.nordicsemi.com/.../com9_5F00_opened.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;so i am not sure what is wrong because the same steps in linux works OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu serial shows: TypeError: 'NoneType' object is not iterable</title><link>https://devzone.nordicsemi.com/thread/365412?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 12:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b836ae87-4107-4417-acaf-b98973100014</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure that the serial port that you are trying to use (COM9) is not used by anything else on the pc when you call the nrfutil command? Do you use the COM port for e.g. logging, and have a UART terminal open or something?&lt;/p&gt;
&lt;p&gt;One way to quickly disconnect the COM port is to power cycle the DK. Perhaps you can try that.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, how did you generate the DFU image that you are trying to use? Can you show me what command you used? Can you upload&amp;nbsp;&lt;span&gt;aquana_nrf52840_s140.zip here? (or another packet that gives the same issue, in case you don&amp;#39;t want to share that specific image)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>