<?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>Simple Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25166/simple-bootloader</link><description>Hi, 
 SDK14.0
nRF52832 
 I am using the dfu\bootloader_secure_ble example as my starting point. My goal is to create a very simple bootloader (with none of the dfu stuff, no SD functionality). Just a simple bootloader that the MBR jumps to when the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Sep 2017 20:57:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25166/simple-bootloader" /><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99148?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 20:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a22ff9-e763-47bd-b800-bee9949e74ba</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Hi Martin, I just wanted no dependence on SD in my bootloader since I want  it to provide basic functionality. Thank you for your answers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99150?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 07:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6c1460-65c0-4695-bd8e-15f43c93d91a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;It should work. Can you elaborate a bit around your motivation for doing all this?&lt;/p&gt;
&lt;p&gt;The MBR might work alone, but is not tested by itself. So proceed at your own discretion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99145?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 16:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc7dcc89-0d2b-468e-850a-747abb3da287</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Hi Martin.  My application works as I wanted. I will let you know that separating the MBR and using it as a standalone does work! I flash the MBR, then the BL and the BL runs correctly. I, then install SD only (no MBR) and then my app. My BL inits the SD, sets the vector table to app and then jumps to the app! Everything works! But I was just curious about those two functions. Whether they have any dependence on the SD?&lt;/p&gt;
&lt;p&gt;Also, can I start the application from my BL and use these two functions at the start of my application instead of the BL to correctly set the SD vector table address? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99149?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 07:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20f8ec9f-cc61-4e55-bcab-993597f7918e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, The MBR is not made to work as standalone. Anyway, if you look at the documentation of &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/group__sdk__nrf__dfu__mbr.html#ga1d8cedfd2042033be841587c5cc3a8f9"&gt;nrf_dfu_mbr_init_sd&lt;/a&gt;() and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_d_m___f_u_n_c_t_i_o_n_s.html#ga46d2ce943076d65947ea8919198be106"&gt;sd_softdevice_vector_table_base_set&lt;/a&gt;(start_addr) you&amp;#39;ll see that they probably return NRF_SUCCESS regardless of whether a Softdevice i present. The first one might return NRF_ERROR_INVALID_PARAM, but that probably doesn&amp;#39;t depend on the presence of a SD.&lt;/p&gt;
&lt;p&gt;Have you tried to change your application&amp;#39;s linker script so that it starts at address 0x1000, where the SD would normally start?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99146?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 22:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5d0270-4985-4723-bfa0-ae90fd672c4d</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Hi Martin, I accidentally clicked on convert to answer.&lt;/p&gt;
&lt;p&gt;Anyway, here is what I am trying to do.&lt;/p&gt;
&lt;p&gt;I have seperated the SD into the MBR part and the SD part. I flash the MBR and then flash the Bootloader. At this point, there is no SD present on the device -just the bootloader and the MBR. The MBR jumps to the bootloader correctly and runs the bootloader. In the bootloader, I have calls to &lt;code&gt;nrf_dfu_mbr_init_sd();&lt;/code&gt; and &lt;code&gt;sd_softdevice_vector_table_base_set(start_addr);&lt;/code&gt;. I have these 2 calls, but no SD (just the MBR and Bootloader). Why is it that I don&amp;#39;t get an error when I make these 2 calls since the Softdevice is not actually present?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99144?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 06:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3647052b-2afe-4cdb-b66e-d42c71db0ed3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I might be misunderstanding your ideas, but there is a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/mbr_bootloader/mbr.html?cp=2_3_0_0_11_0"&gt;Master Boot Record&lt;/a&gt; implemented in the Softdevice that is intended to enable updates of both the bootloader and Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99142?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 20:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30655f88-1d84-4934-8f5c-467ad3dc96fb</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Thanks Martin. So let&amp;#39;s say I never want to modify my bootloader and I upgrade the Softdevice to a newer version, could it be possible that the new API of the Softdevice will fail to work with my bootloader code? I will only be initializing the SD in the bootloader and setting the base address in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99147?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 11:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c22b8bc-46d1-4920-85c1-369ef73bda3e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Unfortunately, if your main application uses a softdevice you will have to set the base address in the bootloader using SD calls. The bootloader can run independently of the softdevice though, until you want to start it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99151?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 18:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2774a9e3-5f46-4344-a79d-93d98ac35ace</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;The problem is that I am not not forwarding the SD vector table to the application in my bootloader and therefore when I try to use any SD calls in my main application, I get the error.&lt;/p&gt;
&lt;p&gt;If I initialize the SD using &lt;code&gt;nrf_dfu_mbr_init_sd();&lt;/code&gt; and then set the vector table address using &lt;code&gt;sd_softdevice_vector_table_base_set(start_addr);&lt;/code&gt; in my &lt;strong&gt;bootloader&lt;/strong&gt; everything works fine.&lt;/p&gt;
&lt;p&gt;I want my bootloader to be completely independent of SD or any SD calls. How do I forward the vector table to the app without using the SD calls?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99143?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 16:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db8dae28-4cc3-4812-ac97-2a06b07ea0a3</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Hi Martin, thanks for following up. I have attached a new image that shows where the error is. As I mentioned before, it is when we call nrf_sdh_enable_request().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99140?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 11:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c058a1bc-0a4b-43fe-b298-c4a98e185e14</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;What is going on around line 449 (hexadecimal 0x1C1) in your main.c file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99141?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 16:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddef4140-5548-4b59-a0d9-e89696ea12e7</guid><dc:creator>superpak</dc:creator><description>&lt;p&gt;Thanks for pointing that out, Martin. I have attached the error info. Please let me know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple Bootloader</title><link>https://devzone.nordicsemi.com/thread/99139?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 06:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa3f53c-7fc4-417a-a8ee-ca70fb71a30d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, If you &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;debug like this&lt;/a&gt;, you will probably find an error code that might give us a clue about what is wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>