<?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>Add a UART command in APP to enter Bootloader?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7433/add-a-uart-command-in-app-to-enter-bootloader</link><description>I want to add a command ordering by uart to make MCU entering Bootloader mode in app.
To achieve this function, I plan to use the two following example in SDK 8.0 
 ex1.\peripheral\uart 
 ex2.\dfu\bootloader\pca10028\dual_bank_serial_s110 
 The procedure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2015 11:21:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7433/add-a-uart-command-in-app-to-enter-bootloader" /><item><title>RE: Add a UART command in APP to enter Bootloader?</title><link>https://devzone.nordicsemi.com/thread/26470?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 11:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d4a794d-cc8a-496a-b261-8e61aaf93878</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@sdrest:
Q1-1: The maximum size of application should be smaller than DFU_IMAGE_MAX_SIZE_BANKED as calculated in the bootloader (dfu_types.h).
Q1-2: Yes, they can. When switching between bootloader and application, we go through the reset handler for each of them so they can be overlapped. Except for the IRAM2 where we set it at NoInit. But you only need IRAM2 if you planing to share bondinformation between application and bootloader.&lt;/p&gt;
&lt;p&gt;Q2-1: Please have a look at Question #C in this &lt;a href="https://devzone.nordicsemi.com/blogs/685/common-faq-on-dfu/"&gt;blog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to follow our approach to re-use the bondinformation, you should follow what we do in the ble_app_hrs_dfu. In that approach, we don&amp;#39;t do reset when jumping to bootloader, therefore we don&amp;#39;t do softdevice re-initialization. This is why you have trouble starting bootloader with your code.&lt;/p&gt;
&lt;p&gt;If you set the NRF_POWER-&amp;gt;GPREGRET equal something not 0xB1, you should be fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>