<?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>DFU  over UART: Response code Invalid Object (NRF528240)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41675/dfu-over-uart-response-code-invalid-object-nrf528240</link><description>Hello Everyone, 
 Struggling with evaluation of Secure DFU over UART lines. I used the sample project &amp;quot;Secure DFU Bootloader over Serial Link (UART/USB) &amp;quot;, during the previous verification phase of two-wire DFU mechanism. My goal is to implement perform</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Dec 2018 11:38:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41675/dfu-over-uart-response-code-invalid-object-nrf528240" /><item><title>RE: DFU  over UART: Response code Invalid Object (NRF528240)</title><link>https://devzone.nordicsemi.com/thread/162259?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 11:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a5ffe4a-01c4-451f-b169-c13ed5a1a5dd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From your numbered points, I don&amp;#39;t see what the problem is. Is there any problem here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding debugging:&lt;/p&gt;
&lt;p&gt;The issue here is that when you do a DFU using a bootloader, the bootloader will verify that the application is valid, and store this this information based on the application image in a bootloader settings page.&lt;/p&gt;
&lt;p&gt;The issue when you are debugging is that the IDE will upload a copy of the image. In theory this should work fine if you don&amp;#39;t change anything in the application that you just uploaded with DFU, but it turns out it is a problem after all. The issue is that the different compilers uses different padding for variables shorter than 32 bits. Some uses 0&amp;#39;s&amp;nbsp;and some uses 1&amp;#39;s. This changes the CRC of the application, and if the application is updated, it may corrupt the CRC check stored in the bootloader settings.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to debug your application while you use bootloaders, you should use the debug project folders for the bootloader: pca10056_uart_debug. This doesn&amp;#39;t check the CRC of the application, and debugging, which will update the application and corrupt the CRC will still work.&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>