<?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>nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59571/nrfutil-generate-incorrect-bootloader-settings-for-nrf52840</link><description>Hi, 
 
 I&amp;#39;m having an issue with using nrfutil to generate a bootloader settings image for loading onto an nRF52840 MCU. The resulting image appears to have the wrong starting address. 
 Please find below the steps I followed: 
 
 1. I&amp;#39;m using the latest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2020 15:22:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59571/nrfutil-generate-incorrect-bootloader-settings-for-nrf52840" /><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242501?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 15:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef591e0-d8cb-46b1-8d4e-569b1a505221</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;That&amp;#39;s a good idea, I&amp;#39;ll open a new case. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242466?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 14:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440516b5-7e7f-4d0b-b2af-5d2974ff8ec6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I think we should take it in a new case, because it may be helpful for other users as well. And it is certainly easier to find if it is related to the title of the case &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&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: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242433?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 13:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c77a60ab-60f2-41ab-b39a-97b81119881a</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the URL link - it was very informative.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I may have also solved my original issue concerning the hard fault (in my main application) - at least&amp;nbsp; I&amp;#39;m no longer seeing it for the time being.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have another unrelated question - do you mind if I ask it here or should I create another case? My new issue concern the usage of the RTC (Real Time Counter) peripheral.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242326?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f92a91a6-1e5d-45c7-a0fb-9de1c8b00a8e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The GPIOs are reset by a soft reset (sd_nvic_SystemReset). You can see the reset behavior for different peripherals based on different reset reasons in &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_5_7#concept_res_behav" rel="noopener noreferrer" target="_blank"&gt;this table&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242171?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 16:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f04e0c-926f-4a3a-9388-ff4f1639c6c4</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;The hardfault is happening in my main application (which uses SoftDevice S140 7.0.1) on my custom hardware. It was reported by my IAR debugger.&lt;/p&gt;
&lt;p&gt;Actually, I have tried the DFU bootloader a while ago and confirmed its correct operation on the dev kit.&lt;/p&gt;
&lt;p&gt;Perhaps you can help me with a slightly different question? If I called sd_nvic_SystemReset (e.g. to enter the secure bootloader from my main application, after setting the GPREGRET register with 0xB1), does it preserve the GPIO settings or will they get reset as well?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242155?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaca4aa3-33fd-4db9-b0bb-3f1ed3cea36d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Are you sure it is a hardfault?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you do any changes to the bootloader project? If so, can you try to unzip an unmodified version of the SDK, and check if it behaves the same. If so, try the ..._debug project for the bootloader (if you use pca10056_ble now, use pca10056_ble_debug instead) and monitor the RTT log output. What does it say?&lt;/p&gt;
&lt;p&gt;Perhaps the bootloader is working, but the application crashes before it has time to do anything sensible (that you can see in the log/LEDs)?&lt;/p&gt;
&lt;p&gt;If not, the bootloader log should reveal some information.&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: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242116?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 13:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e04738c-3d31-4e12-bcc1-e54504e42bf1</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I am having some issues with a hard fault when used in conjunction with the secure bootloader and the bootloader settings. Whilst debugging, I spotted the oddity with the bootloader settings.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think&amp;nbsp;that is the cause of the issue I am seeing but I just wanted to understand that the settings I have created is valid because the documentation is perhaps not 100% clear (or more likely I failed to read it properly).&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242097?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 13:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd338d0e-5c22-4850-b174-62f010b4e6df</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Chibi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know exactly what is written where (you would have to look at the implementation of &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil" rel="noopener noreferrer" target="_blank"&gt;nrfutil&lt;/a&gt; for that), but I get the same output as you when I use the settings display command, the &amp;quot;Bad access&amp;quot; message. It has been around for a while, but I don&amp;#39;t think it actually does any harm. You can check the nrfutil implementation for why it is printed. However, the settings file works just fine (also tested with the same version that you use).&lt;/p&gt;
&lt;p&gt;Do you experience any issues with the settings file? If so, can you please describe the symptoms? In my opinion, everything looks good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242081?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 11:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72a7ff9-7623-4402-bd57-4927bff0304b</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your reply but I am still a bit confused. I agree with your observation but that is not what I&amp;#39;m seeing (I think) from the generated bootloader settings image.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From what I can see in the bootloader settings hex image, the settings&amp;nbsp;is written to flash starting from address 0x000FE000 and ends at address 0x000FE320. There is an additional block which is written between address&amp;nbsp;&lt;span&gt;0x000FF000&amp;nbsp;and&amp;nbsp;0x000FF320.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is this the backup page&amp;nbsp;(&lt;span&gt;0x000FE000 -&amp;nbsp;0x000FE320&lt;/span&gt;) - the contents and size looks identical to the second block? As per your observation, this memory is reserved for the MBR parameter storage.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Chibi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil generate incorrect bootloader settings (for nRF52840)</title><link>https://devzone.nordicsemi.com/thread/242072?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 10:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb641f0-8f12-486f-a13f-05b68521462f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The bootloader settings doesn&amp;#39;t actually start before 0x000FF000, but the MBR parameters are stored from 0x000FE000, as it says in the memory range table that you have posted.&lt;/p&gt;
&lt;p&gt;So this is expected.&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>