<?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>Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115591/changes-in-mbr-params-cause-programs-to-fail-to-start</link><description>I have a program that to fail to start. I read the flash content use jflash, found that the only difference between the program that can run normally is the value on MBR_parameter_addr. I Want to know the data struct of MBR_parameter?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Oct 2024 11:00:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115591/changes-in-mbr-params-cause-programs-to-fail-to-start" /><item><title>RE: Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/thread/506691?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 11:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1dfa64b-99f2-4e54-9c2c-d64498233d0d</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="24929" url="~/f/nordic-q-a/115591/changes-in-mbr-params-cause-programs-to-fail-to-start/506688"]but the content at 0x7e000 and 0x7f000 is different on failing device.[/quote]
&lt;p&gt;The settings pages is also invalid. I suggest you compare the whole memory between the failing and working device to see what else is different. You can do&amp;nbsp;this with nrfjprog.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# read out memory of working device
$ nrfjprog --memrd 0x0 --n 0x80000 &amp;gt; good_device.txt
# Same for failing device
$&amp;#160;nrfjprog --memrd 0x0 --n 0x80000 &amp;gt; bad_device.txt
# Compare the differences using &amp;#39;diff&amp;#39; or a similar tool
$ diff -u&amp;#160;good_device.txt&amp;#160;bad_device.txt&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/thread/506688?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 10:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dae700a-5a7d-45d5-8485-e5b3b85f6e23</guid><dc:creator>xu</dc:creator><description>&lt;p&gt;the content at 0x7e000 and 0x7f000 is same on working device.&lt;/p&gt;
&lt;p&gt;but the content at 0x7e000 and 0x7f000 is different on failing device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729162440598v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/thread/506678?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 10:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d2aa5d-2de1-4fe1-827e-a7e414849126</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;But is the content at&amp;nbsp;&lt;span&gt;0x7f000 identical&amp;nbsp;on both the failing and working device?&lt;/span&gt;&lt;/p&gt;
[quote user="hpudream"]I want to know what operations will change the contents on 0x7e000? and what do these data on 0x7e000&amp;nbsp; mean?&amp;nbsp;[/quote]
&lt;p&gt;The bootloader settings struct is used by the bootloader during DFU for state keeping and for storing information such as version numbers.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/structnrf_dfu_settings_t.html"&gt;nrf_dfu_settings_t Struct Reference&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/thread/506665?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 09:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65ca23db-f4ee-4fed-8e72-cf2961b92d24</guid><dc:creator>xu</dc:creator><description>&lt;p&gt;thanks，&lt;/p&gt;
&lt;p&gt;The contents on 0x7e000 and 0x7f000 are different. I want to know what operations will change the contents on 0x7e000? and what do these data on 0x7e000&amp;nbsp; mean?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes in MBR params cause programs to fail to start</title><link>https://devzone.nordicsemi.com/thread/506623?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 07:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381bc84d-f0b0-4a74-9547-e2a7a8177ca1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The flash page at 0x7E000 is also used as a backup for the nrf_dfu_settings_t struct located at 0x7F000. Therefore, the content at the beginning of the MBR parameter page should normally mirror the content of the bootloader settings page. Is that not the case on the failing device?&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>