<?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 UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48371/nrfutil-unicodedecodeerror</link><description>HI 
 when I use nrfutil.exe to generate .zip file on win10 64bit, I got the UnicodeDecodeError. 
 And : 
 Python version 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win32 
 nrfutil version 3.3.2. 
 SDK 15.3.0 
 the example is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2019 04:46:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48371/nrfutil-unicodedecodeerror" /><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/200389?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 04:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed63d1a-889b-49a3-af01-ac53cde0a335</guid><dc:creator>salbdch</dc:creator><description>&lt;p&gt;Problem solved,&lt;/p&gt;
&lt;p&gt;In my case, it was working directory naming issue.&lt;/p&gt;
&lt;p&gt;(login to Windows with ID in Korean, so working directory also contains&lt;/p&gt;
&lt;p&gt;Korean characters like C:\Users\[Korean characters])&lt;/p&gt;
&lt;p&gt;So I change these to English and things now working fine.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/200385?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 03:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06f398e-32e5-4d5c-a4f9-1e67aff48d99</guid><dc:creator>salbdch</dc:creator><description>&lt;p&gt;Hello ziming,&lt;/p&gt;
&lt;p&gt;I got same UnicodeDecodeError issue like you.&lt;/p&gt;
&lt;p&gt;Could you share how you solve the problem in detail?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/193653?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 12:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb83db3-a1cb-4f24-81ad-d9e694bbe31d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Ziming,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It appears that its not possible to generate a firmware image using nrfutil without specifying the -sd-req. So you will have to either have a SD present on the device or include a SD in the image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So your application is not using the RADIO in the nRF52840 at all?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192294?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 09:15:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24cea697-ff01-4bf7-9346-85b5f83714b4</guid><dc:creator>ziming</dc:creator><description>&lt;p&gt;Without SD on the device.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;My application only uses a Master Boot Record (MBR).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to know Can I upgrade device without SoftDevice ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What should I do if I can？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192287?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 09:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb32eddd-d605-420d-870e-3be5cfea1ddd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If the SD is present on the device, then you need to use the --sd-req that is identical to the SD that you flashed to the chip. WHich SD version did you flash?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192248?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 08:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c3651b-96ab-4038-ba14-ac82031c5194</guid><dc:creator>ziming</dc:creator><description>&lt;p&gt;&lt;span&gt;--sd-req I used 0xb6,and&amp;nbsp;after I burned SoftDevice to the chip, the upgrade was successful.But i don`t use softdevice,My application only uses a Master Boot Record (MBR).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to know Can I upgrade without SoftDevice ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What should I do if I can？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I try using --sd-req 0xFFFE when I&amp;nbsp;generated the&amp;nbsp;app_dfu_package.zip,and the device don`t have SoftDevice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The generated command is &amp;quot;nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52840_xxaa.hex --sd-req 0xFFFE --key-file private.key app_dfu_package.zip&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use &amp;quot;nrfutil dfu usb-serial -pkg .\app_dfu_package.zip -p COM8&amp;quot; to upgrade,but It still returns&amp;nbsp;NordicSemiException: Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192228?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 07:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc25d2d6-520f-424b-8f29-e85b20f32694</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which --sd-req did you set when you generated the &lt;span&gt;app_dfu_package.zip using nrfutil? Try using 0xFFFE.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192193?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 03:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35c051a9-aa73-4527-8e90-00397e6bcb82</guid><dc:creator>ziming</dc:creator><description>&lt;p&gt;&lt;span&gt;I have solved the problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the problem with python2.7，it&amp;nbsp;default encoding is ASCII,Change the encoding mode to GBK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I ran into another problem when I was using the DFU USB upgrade.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use the command is &amp;quot;nrfutil dfu usb-serial -pkg .\app_dfu_package.zip -p COM8&amp;quot;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It return &amp;quot;NordicSemiException: Extended Error 0x07: The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice&amp;quot;. But i don`t use softdevice,My&amp;nbsp;application only uses a Master Boot Record (MBR).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you help me how should I solve this problem?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192185?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 01:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f6e138-a9be-4e04-a031-af356320bce6</guid><dc:creator>ziming</dc:creator><description>&lt;p&gt;I using the nrfutil.exe from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/releases&lt;/a&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/192146?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ebb8627-b788-4617-85da-0f7eeddb78c6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Did you install nrfutil using pip or are you using the nrfutil.exe from &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/releases&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil UnicodeDecodeError</title><link>https://devzone.nordicsemi.com/thread/191804?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 10:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7178da8c-e829-4ec7-86e4-660f0b3e2712</guid><dc:creator>ziming</dc:creator><description>&lt;p&gt;&lt;span&gt;I changed the version of nrfutil into 5.2.0(Everything else is the same as before)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The error message is:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;nordicsemi\__main__.py&amp;quot;, line 1464, in &amp;lt;module&amp;gt;&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 764, in __call__&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 717, in main&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 1137, in invoke&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 1137, in invoke&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 956, in invoke&lt;br /&gt; File &amp;quot;click\core.py&amp;quot;, line 555, in invoke&lt;br /&gt; File &amp;quot;nordicsemi\__main__.py&amp;quot;, line 867, in generate&lt;br /&gt; File &amp;quot;nordicsemi\dfu\package.py&amp;quot;, line 407, in generate_package&lt;br /&gt; File &amp;quot;nordicsemi\dfu\package.py&amp;quot;, line 602, in normalize_firmware_to_bin&lt;br /&gt; File &amp;quot;ntpath.py&amp;quot;, line 85, in join&lt;br /&gt;UnicodeDecodeError: &amp;#39;ascii&amp;#39; codec can&amp;#39;t decode byte 0xcd in position 7: ordinal not in range(128)&lt;br /&gt;[15032] Failed to execute script __main__&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>