<?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>nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15804/nrf52-single-bank-remote-dfu-invalid-crc-error</link><description>Hi, 
 I&amp;#39;ve been trying to get DFU updates working on my device for a while now... I&amp;#39;ve got the single-bank bootloader compiled and seemingly working (and a combined hex file of sd+bootloader+app works great). 
 I used nrfutil (3.10.0.14) to create a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2016 14:17:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15804/nrf52-single-bank-remote-dfu-invalid-crc-error" /><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60321?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 14:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0361f092-2fa7-4040-b647-a0b49c5f2aa9</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Found it. In &lt;code&gt;pstorage_platform.h&lt;/code&gt;, there should be a &lt;code&gt;typedef uint32_t pstorage_size_t;&lt;/code&gt;. However in 95% of the examples in the SDK, the file actually contains &lt;code&gt;typedef uint16_t pstorage_size_t;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Since I was trying to use the same build system with the same &lt;code&gt;_platform.h&lt;/code&gt; files for my app and bootloader, I got hit with this.&lt;/p&gt;
&lt;p&gt;I hit another similar problem when trying to get NFC working. A simple #error if the typedef is wrong for the bootloader could save a lot of people a lot of time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60315?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 14:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a502c8-cff9-4962-a2e6-3cdbea2fdc7c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It should start in bootloader mode:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -f nrf52 -e
nrfjprog -f nrf52 --program s132_nrf52_2.0.0_softdevice.hex
nrfjprog -f nrf52 --program gcc_bootloader_nrf52.hex
nrfjprog -f nrf52 -r
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60314?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 14:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6846b9e3-2833-43b1-82d0-b0fa9ecb63fa</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;And just to add, Michael Dietz had provided a pre-compiled single bank bootloader hex file, and that seems to work fine with the larger binary, so it&amp;#39;s something to do with the way the bootloader is compiled... But what could be causing it to upload corrupted data without any warnings being produced?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60313?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb8e4bfd-7810-4e18-8610-10737220efac</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m using &lt;code&gt;s132_nrf52_2.0.0_softdevice&lt;/code&gt; too (it&amp;#39;s the one used for Espruino), but your hex file doesn&amp;#39;t appear to work (no LEDs, no advertising). Do I have to do something special to get into bootloader mode? I tried &lt;code&gt;dfu_dual_bank_ble_s132_pca10040.hex&lt;/code&gt; from Nordic&amp;#39;s own SDK, and my &lt;code&gt;_sml&lt;/code&gt; image does upload fine though (I&amp;#39;ll edit my answer, i&amp;#39;d got the wrong binary).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60319?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc57b80-802a-4ff4-9333-c5d7a909b537</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Just to confirm, you got my bootloader to work and you are using s132_nrf52_2.0.0_softdevice.hex as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60318?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d03d108c-752f-4e1e-b0fe-10ac96758d45</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Interesting - I just tried and yes, your small zip works. The bootloader fails with the &lt;code&gt;_sml&lt;/code&gt; zip from the link I gave though. It&amp;#39;s not &lt;em&gt;as&lt;/em&gt; small, but would still fit in 1 bank. I also took the &lt;code&gt;_sml&lt;/code&gt; bin file and just truncated it to 40kB. It uploads file too... So it looks like it&amp;#39;s to do with firmware size&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60320?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9834264-b36d-49d4-8a8c-3f480a94e586</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m using s132_nrf52_2.0.0_softdevice.hex Please have a look at my edit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60317?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad83723-074b-4661-ae9c-e7889ea751ac</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;And your bootloader doesn&amp;#39;t work for me. What SoftDevice are you using? (the hex file I supplied above should contain bootloader + sd + app - if you flashed just the bootloader + app it almost certainly wouldn&amp;#39;t have worked)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60316?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 11:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df24a6a-c02b-4883-b19a-6f245cb15bdb</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Really? I just saved the file &lt;code&gt;espruino_1v86.90_nrf52832_full.hex&lt;/code&gt; linked above onto the board and it works great, appearing as &lt;code&gt;Espruino NRF52832DK&lt;/code&gt; normally, and &lt;code&gt;DfuTarg&lt;/code&gt; when reset with BTN1 held down. You can also connect via Serial at 9600 baud. Do you not get that? I&amp;#39;ve provided similar firmwares to others and they haven&amp;#39;t had any trouble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60312?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 11:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2daf5298-0cc6-4a31-bf2e-63263bddb658</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I tried to flash your full hex file. I can&amp;#39;t get it to advertise. Tried to reset and holding down buttons.&lt;/p&gt;
&lt;p&gt;I tested the gcc compiled bootloader in SDK 11.0.0. Seems to be working fine. Could you test &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gcc_5F00_bootloader_5F00_nrf52.hex"&gt;it&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Edit: Sorry. Got it working now. I got the REMOTE DFU INVALID CRC ERROR when doing DFU with espruino_1v86.90_nrf52832_dfu.zip. Then I tried with with ble_app_hrs, &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hrs.zip"&gt;this&lt;/a&gt; zip, and that worked fine. No error.&lt;/p&gt;
&lt;p&gt;But you got the error witha smaller image as well? And with the unmodified dual bootloader from the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60311?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 13:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cbab08-5b9d-44c2-ad13-553f6914c108</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Yes, it happens with the dual bank. It wasn&amp;#39;t modified past recompiling it in GCC, changing LED/BTN pins, and nudging it back in memory (as GCC doesn&amp;#39;t get the code size down as far as Keil).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60310?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2016 13:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60fcb68-14da-4f10-b8e8-b09a754d4058</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It happens with the unmodified dual bank bootloader as well? Or did you modify it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60309?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 10:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc05e7b-3a40-44c0-a620-e0576c85b7ae</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Just to add: I compiled with the dual bank bootloader and the smaller image. Same problem with the CRC error...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60308?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 10:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a7e35fc-242d-44bb-b3ac-1e690febff53</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Looks like I can&amp;#39;t upload ZIPs anyway, so I put everything (compiled for nRF52 DK) here: &lt;a href="http://www.espruino.com/tmp/dfu_problems/"&gt;www.espruino.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just upload the &amp;#39;full&amp;#39; hex file, reset the board with BTN1 held down, and then use the Nordic updater app with the zip file, and you should get the same problem.&lt;/p&gt;
&lt;p&gt;All the source code is at &lt;a href="https://github.com/espruino/Espruino"&gt;github.com/.../Espruino&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60305?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2016 14:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf80147-8db9-4c76-b88a-961df44cf77a</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;I tried with 117kB and 240k instead of 330k but no luck (however corruption is up to the exact same place). Any thoughts about how this could be debugged, given I can&amp;#39;t easily connect the debugger while BLE is in use. I can supply binaries for nRF52DK...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60304?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2016 13:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd350aa-362b-4c9a-ab16-e83c39a6671f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Does it work with smaller example? Could you also upload the two memory images?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60307?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2016 13:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662b7175-be2f-441a-b8a4-01ab1ff9e978</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Unfortunately I can&amp;#39;t test it because the binary file is too large (hence the single bank loader). I just checked the bin file, and the crc in the manifest is definitely correct... I did a firmware update using Android (which failed), then dumped the contents of memory and compared the two memory areas. Everything after 0x10010 in the binary (so absolute address 0x2c010 as the binary starts at 0x1c000) seems to be correct, but everything before is trashed - mostly 0x00, with some 0x10, 0x20, 0x40 and few very occasional other values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 single bank: REMOTE DFU INVALID CRC ERROR</title><link>https://devzone.nordicsemi.com/thread/60306?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2016 11:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd680c75-ef33-418f-84fc-a0180379eecf</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what is causing this. Does dfu.zip work with the dual bank bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>