<?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 OTA 52832 error (SELECT command) - works only when running debug version and RTT channel open</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63903/dfu-ota-52832-error-select-command---works-only-when-running-debug-version-and-rtt-channel-open</link><description>I port the DFU OTA bootloader from 52840 to 52832. It is using: 
 
 SDK v15.3.0 
 SoftDevice S132 v6.1.1 
 nrfUtil v5.0.0 to generate the zip package. 
 
 It is running on custom board. On PC side, I use nRFConnect for Desktop v3.4.1 with 52840 DK board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jul 2020 18:32:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63903/dfu-ota-52832-error-select-command---works-only-when-running-debug-version-and-rtt-channel-open" /><item><title>RE: DFU OTA 52832 error (SELECT command) - works only when running debug version and RTT channel open</title><link>https://devzone.nordicsemi.com/thread/261262?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 18:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f7d72ea-8975-408f-bd5c-8b1e6852449b</guid><dc:creator>Harry</dc:creator><description>&lt;p&gt;I agree with you, I am puzzled how come it works fine with debugger, or even running debug build with RTT channel open. Could it be the difference in hard fault handling mechanism caused that?&lt;/p&gt;
&lt;p&gt;Btw, I found the article:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42716/mbr-settings-dfu-settings-backup" rel="noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42716/mbr-settings-dfu-settings-backup&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It says &amp;quot;Since the params page is only used in the final step of a bootloader update it is ok to also use it as a backup page.&amp;quot;&lt;/p&gt;
&lt;p&gt;My confusion is how to use MBR Param slot as the backup of Bootloader settings as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA 52832 error (SELECT command) - works only when running debug version and RTT channel open</title><link>https://devzone.nordicsemi.com/thread/261166?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 10:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ddce98c-5c04-4e2e-b28b-e3f6269cd947</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m glad that you found the issue.&amp;nbsp;&lt;br /&gt;My understanding is that the MBR check the MBR PARAM page on every booting. And if there is corrupted data at the page it may affect the booting. But I&amp;#39;m not sure why running from debugger can make a difference here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA 52832 error (SELECT command) - works only when running debug version and RTT channel open</title><link>https://devzone.nordicsemi.com/thread/261051?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa34394a-155b-42e9-90a3-969b28787ceb</guid><dc:creator>Harry</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Regarding the porting, it&amp;#39;s because I need to port the existing Bootloader (for nRF52840 product) to a different product, and this &amp;quot;new&amp;quot; product is running on nRF52832 (perhaps to different platform in the near future).&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right, I have some modification to the bootloader, not in the bootloader SDK itself, but there is a thin layer on top of it (HW initialization, etc) because it runs on custom board. I am not aware of any modification in the bootloader SDK library part, other than the start address and bootloader settings location.&lt;/p&gt;
&lt;p&gt;Ok, I will try to compare to ensure there is no &amp;quot;bizarre&amp;quot; change that I missed.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s just baffled me why would it runs fine when I opened the RTT channel, or when I run it from debugger. Do you think it stopped working due to hard-fault situation?&lt;/p&gt;
&lt;p&gt;UPDATE: I got it work. I found that I forgot to update the MBR PARAM address. It used 52840 address. Btw, I thought MBR Param is written only on Bootloader update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA 52832 error (SELECT command) - works only when running debug version and RTT channel open</title><link>https://devzone.nordicsemi.com/thread/260937?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 08:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53165d15-58a2-4083-ad3a-2012b0456fb3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Harry,&amp;nbsp;&lt;br /&gt;From the log I can see that the DFU target would have an assert and stopped working. It&amp;#39;s the reason why you&amp;nbsp;get connection timeout before the &amp;quot;Could not write SELECT command: Device disconnected.&amp;quot; log.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But I&amp;#39;m not sure why you need to port the code for nRF52840 to nRF52832 ? Wouldn&amp;#39;t it work if you just use the bootloader made for nRF52832 that we provided ? Or you have any modification to the bootloader ? Even in that case I would suggest you to start with the bootloader we provided for nRF52832 and then add your modification in.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>