<?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>Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35108/default-contents-in-flash-of-nrf52840</link><description>Hi all, 
 What are the default preflashed contents in the out of box nrf52840 flash? 
 I assume that bootloader is not present. If my assumption is correct how preflashed blinky application is executed? 
 Please answer. Thanks a lot. 
 Thanks, 
 Srid</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jun 2018 18:57:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35108/default-contents-in-flash-of-nrf52840" /><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/135251?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 18:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee70e99-9ee8-46f6-8eab-73f7d4dc2428</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;All Cortex-M series maps as follow&lt;/p&gt;
&lt;p&gt;Addr 0: contains the address of the top of the stack. SP will be loaded with this value on reset&lt;/p&gt;
&lt;p&gt;Addr 4: contains the address of the reset function. PC will be loaded with this value on reset, then reset function will be executed.&lt;/p&gt;
&lt;p&gt;Starting at address 8 is the interrupt vector. &amp;nbsp;See this&amp;nbsp;&lt;a href="https://github.com/I-SYST/EHAL/blob/master/ARM/Nordic/nRF52/src/Vectors_nRF52.c"&gt;startup vector table source code&lt;/a&gt;&amp;nbsp;and the &lt;a href="https://github.com/I-SYST/EHAL/blob/master/ARM/src/ResetEntry.c"&gt;reset function&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When using softdevice. &amp;nbsp;softdevice will be the main application and your firmware is a kind of plugin so after softdevice is initialized, it will jump to your app. &amp;nbsp;Which means your firmware must be located at a certain location depending on the version of softdevice used.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If softdevice is not used, your firmware is the main app.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope this clears up the confusion&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/135249?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 18:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8973e7e4-e1b4-4293-b3c6-98ffa79e7476</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Huh?&amp;nbsp; I really don&amp;#39;t understand your question.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t have to tell the SD anything.&amp;nbsp; The SD is provided as a precompiled hex file.&amp;nbsp; It already knows where your application is supposed to be.&amp;nbsp; You only have to tell it via the API if you move&amp;nbsp; your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134824?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 05:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366587b7-d464-4c10-82ae-3fee52fd6c71</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;As of my understanding&amp;nbsp;whatever snippet you have given sd_softdevice_vector_table_base_set(APP_START_ADDR), first that should be programmed at precoded address and after that to this APP_START_ADDR targeted application&amp;nbsp;&lt;span&gt;softdevice will jump. This is what called as application switching using softdevice or bootloader is called right.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So two applications need to be programmed at two different locations.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134799?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 18:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01faf307-0d3b-40da-9564-87609b502ec0</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;All SD&amp;#39;s are precoded for a particular start address.&amp;nbsp; The correct rom application address is in the release notes for each version of SD.&amp;nbsp; Not all SD&amp;#39;s have the same application starting address as feature creep forces the SD to occupy more space with subsequent versions.&lt;/p&gt;
&lt;p&gt;You have to compile your application with the correct rom start address that corresponds to your SD version.&lt;/p&gt;
&lt;p&gt;If you want to change the application start address in an SD this link discusses how to do that:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/17317/s132-and-custom-application-start-address"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/17317/s132-and-custom-application-start-address&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134796?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 17:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45570e9a-577e-4082-8cc1-bdca879b3398</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;How MBR/SD knows the application start address in rom? Suppose I generate hex file with X address, how MBR knows code execute from X address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134790?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 16:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a15c3bd-6d11-4ca4-a663-eac266a46b10</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Virtually all microprocessors start with the program counter at 0x0 as does nRF.&lt;/p&gt;
&lt;p&gt;There are two version of blinky one for BLE (ie, with softdevice) and one for no softdevice (kind of the traditional blinky where it makes a led flash).&lt;/p&gt;
&lt;p&gt;The one without the SD has a rom start of 0x0 so it boots from a cold start. Just look in the project settings.&lt;/p&gt;
&lt;p&gt;The BLE version will have a rom start corresponding to the application rom settings for the corresponding SD version.&amp;nbsp; When an MBR/SD is loaded the MBR/SD takes care of the the redirect from cold start to allow your application to run.&lt;/p&gt;
&lt;p&gt;The correct rom addresses sit alongside the opcodes in the hex file after compilation. Thus the program goes into the starting address specified in the project settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134780?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 14:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61498e97-f47c-4813-8279-d1cd8cc612ec</guid><dc:creator>Sridhar Jonnavittula</dc:creator><description>&lt;p&gt;If flash comes only with application from 0x00000000 address then how it is executed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default contents in flash of nrf52840</title><link>https://devzone.nordicsemi.com/thread/134779?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 14:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a9facc8-2b75-46f9-9b50-258ee418246a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The chip itself is normally shipped blank. &amp;nbsp;The devKit or module manufacturer may or may not pre-flash their own firmware. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>