<?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>app without softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18970/app-without-softdevice</link><description>Hi, Nordic 
 I know when I program one BLE app, softdevice should be needed. 
 If I program esb/gazell app, softdevice is not needed. 
 I want to know, when I program one app (use esb/gazell), can softdevice be writting flash? 
 If this, if I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2017 01:00:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18970/app-without-softdevice" /><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73324?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 01:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51eceee3-dfde-484b-9e10-a2babd7f272c</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Thanks. I know, I will check address and size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73321?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 13:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5d2275a-401d-47ed-b61c-6452819e43dd</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;In the bootloader? You can check the addresses and sizes used in the bootloader example (secure_dfu_secure_dfu_ble_s132_pca10040).&lt;/p&gt;
&lt;p&gt;Or do you mean the application? You can check for example the adresses and sizes used in the ble_app_template example (ble_app_template_pca10040_s132).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73320?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 00:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df7a005c-ac38-42b7-a611-24f1a91356ce</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Thanks.
Could you tell me how to set for FLASH and RAM start address and size?
I know I should set  in keil, but how I know what is value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73322?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 14:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f876451-f4ea-4515-9509-808fa07cde73</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can change the &lt;code&gt;nrf_dfu_enter_check()&lt;/code&gt; in the bootloader example in SDK 12. Return true if GPREGRET is the correct value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73323?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 01:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db03db5-e098-4340-9d73-7df90efe484e</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Hi，Ole
if I write a value to the GPREGRET register in app running, then do system reset, in the bootloader check, then how to do to go into bootloader mode?  I guess there is one function, but what is it?&lt;/p&gt;
&lt;p&gt;could you help show one simple demo?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app without softdevice</title><link>https://devzone.nordicsemi.com/thread/73319?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2017 12:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c0f5da-2fb1-458e-8597-0dc76bd79c14</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can write the SoftDevice to flash and then have an application that don&amp;#39;t use the SoftDevice. You only need to change the FLASH and RAM start address and size. See for example the blinky_pca10040_s132 example (vs the blinky_pca10040 example).&lt;/p&gt;
&lt;p&gt;BLE DFU bootloader will work if the correct SoftDevice is written to flash.&lt;/p&gt;
&lt;p&gt;The device will always start in the bootloader. In the bootloader there is a check if the device should go into bootloader mode or jump to the application. In the earlier SDKs (11 and prior) this check was done using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html#register.GPREGRET"&gt;NRF_POWER-&amp;gt;GPREGRET&lt;/a&gt; register which is retained after resetting the device. On the newer SDKs (12 and later) it is done using flash write and read operations, and at the moment the library used (Flash Storage) only works with the SD. I therefore recommend you to use the GPREGRET register instead. When you want to go into bootloader mode (from the application) write a value to the GPREGRET register and then do a system reset, in the bootloader check the GPREGRET register for this value.&lt;/p&gt;
&lt;p&gt;I saw you had a similar question &lt;a href="https://devzone.nordicsemi.com/question/110839/how-to-enter-bootloader-mode/"&gt;here&lt;/a&gt;. More details about how to enter bootloader mode you can ask in that thread.&lt;/p&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>