<?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>Crash on accessing Flash after copying SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15545/crash-on-accessing-flash-after-copying-softdevice</link><description>I&amp;#39;m trying to update my SoftDevice with a bootloader, which is basically the same as the one in nRF5_SDK_11.0.0_89a8197. The image is saved in bank 0 and is validated by dfu_sd_image_validate where sd_mbr_command with SD_MBR_COMMAND_COMPARE is executed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2016 13:26:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15545/crash-on-accessing-flash-after-copying-softdevice" /><item><title>RE: Crash on accessing Flash after copying SoftDevice</title><link>https://devzone.nordicsemi.com/thread/59345?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 13:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea81d2f5-c440-4f69-b137-06121440a46b</guid><dc:creator>VanNuru</dc:creator><description>&lt;p&gt;As my bootloader was basically the same as one in the SDK, it was not completely. For instance,
I replaced &lt;code&gt;sd_image_start&lt;/code&gt; with the define &lt;code&gt;DFU_BANK_0_REGION_START&lt;/code&gt;, as this was always going to be its location, thus making the variable useless.&lt;/p&gt;
&lt;p&gt;The problem with that is, after copying the SoftDevice image into the SoftDevice region, somehow the &lt;code&gt;dfu_types.h&lt;/code&gt; defines like &lt;code&gt;DFU_BANK_0_REGION_START&lt;/code&gt; returned totally wrong values. Thus all functions originally using &lt;code&gt;sd_image_start&lt;/code&gt; got wrong parameters, which caused the crash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>