<?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>Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72600/question-related-to-serial-dfu</link><description>Hi, 
 -I have a custom board using nrf 52832 and I have interfaced LIS2DH12 using an SPI interface. -I am using SDK 15.2.0. I didn&amp;#39;t use softdevice. -I have written a simple application in which I have collected raw data from LIS2DH12 whenever I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Mar 2021 08:44:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72600/question-related-to-serial-dfu" /><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299174?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 08:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:242e4cf1-5e08-4026-91dc-98368be7f117</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;span&gt;one thing I forgot to tell you that in my application I have used UICR address&amp;nbsp;0x10001080&amp;nbsp; to store the unique id of the device.&amp;nbsp; When I Commented UICR part of the code and repeat the procedure as above mentioned in the thread then I got 2 different sections of bootloader and application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; I want to use UICR in our application. Can you suggest an approach to solve this problem with UICR?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;span&gt;I didn&amp;#39;t use softdevice. so can you tell me whether the following function is correct or not?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;void set_dfu_mode()&lt;br /&gt;{&lt;br /&gt;nrf_drv_spi_uninit(&amp;amp;spi);&lt;br /&gt;NRF_POWER-&amp;gt;GPREGRET = 0xFF;&lt;br /&gt;NRF_POWER-&amp;gt;GPREGRET = 0xB1&lt;/p&gt;
&lt;p&gt;NVIC_SystemReset();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299172?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 08:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53252b0e-e702-4783-8924-11b09cf63260</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please use the Programmer app as I suggested earlier. Also, please confirm what version of mergehex you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299168?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 08:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1514eabf-5e48-4a30-9129-c4c46e78d399</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;&lt;span&gt;You need to program the MBR (located in \components\softdevice\mbr\nrf52832\hex) and also make sure that your application starts at address 0x1000 in flash, and 0x20000008 in RAM (same as the blinky mbr sample).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt;&amp;nbsp; I have changed start address as per the blinky mbr sample. I have used the following command and generate a combined hex. The generated flashed using the program bootloader option of nrfGo.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mergehex --merge C:\Data\nrf52832\nRF5_SDK_15.2.0_9412b96\nRF5_SDK_15.2.0_9412b96\components\softdevice\mbr\nrf52832\hex\mbr_nrf52_2.2.2_mbr.hex C:\pc-nrfutil-master\serial_bootloader.hex --output serial_mbr_bootloader.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; Then application hex is burned but I got the same result.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299035?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 14:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76407a3b-c333-45d9-b0aa-7a16d60ba825</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You need to program the MBR (located in \components\softdevice\mbr\nrf52832\hex) and also make sure that your application starts at address 0x1000 in flash, and 0x20000008 in RAM (same as the blinky mbr sample).&lt;/p&gt;
[quote userid="75720" url="~/f/nordic-q-a/72600/question-related-to-serial-dfu/299030#299030"]Also in the blinky example, there are two subfolders blank and MBR. What is the difference between this?[/quote]
&lt;p&gt;The mbr project is configured so that it does not overlap with the MBR. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299030?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 14:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66001e55-39b5-4147-a231-51e71609e1e0</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;&lt;span&gt;Could you try to program the merged hex with this program instead?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; I have tried using mergehex but the results are the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; I want to perform serial OTA without this softdevice. What is the correct procedure to perform serial OTA?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;=&amp;gt; In the dfu example secure_dfu_test_images folder, I have found that blinky_mbr.hex.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also in the blinky example, there are two subfolders blank and MBR. What is the difference between this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because whenever I am trying to generate bootloader setting hex using blank hex file then nrfutil gives the error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question related to  Serial DFU</title><link>https://devzone.nordicsemi.com/thread/299014?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 13:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03977f96-1a23-4637-a9de-0088694f0557</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The code you use to enter DFU mode looks to be correct, but I see you are using nRF GO studio for programming. This program has been deprecated and replaced by the Programmer app in &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF connect for desktop&lt;/a&gt;. Could you try to program the merged hex with this program instead? Also, we have a bug in the current mergehex program (v.10.12.x) that may corrupt the application image, so please make sure you are not using this version to merge the hex files (to check the version number, run mergehex --version)&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>