<?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>CRC problem in my customize DFU Controller (nrfutil)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46199/crc-problem-in-my-customize-dfu-controller-nrfutil</link><description>Hi, 
 
 For some reasons, I would like to write my own application for updating the firmware, something like NRFUTIL application. 
 I wrote it and everything is working fine but in case of CRC failure my target device stuck somewhere and I should restart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Apr 2019 15:04:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46199/crc-problem-in-my-customize-dfu-controller-nrfutil" /><item><title>RE: CRC problem in my customize DFU Controller (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/182756?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 15:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac072159-3ad9-4e43-aa78-fcb4016cdc3a</guid><dc:creator>nta_xyz</dc:creator><description>&lt;p&gt;I think finally I found the problem!, the problem was when I got the CRC error, I started sending from the beginning of the firmware again!, but I should send data from the last correct offset.&lt;/p&gt;
&lt;p&gt;now it is working in all situations.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for helping me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CRC problem in my customize DFU Controller (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/182578?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 11:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7231904-ee2c-4eda-99b8-7080fcd876dc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;[quote user="nta_xyz"][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the problem is that after I get CRC error I call NRF_DFU_OBJECT_OP_SELECT and for example it returns this array:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;06, 01, 00, 10, 00, 00, c1, 7f, 00, 00, 75, 1d, c3, e5, c0,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This was not the result I expected.&amp;nbsp;When you get the CRC error, do you send&amp;nbsp;&lt;span&gt;NRF_DFU_OP_OBJECT_CREATE() followed by&amp;nbsp;NRF_DFU_OBJECT_OP_SELECT()? Another option may be to simply resend the init packet command, this should let you restart DFU the upload.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CRC problem in my customize DFU Controller (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/182437?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 15:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d3d459a-581d-420d-9b7b-9fc30b7a2402</guid><dc:creator>nta_xyz</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did this but unfortunately, it is not working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when I get CRC error, I execute&amp;nbsp;&lt;span&gt;NRF_DFU_OP_OBJECT_CREATE() function but it is still not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the problem is that after I get CRC error I call NRF_DFU_OBJECT_OP_SELECT and for example it returns this array:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;06, 01, 00, 10, 00, 00, c1, 7f, 00, 00, 75, 1d, c3, e5, c0,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but it should be:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;06, 01, 00, 10, 00, 00, 00, 70, 00, 00, 47, 91, 6c, b0, c0,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the CRC of the 0x00007fC1 is not correct but for 0x00007000 is correct.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when I reset the target manually it is working and&amp;nbsp;I get the second array which is the correct answer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CRC problem in my customize DFU Controller (nrfutil)</title><link>https://devzone.nordicsemi.com/thread/182378?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 12:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62849fce-4cc5-4fec-820e-e3df5ac8a50c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be sufficient to issue a new NRF_DFU_OP_OBJECT_CREATE() request. According to the documentation, this will reset the progress since the last Execute command.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>