<?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>Mbr without softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9667/mbr-without-softdevice</link><description>Is it possible to use the mbr, currently inside the softdevice, without the softdevice? Can we use the combination MBR/Application/bootloader? So we have a lot more flash space available. We do not need Bluetooth.
If yes, how do we get this to work?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Mar 2018 12:50:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9667/mbr-without-softdevice" /><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/126403?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 12:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaf4755a-9d3d-485b-a7b8-e16bd2dd938b</guid><dc:creator>Riyad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;WDT is enabled on both bootloader and application.&amp;nbsp; It works for me now after adding the following to:&amp;nbsp;nrf_bootloader_app_start():&lt;/p&gt;
&lt;p&gt;#define MBR_IRQ_FORWARD_ADDRESS_ADDRESS (0x20000000)&lt;/p&gt;
&lt;p&gt;// Manually set the forward address if this MBR doesn&amp;#39;t have the command.&lt;br /&gt; *(uint32_t *)(MBR_IRQ_FORWARD_ADDRESS_ADDRESS) = start_addr;&lt;/p&gt;
&lt;p&gt;Thank you for the prompt reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/126402?ContentTypeID=1</link><pubDate>Thu, 29 Mar 2018 12:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed7b3356-5398-4b5c-81b4-0efbf52a9af2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Riyad,&lt;/p&gt;
&lt;p&gt;This is confusing when you say that your application works when it is copied to 0x0000000 but does not work when it is moved to 0x1000. This means that the bootloader is initializing and starting the watchdog? Not sure at what point WDT is enabled in your application or bootloader, but if you do not need watchdog, then please&amp;nbsp;do not enable&amp;nbsp;it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/126351?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 17:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f79787c5-ae24-4bab-91a1-d83eea71f6d0</guid><dc:creator>Riyad</dc:creator><description>&lt;p&gt;Hi Aryan,&lt;/p&gt;
&lt;p&gt;I have an existing DFU working with softdevice and now wanted to remove softdevice dependency from DFU due to space (application size growing).&amp;nbsp; I did this by extracting MBR from existing softdeivce hex file.&amp;nbsp; I flashed it in along with DFU.&amp;nbsp; Changed my application now to go on top of the old device area (0x1000). Everything checks out from DFU stand point. It flashes and bootloader run.&amp;nbsp; &amp;nbsp;I validated flash and looks like application copied.&amp;nbsp; In fact it even runs but, I am getting watchdog reset.&amp;nbsp; Same application when flashed into 0x00000000 works fine.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Running nRF_SDK_12.1.0.&amp;nbsp; Yes old but too much code to port for newer SDK.&lt;/p&gt;
&lt;p&gt;Any hints or help as to why it isn&amp;#39;t working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/126350?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 17:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa9b563-2978-4931-88dd-052afdffe98f</guid><dc:creator>Riyad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have an existing DFU working with softdevice and now wanted to remove softdevice dependency from DFU due to space (application size growing).&amp;nbsp; I did this by extracting MBR from existing softdeivce hex file.&amp;nbsp; I flashed it in along with DFU.&amp;nbsp; Changed my application now to go on top of the old device area (0x1000). Everything checks out from DFU stand point. It flashes and bootloader run.&amp;nbsp; &amp;nbsp;I validated flash and looks like application copied.&amp;nbsp; In fact it even runs but, I am getting watchdog reset.&amp;nbsp; Same application when flashed into 0x00000000 works fine.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Running nRF_SDK_12.1.0.&amp;nbsp; Yes old but too much code to port for newer SDK.&lt;/p&gt;
&lt;p&gt;Any hints or help as to why it isn&amp;#39;t working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35739?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 09:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cefa675c-3381-438f-badb-07199b9b788f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I back this request but even if this won&amp;#39;t happen I know people who are using Nordic&amp;#39;s MBR with their proprietary bootloading solution to reflash both SD and App so it shouldn&amp;#39;t be that hard...;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35738?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 00:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0f2ed82-669c-414b-8e9d-87c7c27ccdb9</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;Personally I think it would be very useful if Nordic released the source code for the MBR, specially for the nrf52.&lt;/p&gt;
&lt;p&gt;One night I was bored/annoyed and I messed around with disassembling it, but my IDA Pro skillz where lacking (it is a scary cool tool, but it has quite a learning curve).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35731?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 14:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95960454-9ce2-4e61-b201-28aef11f783f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Thanks Aryan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35737?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 08:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a443dea5-76eb-4a4e-9ac0-c0f83ead12d4</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;great! Thanks for confirming it is possible.
I will look into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35736?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 07:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d7f316-37c0-43cb-86e7-05266f432938</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i am editing my answer ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35735?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 21:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76764643-492f-46cf-8b5c-2464c0428a8a</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;interrupt forwarding is still needed for the bootloader / application to work.
We are building a device that uses a proprietary protocol and we want to let the user upgrade the application via a serial connection. No Bluetooth involved in this.
My thought was, because you already build a mbr and bootloader, maybe I could just use that part and save some flash space. Now we need to install a complete softdevice for this to work, or we need to build A new mbr/ bootloader to deal with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35734?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 21:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b9f5cc9-b497-42d6-963a-684b1130d67b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Aryan, is there any restriction in Nordic license agreement for Soft Devices? Because HEX file is simple ASCII text which allows easy split of MBR (first 3kB on nRF51and 12kB on nRF52) and actual stack/Soft Device and I&amp;#39;d bet MBR will work without the rest (that&amp;#39;s actually its purpose, isn&amp;#39;t it?). Thanks Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35733?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 21:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f24ba4-57e1-4c3a-97a4-b328fe0fcffe</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There are many features in MBR that does not make sense if softdevice is not there. One thing i can think of is the interrupt forward mechanism.  you are right, Bootloader is seperate&lt;/p&gt;
&lt;p&gt;I did not knew about the serial version of MBR, now i feel i have jumped into this too fast. I will find out and comeback to you. What are you trying to achieve exactly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35732?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 20:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7273cd6-bc02-4867-8ed5-2e00c796e786</guid><dc:creator>Martijn</dc:creator><description>&lt;p&gt;there is a serial version, right? That does not use the bluetooth softdevice, or am I missing something? May I ask why it is one hex? The bootloader is seperate too, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mbr without softdevice</title><link>https://devzone.nordicsemi.com/thread/35730?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 19:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa57214c-690f-428d-a25f-0c815daca197</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what do you need bootloader for if you do not need bluetooth?
And no, it is not possible to separate MBR and softdevice, they come as one hex file.&lt;/p&gt;
&lt;h2&gt;EDIT 12.10.2015&lt;/h2&gt;
&lt;p&gt;Few things i learned today (did not knew we had serial version of bootlaoder). We do not provide separate hex file for MBR. Yes, it is possible to generate the MBR hexfile from softdevice hex as we know their address space.&lt;/p&gt;
&lt;p&gt;Nordic employees have tried extracting MBR from the hex and to use it. It works. Only thing that does not work in the bootloader is the flash API (because the implementation of flash code resides inside softdevice). So you need to make your own flash library for the bootloader to work normally.&lt;/p&gt;
&lt;p&gt;License issues. once you split the hex file, then you are on your own. It would mean that you have MBR hex file that we do not guarantee to be production quality. But you can still use it if you wish on your own risk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>