<?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>USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63727/usb-dfu-cause-hash-not-match-issue</link><description>hi, 
 I am working on nrf52833 dfu. right now I received an error 
 raise NordicSemiException(&amp;#39;Extended Error 0x{:02X}: {}&amp;#39;.format(resp[3], data)) pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x0C: The hash of the received firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Sep 2020 12:07:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63727/usb-dfu-cause-hash-not-match-issue" /><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/268299?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 12:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db051cf7-6561-4987-84d7-ad3ea30714e4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you check&amp;nbsp;dfu_enter_flags_clear() function inside&amp;nbsp;nrf_bootloader_init() ? It&amp;#39;s called right after dfu_enter is checked true.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;GPREGRET&amp;nbsp; register should be erased inside that function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/268129?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 21:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1685e931-80f3-4e24-9a5a-a757cfc60ec4</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;Thanks, Bui, I think this fix works for me. but we also found another bug, which feels the usb dfu in this version do not clear&amp;nbsp;NRF_POWER-&amp;gt;GPREGRET after flash or time out. used when we working on nrf52832 with gpregret enter mode, the chip can go back to application after flash and time out, but now it stay in bootloader mode until power off the chip, which will reset the&amp;nbsp;&lt;span&gt;NRF_POWER-&amp;gt;GPREGRET&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/264893?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5855543-fb0b-4f41-8d33-65f13d0c837d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry for the late response.&amp;nbsp;&lt;br /&gt;I have tested here and reproduced the issue. I dig a little bit more and I think I found the bug.&amp;nbsp;&lt;br /&gt;In nrf_bootloader_app_start() in nrf_bootloader_app_start.c we disable all interrupts and then we call&amp;nbsp;NRF_LOG_FLUSH();&lt;/p&gt;
&lt;p&gt;This will cause a dead loop inside&amp;nbsp;serial_tx() if you use&amp;nbsp; UART for logging.&amp;nbsp;Resulting the app never executed.&amp;nbsp;&lt;br /&gt;if you call&amp;nbsp;&amp;nbsp;NRF_LOG_FLUSH(); before disabling interrupts&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NVIC-&amp;gt;ICER[0]=0xFFFFFFFF;
NVIC-&amp;gt;ICPR[0]=0xFFFFFFFF;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it should work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/263484?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 15:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641b1639-7b7c-4f97-9f9a-3e7b0c1d16d4</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;hi Hung Bui,&lt;/p&gt;
&lt;p&gt;after check the&amp;nbsp;&lt;span&gt;pca10100_usb_debug_833.zip you send to me. I switch the&amp;nbsp;log mode I used from uart to rtt, and it works. then I do more test and found maybe there is some issues with uart log. based on my result, turn off the log or using rtt log both works, but using uart log causes the issue.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/263288?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 15:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef08b5a-1335-49ba-81af-63bf8cbd7506</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;br /&gt;Could you explain what you meant by &amp;quot;&lt;span&gt;but for usb debug package, it cannot flash, and return an error message&amp;quot; ?&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You supposed to unzip&amp;nbsp;pca10100_usb_debug_833.zip put that into the bootloader example in SDK and then compile the bootloader using Segger Embedded Studio . Do that you will get the bootloader .hex&amp;nbsp;file.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to compile using gcc you would need to modify your make file according to what I did in the .emProject&amp;nbsp; file and&amp;nbsp;flash_placement.xml file.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/263281?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 15:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c41ba8-9915-4f0e-823d-e790285a0f0a</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I tested with the bootloader file you give me, it can flash the blink flash, and it can runned. but for usb debug package, it cannot flash, and return an error message.&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;/usr/local/bin/nrfutil&amp;quot;, line 8, in &amp;lt;module&amp;gt;&lt;br /&gt; sys.exit(cli())&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 829, in __call__&lt;br /&gt; return self.main(*args, **kwargs)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 782, in main&lt;br /&gt; rv = self.invoke(ctx)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1066, in invoke&lt;br /&gt; return ctx.invoke(self.callback, **ctx.params)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 610, in invoke&lt;br /&gt; return callback(*args, **kwargs)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/__main__.py&amp;quot;, line 1015, in usb_serial&lt;br /&gt; timeout)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/__main__.py&amp;quot;, line 964, in do_serial&lt;br /&gt; dfu = Dfu(zip_file_path = package, dfu_transport = serial_backend, connect_delay = connect_delay)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu.py&amp;quot;, line 69, in __init__&lt;br /&gt; self.manifest = Package.unpack_package(zip_file_path, self.unpacked_zip_path)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/package.py&amp;quot;, line 650, in unpack_package&lt;br /&gt; with open(os.path.join(target_dir, Package.MANIFEST_FILENAME), &amp;#39;r&amp;#39;) as f:&lt;br /&gt;FileNotFoundError: [Errno 2] No such file or directory: &amp;#39;/var/folders/m9/th1fg8h54d33zsz93rypyvdc0000gn/T/nrf_dfu_6dmao_5m/unpacked_zip/manifest.json&amp;#39;&lt;/p&gt;
&lt;p&gt;also with serial window open, I have not see any debug message print out, are you using uart debug or rtt debug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/263189?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 10:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d567940-8167-499c-a862-30e0ef3ec46b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;br /&gt;I have made an example for USB DFU on nRF52833. I attached the project (pca10100_usb_debug_833.zip) here.&amp;nbsp;&lt;br /&gt;It&amp;#39;s made on SES and was modified from pca10100e_usb_debug. But should be straight forward to port to gcc. I would suggest to compare the .emProject file and the flash_placement.xml file to see my modification and apply the same to your gcc Makefile. Main changes were flash size and address, ram address and size, hard floating point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also attached the .hex file I used (mbr, bootloader and the dfu .zip file) so you can test on your side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Before you test, please make sure to do a chip erase.&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-05c5ed85f20c445686a8d0f77507c50c/833DFU.zip"&gt;devzone.nordicsemi.com/.../833DFU.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/262845?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 15:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c383bc9-a7fe-47b5-8f48-a1d12d60d06d</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10100_5F00_usb_5F00_debug.zip"&gt;devzone.nordicsemi.com/.../pca10100_5F00_usb_5F00_debug.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10100_5F00_s140_5F00_ble_5F00_debug_5F00_usb.zip"&gt;devzone.nordicsemi.com/.../pca10100_5F00_s140_5F00_ble_5F00_debug_5F00_usb.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also post my info here.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64101/nrf52833-usb-dfu-bootloader-does-not-go-to-the-application"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/64101/nrf52833-usb-dfu-bootloader-does-not-go-to-the-application&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the pca10100_usb_debug is the one I start from pca10100e_usb_debug, this one, I can flash, and the application and bootloader can be writed into memory, but the application is not run. then the pca10100_s140_ble_debug_usb is the one I start from pca10100_s140_ble_debug, this one the nrfutil do not give any problems, but after flash, the application is not on memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/262765?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 11:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fcf900-ab40-4c98-b4ff-6ab8945d97cd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry for late response I was on vacation last week.&lt;/p&gt;
&lt;p&gt;Could you send us the bootloader that you made for the nRF52833 ? Are you using open bootloader or the secure one ? From which project did you modify the bootloader to ? Was it the one for nRF52832 or nRF52840 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The address 0xFF8 is used to store the start address of the bootloader in the MBR.&amp;nbsp; This is optional as the start address of the bootloader is also stored in the UICR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/262452?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 14:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd2622c-4ff1-44c4-96a5-7be801ab2003</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/weizhen1883"&gt;weizhen&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Hung is currently out of office on vacation but he will be back next week. Thanks for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/261272?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 22:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75fb7e69-e5d2-4c16-a057-b3dfdeecd21f</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;from the debug version print, I get &amp;quot;app: Inside main&amp;quot; at the end, which means it should enter the application mode, but the application is not really run, and the code seems stopped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/261035?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 15:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4bca2b-205c-426f-a74f-bde828ba0621</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;first your blog is not working for me. let&amp;#39;s make clear, this issue only happened on sdk 17, which released weeks ago. we have working uart dfu for nrf52832 which used sdk 14, and a working usb dfu for nrf52840 which used sdk 15.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so there is two things, one is a bootloader which I start from an ble bootloader example, and try to make it works for usb. it uses softdevice. it get the hash not match issue at the end of flash. the issue happened when it flashed 96%. after using the &amp;#39;-prn 256&amp;#39; it change to 98%.&lt;/p&gt;
&lt;p&gt;then I followed edvin suggested, to start from a usb bootloader with debug, and make it work for the chip I want to use, which is nrf52833. also I have no idea why you guys do not have the example code for that. then that works, that can flashed all the code, but then the application is not runing, I think I am clear here, it is the application not running, which means the bootloader is runing, I can get the &amp;quot;Inside main&amp;quot; print out.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;then I check the memory usage by using nrf connect, found there is something wrong, first there is no softdevice detected. the code is there, but it detected as application. second, the softdevice start address is not right, I think right now 0x0 to 0x1000 is used for mbr, and sd start at 0x1000, but based the memory I get after dfu, it start at 0xFF8. I also checked when I flash the mbr, there is a 8 bytes start at 0xFF8, but when I flashed sd, the 8 bytes is not there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260928?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 08:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e73bd1ad-e742-4e72-8000-cafa9bece3a4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you tried to follow my blog ? Please try to update with a simple example first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please describe what exactly you observed? The DFU update run until 100% and you don&amp;#39;t see any app running after that ? nor bootloader running ?&amp;nbsp;&lt;br /&gt;Please do what Edvin suggested and check the logging of the bootloader and the DFU master.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260862?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 15:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ab7e2fc-89dc-465b-84a9-73670f2604fe</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;I tried, with the application only, the application is still not running&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260860?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 15:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794cd97e-b7bb-450c-85ff-0c6fedde2a22</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Weizhen,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over Edvin as he is taking vacation.&amp;nbsp;&lt;br /&gt;Could you please explain a little bit what you want to do DFU ? Are you planning to do DFU for only application or application + softdevice.&amp;nbsp;&lt;br /&gt;I would suggest to test doing DFU with only application first. If you do that you don&amp;#39;t need to specify the softdevice.&lt;br /&gt;You can follow my blog here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260452?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 21:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf28c14-bf95-486a-889a-c2624daac67d</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;I try to use pca10100e_usb_debug example and convert it to nrf52833. it works, I can flash all the code. but the application code is not runing.&lt;br /&gt;I use &amp;quot;&lt;span&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x00 --sd-id 0xCA --softdevice &amp;lt;softdevice file&amp;gt; --application-version 1 -- application &amp;lt;hex file&amp;gt; --key-file &amp;lt;priv.pen file&amp;gt; &amp;lt;output&amp;gt;&amp;quot; to generate the .zip file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260431?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 15:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac77dc25-54c9-4835-b23f-677e554e135b</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;after adding &amp;quot;-prn 256&amp;quot; then it can flash 98%&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260302?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 09:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1547c79-a8b6-4985-b3ba-c5154766af0c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;This means that the init packet is ok, since it didn&amp;#39;t stop immediately (close to 0%). At this point you have transferred the entire image, but the CRC doesn&amp;#39;t match the CRC from the signature, meaning you have some bit errors (or missing pieces) in your image when it is transferred to the nRF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please try to use the _debug bootloader project and monitor the log from the bootloader on the nRF itself?&lt;/p&gt;
&lt;p&gt;Also, can you try to add the flag &amp;quot;-prn 256&amp;quot; in your &amp;quot;nrfutil dfu usb-serial ...&amp;quot;call? Does that change anything?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260209?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 16:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab42e4e5-957a-4beb-9f2b-01e86078d656</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;[##################################--] 96% 00:00:11&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;/usr/local/bin/nrfutil&amp;quot;, line 8, in &amp;lt;module&amp;gt;&lt;br /&gt; sys.exit(cli())&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 829, in __call__&lt;br /&gt; return self.main(*args, **kwargs)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 782, in main&lt;br /&gt; rv = self.invoke(ctx)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1259, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 1066, in invoke&lt;br /&gt; return ctx.invoke(self.callback, **ctx.params)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/click/core.py&amp;quot;, line 610, in invoke&lt;br /&gt; return callback(*args, **kwargs)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/__main__.py&amp;quot;, line 1015, in usb_serial&lt;br /&gt; timeout)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/__main__.py&amp;quot;, line 970, in do_serial&lt;br /&gt; dfu.dfu_send_images()&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu.py&amp;quot;, line 127, in dfu_send_images&lt;br /&gt; self._dfu_send_image(self.manifest.application)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu.py&amp;quot;, line 100, in _dfu_send_image&lt;br /&gt; self.dfu_transport.send_firmware(data)&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 302, in send_firmware&lt;br /&gt; self.__execute()&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 421, in __execute&lt;br /&gt; self.__get_response(DfuTransportSerial.OP_CODE['Execute'])&lt;br /&gt; File &amp;quot;/usr/local/lib/python3.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 502, in __get_response&lt;br /&gt; raise NordicSemiException(&amp;#39;Extended Error 0x{:02X}: {}&amp;#39;.format(resp[3], data))&lt;br /&gt;pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x0C: The hash of the received firmware image does not match the hash in the init packet.&lt;br /&gt;make: *** [flash_pkg] Error 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260208?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 16:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66e2dde-f439-44dc-80f0-4ae98b115e9c</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;yes, I use the same key. my application support BLE. so right now my application works if I flash it. since bootloader start, I can assum the bootloader is working too. the wired part is it stop at 96%.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/260188?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 14:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a392b702-d634-4cb1-abdb-2a407b8383a3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So what bootloader project did you start with? I suggest you look into starting with the SDK17\examples\dfu\secure_bootloader\pca10056_usb,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;But you need to change the memory settings.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Does your bootloader and/or application support BLE as well as USB?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Your dfu memory settings suggests that you have a softdevice, but your application does not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Let&amp;#39;s assume you have a softdevice:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;You should change your application&amp;#39;s ram to the same as your bootloader&amp;#39;s to account for the softdevice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There are some other things you should change in the makefile as well. What does your preprocessor definitions and assembly flags look like? (CFLAGS and ASMFLAGS). Perhaps there are some of those that suggests you are using a different chip?&lt;/p&gt;
&lt;p&gt;Also, make sure to set the TARGETS := nrf52833_xxaa_s140.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I assume you have checked, but are you 100% sure that you used the same key to generate the dfu image as you used in the bootloader? (that you are using the matching private key for the bootloader&amp;#39;s public key).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/259961?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 14:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea6ac3e-f224-4aab-bf36-5e394578ee41</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;I have not change the bootloader code, the only thing I change is makefile and config file, due to there is no example for pca10100 usb with softdevice s140.and also I change the public_key&lt;br /&gt;I use nrfutil dfu usb-serial -pkg &amp;lt;.zip file&amp;gt; -p &amp;lt;serial port&amp;gt; -fc 0 to flash, and use nrfutil pkg generate --hw-version 52 --sd-req 0xCA --application-version 1 -- application &amp;lt;hex file&amp;gt; --key-file &amp;lt;priv.pen file&amp;gt; &amp;lt;output&amp;gt; to generate the package&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Dfu cause hash not match issue.</title><link>https://devzone.nordicsemi.com/thread/259944?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 14:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:100e421c-69f9-4974-a09a-2e1b9ef0859f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please show me what nrfutil commands you used to generate and transfer the DFU image? And did you do &lt;strong&gt;any&lt;/strong&gt; changes to the bootloader project? Or does it also occur in the unmodified bootloader project? (you will, of course, need to replace the dfu_public_key.c in the unmodified bootloader project.&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></channel></rss>