<?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>Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70373/firmware-not-starting-after-dfu</link><description>Hello, I have the following question. I&amp;#39;m trying to program my firmware via DFU Bootloader and nRF Connect (smartphone). That works perfectly with the test board SparkFun nRF52832 Breakout. But if I do the same with my own hardware, the firmware won&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jan 2021 13:19:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70373/firmware-not-starting-after-dfu" /><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/289431?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 13:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4267ef6d-c26c-43cc-9196-eb1cc81dfe2d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So the main difference between the QFAA and QFAB is that:&lt;/p&gt;
&lt;p&gt;the QFAA has 512kB of flash and 64kB of RAM, while &lt;br /&gt;the QFAB has 256kB of flash and 32kB of RAM.&lt;/p&gt;
&lt;p&gt;Some of the QFAB chips actually has more than 256kB of flash, but the flash above the 256kB address is not tested during production, and therefore it is likely that it doesn&amp;#39;t work as intended (normally non functional flash blocks will be replaced). This is a bit tricky in SES, but you are on the track of it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Settings in SES:&lt;/p&gt;
&lt;p&gt;These are for the QFAA:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x10000
FLASH_START=0x78000
FLASH_SIZE=0x6000
RAM_START=0x20005968
RAM_SIZE=0xa698&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to run it on the QFAB, you need to change it to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_PH_START=0x0
FLASH_PH_SIZE=0x40000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x8000
FLASH_START=0x38000
FLASH_SIZE=0x6000
RAM_START=0x20005968
RAM_SIZE=0x2698&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To match the QFAB&amp;#39;s flash and RAM.&lt;/p&gt;
&lt;p&gt;In addition, you should change the QFAA&amp;#39;s:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH RX 0x0 0x80000;RAM1 RWX 0x20000000 0x10000;mbr_params_page RX 0x0007E000 0x1000;bootloader_settings_page RX 0x0007F000 0x1000;uicr_bootloader_start_address RX 0x10001014 0x4;uicr_mbr_params_page RX 0x10001018 0x4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH RX 0x0 0x40000;RAM1 RWX 0x20000000 0x8000;mbr_params_page RX 0x0003E000 0x1000;bootloader_settings_page RX 0x0003F000 0x1000;uicr_bootloader_start_address RX 0x10001014 0x4;uicr_mbr_params_page RX 0x10001018 0x4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You should also look into your preprocessor definitions:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610716672699v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You should change it to NRF52832_XXAB, but before you do, search up this definition in your projects (bootloader and application) and make sure that the equivalent of NRF52832_XXAA is implemented for NRF52832_XXAB. If it is not, please implement it. (I don&amp;#39;t think all the implementations are included in the latest SDKs).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Remember to set &amp;quot;Common&amp;quot; in the drop down menu before you change your settings in Segger Embedded Studio, as seen below the top red arrow in the above screenshot.&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><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/289338?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 07:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d34e1d6-b1c3-4a2c-b88e-1f81900d2fb6</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/289215#289215"]Did it not throw any errors when you programmed the bootloader?[/quote]
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;No, there were no &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;errors&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/289215#289215"]&lt;p&gt; If not, what happens if you try to read out e.g. the flash address:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --memrd 0x00078000 --n 1024&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;QFAA and QFAB memories are absolutely the same:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin&amp;gt;nrfjprog --memrd 0x00078000 --n 1024
0x00078000: 20010000 0007835D 00078345 00078347   |... ]...E...G...|
0x00078010: 00078349 0007834B 0007834D 00000000   |I...K...M.......|
0x00078020: 00000000 00000000 00000000 0007D0C1   |................|
0x00078030: 00078351 00000000 00078353 00078355   |Q.......S...U...|
0x00078040: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x00078050: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x00078060: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x00078070: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x00078080: 0007B3AD 00078357 00078357 00078357   |....W...W...W...|
0x00078090: 00078357 00078357 0007D2C9 00078357   |W...W.......W...|
0x000780A0: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x000780B0: 00078357 00078357 00000000 00000000   |W...W...........|
0x000780C0: 00078357 00078357 00078357 00078357   |W...W...W...W...|
0x000780D0: 0007B061 00078357 00078357 00000000   |a...W...W.......|
0x000780E0: 00000000 00000000 00000000 00000000   |................|
0x000780F0: 00000000 00000000 00000000 00000000   |................|
0x00078100: 00000000 00000000 00000000 00000000   |................|
0x00078110: 00000000 00000000 00000000 00000000   |................|
0x00078120: 00000000 00000000 00000000 00000000   |................|
0x00078130: 00000000 00000000 00000000 00000000   |................|
0x00078140: 00000000 00000000 00000000 00000000   |................|
0x00078150: 00000000 00000000 00000000 00000000   |................|
0x00078160: 00000000 00000000 00000000 00000000   |................|
0x00078170: 00000000 00000000 00000000 00000000   |................|
0x00078180: 00000000 00000000 00000000 00000000   |................|
0x00078190: 00000000 00000000 00000000 00000000   |................|
0x000781A0: 00000000 00000000 00000000 00000000   |................|
0x000781B0: 00000000 00000000 00000000 00000000   |................|
0x000781C0: 00000000 00000000 00000000 00000000   |................|
0x000781D0: 00000000 00000000 00000000 00000000   |................|
0x000781E0: 00000000 00000000 00000000 00000000   |................|
0x000781F0: 00000000 00000000 00000000 00000000   |................|
0x00078200: 48324931 D0021A0A 43912207 4930468D   |1I2H.....&amp;quot;.C.F0I|
0x00078210: 1A0A4830 2207D006 F3814391 22028809   |0H.....&amp;quot;.C.....&amp;quot;|
0x00078220: 8814F382 492D482C F0004A2D 482DF83C   |....,H-I-J..&amp;lt;.-H|
0x00078230: 4A2E492D F837F000 492E482D F0004A2E   |-I.J..7.-H.I.J..|
0x00078240: 482EF832 4A2F492E F82DF000 492F482E   |2..H.I/J..-..H/I|
0x00078250: F0004A2F 482FF828 4A30492F F823F000   |/J..(./H/I0J..#.|
0x00078260: 4930482F F0004A30 4830F81E 22004930   |/H0I0J....0H0I.&amp;quot;|
0x00078270: F824F000 4930482F F0002200 4A2FF81F   |..$./H0I.&amp;quot;..../J|
0x00078280: 481F4790 4288491F 6802D005 B4033004   |.G.H.I.B...h.0..|
0x00078290: BC034790 2000E7F7 46EC4686 21002000   |.G..... .F.F. .!|
0x000782A0: 47904A27 4288E7FE 1A52D007 7803D005   |&amp;#39;J.G...B..R....x|
0x000782B0: 700B3001 3A013101 4770D1F9 D0024288   |.0.p.1.:..pG.B..|
0x000782C0: 30017002 4770E7FA 20010000 2000F800   |.p.0..pG... ... |
0x000782D0: 20010000 20010000 0007DB40 2000597C   |... ... @...|Y. |
0x000782E0: 200059B4 000783B8 000783B8 0007D5FE   |.Y. ............|
0x000782F0: 0007DB40 2000597C 2000597C 0007D66C   |@...|Y. |Y. l...|
0x00078300: 0007D66C 0007D66C 0007D66C 0007D66C   |l...l...l...l...|
0x00078310: 0007D66C 0007D66C 0007D66C 0007DB40   |l...l...l...@...|
0x00078320: 0007DB78 200059B4 200059B4 200059B4   |x....Y. .Y. .Y. |
0x00078330: 20007F64 20007F64 20007F64 00078385   |d.. d.. d.. ....|
0x00078340: 00079C71 E7FEE7FE E7FEE7FE E7FEE7FE   |q...............|
0x00078350: E7FEE7FE E7FEE7FE B802F000 BFFCF7FF   |................|
0x00078360: F04F480F 43880107 480E4685 480E4780   |.HO....C.F.H.G.H|
0x00078370: F4416801 60010170 8F4FF3BF 8F6FF3BF   |.hA.p..`..O...o.|
0x00078380: BF3EF7FF 490A4809 42884A0A 1A52D007   |..&amp;gt;..H.I.J.B..R.|
0x00078390: 7803D005 700B3001 3A013101 4770D1F9   |...x.0.p.1.:..pG|
0x000783A0: 20010000 0007B489 E000ED88 0007D658   |... ........X...|
0x000783B0: 20005968 2000597C B5301C4B 460400DB   |hY. |Y. K.0....F|
0x000783C0: 0003F012 D10DB29B 602A4D07 4B07441A   |.........M*`.D.K|
0x000783D0: 4B07601A 4B077018 4B077018 4B07801C   |.`.K.p.K.p.K...K|
0x000783E0: BD308019 E7FC2007 200059BC 200059B8   |..0.. ...Y. .Y. |
0x000783F0: 200059B4 200059C4 200059C0 200059C2   |.Y. .Y. .Y. .Y. |
&lt;/pre&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/289215#289215"]What is the bootloader&amp;#39;s flash start address?[/quote]
&lt;p&gt;In QFAA 0x00078000. How can I determine that in QFAB?&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/289215#289215"]Basically what you need to do is to change the flash addresses.[/quote]
&lt;p&gt;In SES I have &amp;quot;flash_placement.xml&amp;quot; and settings in Project -&amp;gt; Options -&amp;gt; Linker -&amp;gt; Memory Segments and Section Placement Macros. Do I have to adjust both? Can you tell me which parameters do I need to change?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Memory Segments

FLASH RX 0x0 0x80000;RAM RWX 0x20000000 0x10000;mbr_params_page RX 0x0007E000 0x1000;bootloader_settings_page RX 0x0007F000 0x1000;uicr_bootloader_start_address RX 0x10001014 0x4;uicr_mbr_params_page RX 0x10001018 0x4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Section Placement Macros

FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x10000
FLASH_START=0x78000
FLASH_SIZE=0x6000
RAM_START=0x20005968
RAM_SIZE=0xa698&lt;/pre&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/289215#289215"]Depening on what IDE you are using, it is probably possible to change the compiler to set the QFAB instead of QFAA as the target.[/quote]
&lt;p&gt;Unfortunately I did not find this in SES.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/289215?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1b7c4f-bcf5-4bf9-882d-54524af18ecd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;Did it not throw any errors when you programmed the bootloader? If not, what happens if you try to read out e.g. the flash address:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --memrd 0x00078000 --n 1024&amp;quot;&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;What is the bootloader&amp;#39;s flash start address?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Basically what you need to do is to change the flash addresses. If your application uses FDS (Used if you use the peer manager or any other parts that uses FDS), then make sure that it fetches the correct address.&lt;/p&gt;
&lt;p&gt;Depening on what IDE you are using, it is probably possible to change the compiler to set the QFAB instead of QFAA as the target.&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><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/289090?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 08:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a7659a-1587-436b-9481-4543fb1e07c7</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;I believe i have found possible cause. The SparkFun hardware has nRF52832-QFAA 64kB. In my own hardware I have nRF52832-QFAB 32kB. I only now understood that I ordered the wrong nRF. I have read out memories from both nRFs with nRF Connect (please see screenshot). With nRF AB (32 kB) bootloader is not displayed, why? Although DFU works and the screenshots are already with the app that I flashed via DFU (please see address 0x00026000 - 0x0002C52B). App is only 25,900 bytes and should also work with nRF AB. The app does not start with nRF52832-QFAB 32kB. What do I have to adjust in order to start the app with nRF AB (32 kB)?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ibb.co/5KLHCNY"&gt;https://ibb.co/5KLHCNY&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ibb.co/Z2jh8BZ"&gt;https://ibb.co/Z2jh8BZ&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288981?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 15:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aded51e-c7b5-46b2-8c0e-3ef06251b025</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/288965#288965"]On the SparkFun hardware, did you program the bootloader yourself, or was it pre-programmed?[/quote]
&lt;p&gt;I programmed both hardware (SparkFun and my own hardware) with SES. First Target -&amp;gt; Erase All and then Target -&amp;gt; Download secure_bootloader_ble_s132_pca10040.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/288965#288965"]How did you program the bootloader and application on your custom hardware? Did you generate and program the bootloader settings?[/quote]
&lt;p&gt;&lt;span&gt;I did not generate&lt;/span&gt; bootloader settings. &lt;span&gt;Probably here is my mistake?&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/288965#288965"] If you compiled the bootloader yourself, did you do any changes to the bootloader project? If so, which ones?[/quote]
&lt;p&gt;&lt;span&gt;I only removed LED functions (bsp_board_led_on(BSP_BOARD_LED_0)&amp;hellip;) and #include &amp;quot;boards.h&amp;quot; from example nRF5_SDK_17.0.0_9d13099 \ examples \ dfu \ secure_bootloader \ pca10040_s132_ble.&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70373/firmware-not-starting-after-dfu/288965#288965"]Do you see the bootloader advertisements? have you tried to update the firmware via DFU? If so, how did you generate the DFU image?[/quote]
&lt;p&gt;&lt;span&gt;Yes, I see DFU advertisements in nRF Connect Android app. I can also flash FW. I generated the FW image with nrfutill. The image is successfully flashed via Android app and works with SparkFun hardware. The image is flashed in the same way with own hardware but does not start.&lt;/span&gt; The RTT log says that app is invalid: &lt;span&gt;&amp;lt;debug&amp;gt; app: DFU mode because app is not valid&lt;/span&gt;. &lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;Maybe it is missing&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; bootloader settings in &lt;span&gt;own hardware&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288965?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 14:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145bdef5-93e6-44b1-b0f8-12a82fd3b1eb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;On the SparkFun hardware, did you program the bootloader yourself, or was it pre-programmed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How did you program the bootloader and application on your custom hardware? Did you generate and program the bootloader settings? If you compiled the bootloader yourself, did you do any changes to the bootloader project? If so, which ones?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you see the bootloader advertisements? have you tried to update the firmware via DFU? If so, how did you generate the DFU image?&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><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288832?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 08:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba0b2654-6ff2-4340-b918-1c087096724c</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;So the log above says that app is invalid:&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt; &lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="font-family:courier new, courier;"&gt;&amp;lt;debug&amp;gt; app: DFU mode because app is not valid&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;What can be the error when app works without DFU.&lt;/span&gt;&lt;/span&gt; &lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;And with other SparkFun hardware, the app also works with DFU?&amp;nbsp;What else can I look for?&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288713?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe155fb-05e5-4730-b5ca-f38132ff0800</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;Sorry Edvin,&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;This is the last part of log when I use DFU with debug function:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;.......

00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0002C000, len=1 pages), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Creating object with size: 1324. Offset: 0x00006000, CRC: 0x12CFD00B
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0002C000, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 244 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C000, src=0x200082AC, len=244 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C000, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 244 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C0F4, src=0x200082AC, len=244 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C0F4, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 244 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C1E8, src=0x200082AC, len=244 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C1E8, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 244 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C2DC, src=0x200082AC, len=244 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C2DC, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 244 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C3D0, src=0x200082AC, len=244 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C3D0, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Buffer 0x200082AC acquired, len 104 (244)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0002C4C4, src=0x200082AC, len=104 bytes), queue usage: 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0002C4C4, pending 1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Freeing buffer 0x200082AC
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_CRC_GET (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Offset:25900, CRC:0x2A9E2C99
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_EXECUTE (data)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Whole firmware image received. Postvalidating.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_validation: Hash verification. start address: 0x26000, size: 0x652C
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_validation: Invalidating old application in bank 0.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 1&amp;lt;info&amp;gt; app: Inside main
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.
00&amp;gt; 
00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate
00&amp;gt; 
00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.
00&amp;gt; 
00&amp;gt; &amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: DFU mode because app is not valid.
00&amp;gt; 
00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: timer_stop (0x20005984)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: timer_activate (0x20005984)
00&amp;gt; 
00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: Initializing transports (found: 1)
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x00071000
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Configuring BLE stack.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling the BLE stack.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: No advertising name found
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Using default advertising name
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: BLE DFU transport initialized.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_sd backend.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; app: Enter main loop
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Connected
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 6
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 6
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 500
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Received BLE_GAP_EVT_CONN_PARAM_UPDATE
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: max_conn_interval: 12
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: min_conn_interval: 12
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: slave_latency: 0
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: conn_sup_timeout: 600
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.
00&amp;gt; 
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288696?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 14:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34017d80-a11a-4826-a121-365a0e1536d1</guid><dc:creator>koldybin</dc:creator><description>&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thank you for your prompt reply.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I use nRF5_SDK_17.0.0_9d13099 \ examples \ dfu \ secure_bootloader \ pca10040_s132_ble as the bootloader.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I&amp;#39;ve only commented out the functions for LEDs and #include &amp;quot;boards.h&amp;quot; from the example.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;RTT log shows nothing during update:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;pre class="ui-code" data-mode="text"&gt;LOG: J-Link RTT Viewer V6.92: Logging started.
LOG: Connecting to J-Link via USB...
LOG: Device &amp;quot;NRF52832_XXAA&amp;quot; selected.
LOG: InitTarget() start
LOG: InitTarget() end
LOG: Found SW-DP with ID 0x2BA01477
LOG: DPv0 detected
LOG: Scanning AP map to find all available APs
LOG: AP[2]: Stopped AP scan as end of AP map has been reached
LOG: AP[0]: AHB-AP (IDR: 0x24770011)
LOG: AP[1]: JTAG-AP (IDR: 0x02880000)
LOG: Iterating through AP map to find AHB-AP to use
LOG: AP[0]: Core found
LOG: AP[0]: AHB-AP ROM base: 0xE00FF000
LOG: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
LOG: Found Cortex-M4 r0p1, Little endian.
LOG: FPUnit: 6 code (BP) slots and 2 literal slots
LOG: CoreSight components:
LOG: ROMTbl[0] @ E00FF000
LOG: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
LOG: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
LOG: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
LOG: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
LOG: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
LOG: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
LOG: RTT Viewer connected.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt; &lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;What should I activate in order for the RTT log to say something?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware not starting after DFU</title><link>https://devzone.nordicsemi.com/thread/288664?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 13:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:611e0f5f-31c4-4d8d-b5f6-6e97295014e8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what sort of bootloader you are using, but please check out the equvialent _debug project, such as:&lt;/p&gt;
&lt;p&gt;SDK\examples\dfu\secure_bootloader\pca10040_uart_debug&lt;/p&gt;
&lt;p&gt;And monitor the RTT log. What does it say? When the DFU is finished, but it restarts in DFU mode, does the RTT log say anything about why the DFU mode was re-entered?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What changes did you do to the bootloader project? Have you tested a bootloader from an unmodified SDK?&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>