<?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>main.py error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8200/main-py-error</link><description>Hi 
 I am trying to flash a new firmware into my device through DFU via the programming python script.
I use SDK7.2.0, and do: 
 ipy main.py -f c:\myproject.hex -a XXXXXXXXXXXX -m Application
 
 I get following error, do not know what to do: 
 C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2015 06:50:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8200/main-py-error" /><item><title>RE: main.py error</title><link>https://devzone.nordicsemi.com/thread/29506?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 06:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf7c424-f9ab-41ea-85f5-53661b4c7e61</guid><dc:creator>testy</dc:creator><description>&lt;p&gt;I do not see referenced exception on my machine. Iron Python (2.7.5) script (MCP 3.9.0 win32, MasterEmulator.dll 2.1.12.6) and OTA DFU of an &lt;strong&gt;application.zip&lt;/strong&gt;  using S310, SDK 7.2.0 and MEFW_nrf51822_0.11.0_firmware_1M.hex running on nRF51422QFAAE0 works for me. There are some Installer disassemblers (&lt;a href="http://www.legroom.net/software/uniextract)"&gt;www.legroom.net/.../uniextract)&lt;/a&gt;, if you are interested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: main.py error</title><link>https://devzone.nordicsemi.com/thread/29505?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 09:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2941629f-941d-4c62-98ff-ea20f95b69c0</guid><dc:creator>andlier</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the &amp;quot;[EXCEPTION] &amp;#39;type&amp;#39; object has no attribute &amp;#39;BTLE_CMD_LE_WRITE_SCAN_PARAMETERS&amp;quot;  is related to *.zip or *.hex. I get the same error with both *.zip and *.hex when I use the old python DFU script with the new master emulator dll.  I managed to delete the older revision of the masteremulator dll, I would really appreciate if you could provide it somehow. Or release a new compatible python dfu script (maybe its already out there, but I could only find similar code within the master control panel application, I haven&amp;#39;t figured out how to extract the python code from there and make a simple standalone python script though...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: main.py error</title><link>https://devzone.nordicsemi.com/thread/29503?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2015 08:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f1e210-0c01-4a75-872b-36239a99111c</guid><dc:creator>andlier</dc:creator><description>&lt;p&gt;I&amp;#39;m getting this same issue with the new masteremulator.dll, my python script worked fine before upgrading to latest dll. I&amp;#39;m not even using it to upload a hexfile, just scanning and reading some data from  a characteristic. Is there any way I could get back the old masteremulator.dll?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: main.py error</title><link>https://devzone.nordicsemi.com/thread/29504?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 19:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928c5448-ea34-45a7-b24d-49aad23ba9db</guid><dc:creator>testy</dc:creator><description>&lt;p&gt;As far as I know, myproject.hex file is further not supported in MCP 3.9.0 because of init packet implementation (althoug feasible in GUI MCP). There is an omission in help.&lt;/p&gt;
&lt;p&gt;To make script working, &lt;strong&gt;myproject.zip&lt;/strong&gt; must be generated with using nrf.exe instead.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/IPY.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>