<?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>Problem &amp;#39;stopped by vector catch&amp;#39; in allocating RAM when I added a new ble service&amp;quot; (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46301/problem-stopped-by-vector-catch-in-allocating-ram-when-i-added-a-new-ble-service-nrf52840-sdk15-3-0</link><description>Hello,everyone 
 I want to add dfu service in UART example ,but when I tried to allocate the RAM,Debug terminal shows nothing,Then I set the breakpoint in nrf_sdh_ble.c and debugging,I can&amp;#39;t enter the C file, 
 After I set breakpoint in main.c,I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2019 07:50:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46301/problem-stopped-by-vector-catch-in-allocating-ram-when-i-added-a-new-ble-service-nrf52840-sdk15-3-0" /><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/187789?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 07:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74d6fa03-44a2-4f21-a338-99e5140991c5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you have everything covered there. You can refer to &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/service_dfu.html?cp=5_1_3_3_5_6#secure_dfu_buttonless_app"&gt;Adding Buttonless Secure DFU Service to a BLE application&lt;/a&gt;&amp;nbsp;for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/187606?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 03:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e922d3-28aa-435f-b8d9-d4bab703f28c</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you very much,I don&amp;#39;t know what happened,but sometimes I can accomplish the dfu service directly, and now I want to know what code I must add in the main.c,Is this the following?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;1.Implement the DFU event handler
static void ble_dfu_buttonless_evt_handler(ble_dfu_buttonless_evt_type_t event)
{
switch (event)
{
case BLE_DFU_EVT_BOOTLOADER_ENTER_PREPARE:
NRF_LOG_INFO(&amp;quot;Device is preparing to enter bootloader mode\r\n&amp;quot;);
break;
case BLE_DFU_EVT_BOOTLOADER_ENTER:
NRF_LOG_INFO(&amp;quot;Device will enter bootloader mode\r\n&amp;quot;);
break;
case BLE_DFU_EVT_BOOTLOADER_ENTER_FAILED:
NRF_LOG_ERROR(&amp;quot;Device will enter bootloader mode\r\n&amp;quot;);
break;
default:
NRF_LOG_INFO(&amp;quot;Unknown event from ble_dfu.\r\n&amp;quot;);
break;
}
}

2.Enabling power management auto shutdown retry
#ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
#define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 1
#endif

3. Implement the power management
static bool app_shutdown_handler(nrf_pwr_mgmt_evt_t event)
{
switch (event)
{
case NRF_PWR_MGMT_EVT_PREPARE_DFU:
NRF_LOG_INFO(&amp;quot;Power management wants to reset to DFU mode\r\n&amp;quot;); 
// Change this code to tailor to your reset strategy.
// Returning false here means that the device is not ready to jump to DFU mode yet.
// 
// Here is an example using a variable to delay resetting the device:
if (!m_ready_for_reset)
{
return false;
}
break;
default:
// Implement any of the other events available from the power management module:
// -NRF_PWR_MGMT_EVT_PREPARE_SYSOFF
// -NRF_PWR_MGMT_EVT_PREPARE_WAKEUP
// -NRF_PWR_MGMT_EVT_PREPARE_RESET
return true;
}
NRF_LOG_INFO(&amp;quot;Power management allowed to reset to DFU mode\r\n&amp;quot;);
return true;
}


4. Initializing the Buttonless Secure DFU Service
static void services_init(void)
{
...
ble_dfu_buttonless_init_t dfus_init =
{
.evt_handler = ble_dfu_buttonless_evt_handler
};
err_code = ble_dfu_buttonless_init(&amp;amp;dfus_init);
APP_ERROR_CHECK(err_code);
...
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Because I&amp;#39;m not sure whether I can use it in other application simply,or I need change a lot of things if I want to add dfu in another application.Looking forward to your reply.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;zhong,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/185462?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 11:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d67076-b64b-4550-aeda-70258370aa6d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. This seems to be RTT log from the application. Is the bootloader running? Another way of making sure that the RTT log of the debug bootloader is printed is to disable RTT logging in the application. This way you know there is no &amp;quot;residue&amp;quot; RTT buffer from the application in RAM. Also remember that it only the debug bootloader that has RTT logging.&lt;/p&gt;
&lt;p&gt;2. The phone shows that there are no DFU characteristics. This indicates that neither the bootloader nor an application with the buttonless DFU service is running. Can you double check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/185301?ContentTypeID=1</link><pubDate>Sun, 05 May 2019 08:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bca5a9ac-064c-465b-bb02-79e597bd1e10</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I try to&amp;nbsp;&lt;span&gt;disconnect the RTT viewer and connect again after entering DFU mode.but nothing I can find,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then I try the dfu in another phone(android),unfortunately,even if I open the RTT ,The dfu fail too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s the information in RTT viewer and in the phone:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.RTT viewer&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Process: JLinkExe&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002AA8&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Connected&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x3A.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x24.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 27 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 27&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 328&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x12.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;2.in the phone&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_8147.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;what&amp;#39; the matter?&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;zhong&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184605?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 13:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a241e59a-8ada-4c7f-b91f-76ad694b7c2d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This RTT log only covers the application. That is an unfortunate consequence of the RTT viewer only searching for the RTT buffer once, as described &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20708/rtt-logging-from-application-started-by-bootloader"&gt;here &lt;/a&gt;and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;here&lt;/a&gt;. Can you try to disconnect the RTT viewer and connect again after entering DFU mode? That way you should get the bootloader RTT output. (alternatively, you could make sure that the RTT buffer of the application and bootloader is in the same memory address).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184455?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 07:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62314788-84c9-4707-a86f-c7658e4aad2d</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s the log file:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002AA8&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Connected&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x3A.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt; 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State request: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000000&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh: State change: 0x00000001&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: RAM starts at 0x20002AA8&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x10.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Connected&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x3A.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 185 bytes on connection 0x0 (response).&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Data len is set to 0xB6(182)&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x24.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x23.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested a data length of 251 bytes.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x24.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 251&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 2120&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x52.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x50.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Received indication state 1&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x51.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; nrf_sdh_ble: BLE event: 0x53.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Device is preparing to enter bootloader mode.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: Disconnected connection handle 0&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Disconnected 1 links.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;debug&amp;gt; app: In ble_dfu_buttonless_bootloader_start_finalize&lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Device will enter bootloader mode.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Power management wants to reset to DFU mode.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&amp;lt;info&amp;gt; app: Power management allowed to reset to DFU mode.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;and I can finish dfu&amp;nbsp;when I open the RTT mode,but If I don&amp;#39;t use RTT to test.It won&amp;#39;t finish the dfu&amp;nbsp;Just like before（always in 100%），Is it normal？（app&amp;ldquo;nrf connect&amp;rdquo;in iphone）.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;zhong&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184267?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 10:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf5a3a4d-f15c-42f3-ac91-1be47142d766</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no RTT output here, just printouts from JLinkExe. You also need to connect to JLinkExe via telnet, as described in the end in the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14512/how-to-use-rtt-viewer-or-similar-on-gnu-linux/55392#55392"&gt;post I linked to&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184176?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2019 06:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040bed0a-14c6-4ed2-adee-8eb03e6e493e</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s the log file with the bootloader_debug only:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Solutions for real time microcontroller applications &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;(c) 2012 - 2016&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;www.segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Support: support@segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * SEGGER J-Link RTT Client &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Compiled Mar 22 2019 17:28:45 * &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: -----------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: Connecting to J-Link RTT Server via localhost:19021&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Connected.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;SEGGER J-Link V6.40 - Real time terminal output&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;J-Link OB-SAM3U128-V2-NordicSemi compiled Jan&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;7 2019 14:07:15 V1.0, SN=683732423&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Process: emStudio&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;and this is the log file with bootloader,settings,softdevice and app:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Solutions for real time microcontroller applications &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;(c) 2012 - 2016&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;www.segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Support: support@segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * SEGGER J-Link RTT Client &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Compiled Mar 22 2019 17:28:45 * &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: -----------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: Connecting to J-Link RTT Server via localhost:19021&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Connected.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;SEGGER J-Link V6.44c - Real time terminal output&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;J-Link OB-SAM3U128-V2-NordicSemi compiled Jan&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;7 2019 14:07:15 V1.0, SN=683732423&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Process: JLinkExe&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;zhong&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184174?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2019 05:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2390cf9-e2af-41cd-be69-7295a5ea45d4</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I try this and I get these things:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;JLinkRTTClient&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Solutions for real time microcontroller applications &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;(c) 2012 - 2016&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;SEGGER Microcontroller GmbH &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;www.segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Support: support@segger.com &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: * SEGGER J-Link RTT Client &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Compiled Mar 22 2019 17:28:45 * &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: *&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: ************************************************************ &lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: -----------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;###RTT Client: Connecting to J-Link RTT Server via localhost:19021&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Connected.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;SEGGER J-Link V6.44c - Real time terminal output&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;J-Link OB-SAM3U128-V2-NordicSemi compiled Jan&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;7 2019 14:07:15 V1.0, SN=683732423&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Process: JLinkExe&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Where can I find the exact file?and I try to change the application-version at 2,The same situation occured ,and I simply use the DfuTarg,It failed too.What should I do next?&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;zhong&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184034?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 10:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:932e79d7-7bce-4d86-914e-41425f9264de</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you can&amp;nbsp;use RTT logging&amp;nbsp;on Mac as well, but it is a bit less user friendly. You can follow the same basic instructions as for Linux, for instance from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14512/how-to-use-rtt-viewer-or-similar-on-gnu-linux/55392#55392"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Your nrfutil command looks mostly OK. However, you should increase the application-version, as the bootloader will prevent you to upgrade to the same or lower version number (unless&amp;nbsp;NRF_DFU_APP_DOWNGRADE_PREVENTION is set to 0 in the bootloaders sdk_config.h).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184009?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 09:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97722ba5-0e9a-4a2f-a7a8-f83d6112662e</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;ok,so I can do it in mac os? I will do it, by the way,maybe my update-zip.file is incorrecct.It&amp;#39;s my process:&lt;/p&gt;
&lt;p&gt;1.get the output file.hex in example hrs.and named &amp;quot;app_new.hex&amp;quot;&lt;/p&gt;
&lt;p&gt;2.use command:&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --application app_new.hex --application-version 1 --application-version-string &amp;quot;1.0.0&amp;quot; --hw-version 52 --sd-req 0xB6 --sd-id 0xB6 --softdevice s140_nrf52_6.1.1_softdevice.hex --key-file priv.pem FW.zip&lt;/p&gt;
&lt;p&gt;and I download the zipfile and use it.&lt;/p&gt;
&lt;p&gt;Is there any problem?looking forward to your reply.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/184007?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 09:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:204bb4d9-2cb5-42c3-85c5-8743275904b9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The debug bootlaoder use RTT logging by default, so you just need to connect a J-link debugger (unless you use the DK, which has one onboard) and start the J-Link RTT Viewer. This should have allready been installed on your computer, assuming you use Windows and have installed &lt;a href="https://www.nordicsemi.com/?sc_itemid=%7B56868165-9553-444D-AA57-15BDE1BF6B49%7D"&gt;nRF5 Command Line Tools&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/183931?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 06:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c488bdf3-94a0-4d17-ba8d-0e81594d8fb3</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi,Einar,&lt;/p&gt;
&lt;p&gt;I tested with a debug bootloader,it&amp;#39;s named DfuTarg,but the same situation occured,it&amp;#39;s always in 100% and then back to the orignal service(dfuTarg), and now i&amp;#39;m using the macos and I don&amp;#39;t know how to get the RTT log. could you please tell me how to get the RTT log and I will update it quickly.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/183713?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 09:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad8c0ebf-c909-4579-a85c-ed279529188a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Zhong,&lt;/p&gt;
&lt;p&gt;I see. Since you are able to transfer the image, you have successfully entered DFU mode in the bootloader. Therefor this issue is not related to the DFU service.&lt;/p&gt;
&lt;p&gt;Can you test with a debug bootloader, and upload the RTT log to this case? The bootloader has extensive logging, so the log should hopefully tell us more about what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/183614?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 02:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3e948b3-9c3b-40be-9512-85b2abae626c</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I fail in last step.I want to use dfu service to update.The progress bar is&amp;nbsp;becoming&lt;span&gt;&amp;nbsp;&lt;/span&gt;100% and nothing happened,The update file I use is blinky_example.I think if I can start OTA service.maybe it&amp;#39;s not the problem about the update file,so what should I do?like the image,&lt;span&gt;&amp;nbsp;&lt;/span&gt;it can&amp;#39;t be finished,and then it will return to the original service(UART service with dfu service)&lt;span&gt;&amp;nbsp;&lt;/span&gt;automatically,Thanks for your patient.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1556159506778v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/183151?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 13:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36aeebbc-6991-4598-a48d-b0effb089ada</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This thread started with correcting the memory configuration of the application and SoftDevice, to allow you to add more services. That seems to not be the current issue?&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t get any errors but still don&amp;#39;t see the DFU service there are two possible reasons that comes to mind:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You do not actually initialize the DFU service. Can you verify that you do, and possibly upload your code so that I can check it?&lt;/li&gt;
&lt;li&gt;Another possible explanation is that even if you have added the DFU service is might not show up in your phone as it may have cached the services. In that case you could remove the device from your phone and toggle airplane mode on and off before reconnecting. This way you know that it will perform a new service discovery.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182713?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 07:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbfa291a-19d7-4fcc-a4ae-401454f44b4f</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;&lt;span&gt;hello,AndreasF,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I try it again, and it also only shows the UART service,could you please help me find the solution?Thanks a lot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regrads,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;zhong&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182697?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 02:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5ac952-4f42-4d43-9ddc-3c4c76f42977</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;&lt;span&gt;hello,AndreasF,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I changed my section placement marcos by the warning:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_PH_START=0x0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x26000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0xda000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20002aa8&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x3d558&lt;/p&gt;
&lt;p&gt;and then I &amp;quot;build and run&amp;quot; in order to get the output.hex.After this,I make the setting file and mix the settings.hex,app.hex,softdevice.hex and bootloader.hex by using the code below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate --family NRF52840 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex

mergehex --merge bootloader.hex s140_nrf52_6.1.1_softdevice.hex --output production_final1.hex

mergehex --merge production_final1.hex app.hex --output production_final2.hex

mergehex --merge production_final2.hex settings.hex --output production_final.hex

nrfjprog --eraseall -f NRF52

nrfjprog -f NRF52 --program &amp;quot;production_final.hex&amp;quot; --verify  

nrfjprog --reset -f NRF52&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;finally I can connect the nrf52840 which is named &amp;quot;UART service&amp;quot; by my phone,but I can only find that there is only a service named UART service,I can&amp;#39;t find the dfu service, what should&amp;nbsp;I do?&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182695?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 02:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddc7e2b0-5dc2-4cf1-b5f8-cf71fe5d5d6c</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;hello,AndreasF,&lt;/p&gt;
&lt;p&gt;I try it,and then I receive the message like this:&lt;/p&gt;
&lt;pre&gt; nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice.

 nrf_sdh_ble: Change the RAM start location from 0x20002A98 to 0x20002AA8.

 nrf_sdh_ble: Maximum RAM size for application is 0x3D558.

 nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM.

 app: ERROR 4 [NRF_ERROR_NO_MEM] at /Users/zz/Desktop/stage5a/heatzy_pilote/BLE_Projects/nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart/main.c:508

PC at: 0x0002EC1B

&lt;/pre&gt;
&lt;p&gt;so,how to change the section placement marcos?I use the soft6.1.1 and sdk 15.3.0,This is my setting(I set by the tutorial:&lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;),I don&amp;#39;t know the exact mean about FLASH_PH_START and FLASH_PH_SIZE.etc&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x26000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0xda000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20002a98&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x3d568&lt;/p&gt;
&lt;p&gt;so I just change the RAM_START and RAM_SIZE?or I should also change other things like FLASH_PH_START or FLASH_START. Look forward to your reply.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182563?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 10:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99396d0b-02a8-4700-81b7-394b215adc90</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi zhong.&lt;/p&gt;
&lt;p&gt;Have you added the source files and header files?&lt;/p&gt;
&lt;p&gt;[quote user="zhong"][/quote]&lt;/p&gt;
&lt;p&gt;1.Add source file&lt;br /&gt;Add a folder nRF_DFU to the project and add the following files:&lt;/p&gt;
&lt;p&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu_bonded.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\libraries\bootloader\dfu\nrf_dfu_svci.c&lt;/p&gt;
&lt;p&gt;../../../../../../components/libraries/bootloader&lt;br /&gt;../../../../../../components/libraries/bootloader/ble_dfu&lt;br /&gt;../../../../../../components/libraries/bootloader/dfu&lt;br /&gt;../../../../../../components/libraries/svc&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Have you defined &lt;strong&gt;m_ready_for_reset&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182556?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 10:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c444f69-4651-4c6e-b30c-9176b72fb61e</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;hello,AndreasF&lt;/p&gt;
&lt;p&gt;I do the thing in the infocenter guide,I add the code and set&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 1 &lt;br /&gt;&lt;br /&gt;and there are some errors in the image&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/777.png" /&gt;&lt;/pre&gt;
&lt;p&gt;which files should I add?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182547?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 09:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:348293c7-cf3d-44f9-932a-40d45f67e5ca</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;hello,AndreasF&lt;/p&gt;
&lt;p&gt;I will&lt;span&gt;&amp;nbsp;&lt;/span&gt;try the Infocentor Guide,what diffrerence entre the dfu_buttonless service and dfu_secure_buttonless service?so I just should do the things step by step by &amp;quot;add secure_buttonless_dfu service in ble application&amp;quot;? now I am using the tutorial for this website.&lt;a href="http://www.sunyouqun.com/2018/04/nordic-ble-dfu-4-buttonless-app/"&gt;http://www.sunyouqun.com/2018/04/nordic-ble-dfu-4-buttonless-app/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;it&amp;#39;s Chinese and other person was success in using it, all the changes are shown in the form of pictures. Now I explain the work I have done.&lt;/p&gt;
&lt;p&gt;first，Open the &amp;lt;sdk&amp;gt;\examples\ble_peripheral\ble_app_hrs project to make sure the project works&lt;/p&gt;
&lt;p&gt;1.Add source file&lt;br /&gt;Add a folder nRF_DFU to the project and add the following files:&lt;/p&gt;
&lt;p&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu_bonded.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c&lt;br /&gt;&amp;lt;sdk&amp;gt;\components\libraries\bootloader\dfu\nrf_dfu_svci.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.Add Include directory&lt;br /&gt;Find User Include Directories in the project configuration window and add the following path:&lt;/p&gt;
&lt;p&gt;../../../../../../components/libraries/bootloader&lt;br /&gt;../../../../../../components/libraries/bootloader/ble_dfu&lt;br /&gt;../../../../../../components/libraries/bootloader/dfu&lt;br /&gt;../../../../../../components/libraries/svc&lt;br /&gt;If you use SEGGER Embedded Studio, you need to pay extra attention to the spaces at the end of these paths, which may result in not being recognized correctly.&lt;/p&gt;
&lt;p&gt;3.Add macro switch&lt;br /&gt;Find Preprocessor Definitions in the Project Configuration window and add the following items:&lt;/p&gt;
&lt;p&gt;NRF_DFU_SVCI_ENABLED&lt;br /&gt;NRF_DFU_TRANSPORT_BLE=1&lt;br /&gt;BL_SETTINGS_ACCESS_ONLY&lt;/p&gt;
&lt;p&gt;4.Configuring sdk_config&lt;br /&gt;In sdk_config.h, make the following changes:&lt;/p&gt;
&lt;p&gt;BLE_DFU_ENABLED = 1&lt;br /&gt;NRF_SDH_BLE_VS_UUID_COUNT += 1&lt;/p&gt;
&lt;p&gt;5.Add header file&lt;br /&gt;Add the following header file to main.c:&lt;/p&gt;
&lt;p&gt;#include &amp;quot;nrf_dfu_ble_svci_bond_sharing.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_svci_async_function.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_svci_async_handler.h&amp;quot;&lt;br /&gt;#include &amp;quot;ble_dfu.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_power.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_bootloader_info.h&amp;quot;&lt;/p&gt;
&lt;p&gt;6.Add code&lt;br /&gt;Open the main.c of the Buttonless sample project and copy the following functions into the main.c of the current project:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Add Buttonless DFU Service:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-C" lang="C"&gt;static bool app_shutdown_handler(nrf_pwr_mgmt_evt_t event){};
NRF_PWR_MGMT_HANDLER_REGISTER(app_shutdown_handler, 0);
static void buttonless_dfu_sdh_state_observer(nrf_sdh_state_evt_t state, void * p_context){};
NRF_SDH_STATE_OBSERVER(m_buttonless_dfu_state_obs, 0) = {};
static void ble_dfu_evt_handler(ble_dfu_buttonless_evt_type_t event){};&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Add the DFU service at the end of the main.c/services_init function:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-C" lang="C"&gt;ble_dfu_buttonless_init_t dfus_init = {0};

// Initialize the async SVCI interface to bootloader.
err_code = ble_dfu_buttonless_async_svci_init();
APP_ERROR_CHECK(err_code);

dfus_init.evt_handler = ble_dfu_evt_handler;

err_code = ble_dfu_buttonless_init(&amp;amp;dfus_init);
APP_ERROR_CHECK(err_code);    &lt;/code&gt;&lt;/pre&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;
&lt;div class=" ace_editor ace-clouds"&gt;
&lt;div class="ace_scroller"&gt;
&lt;div class="ace_content"&gt;
&lt;div class="ace_layer ace_marker-layer"&gt;&lt;/div&gt;
&lt;div class="ace_layer ace_text-layer"&gt;
&lt;div class="ace_line"&gt;&lt;span class="ace_identifier"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;7.Adjust memory address&lt;br /&gt;Follow the steps above and walk down, you can already compile. Burn Softdevice and Application, open the serial port tool, you should see the log message prompts that the memory address and memory size need to be adjusted.&lt;/p&gt;
&lt;p&gt;（In this step, I didn&amp;#39;t see any information on the serial port, so I don&amp;#39;t know how to modify the RAM, maybe the memory of nrf52840 is enough）&lt;/p&gt;
&lt;p&gt;Then I can compile and get the app.hex file&lt;/p&gt;
&lt;p&gt;8.Bootloader settings&lt;/p&gt;
&lt;p&gt;I confirmed that I used the correct version of softdevice and bootloader (s140_nrf52_6.1.1_softdevice.hex and complie the file in sdk15.3.0/example/dfu/secure_bootloader/pca10056 folder to get the bootloader.hex), and then got the final hex file by&amp;nbsp;&lt;span&gt;the following command.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52840 --application app.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings.hex&lt;/p&gt;
&lt;p&gt;mergehex --merge bootloader.hex s140_nrf52_6.1.1_softdevice.hex --output production_final1.hex&lt;/p&gt;
&lt;p&gt;mergehex --merge production_final1.hex app.hex --output production_final2.hex&lt;/p&gt;
&lt;p&gt;mergehex --merge production_final2.hex settings.hex --output production_final.hex&lt;/p&gt;
&lt;p&gt;nrfjprog --eraseall -f NRF52&lt;/p&gt;
&lt;p&gt;nrfjprog -f NRF52 --program &amp;quot;production_final.hex&amp;quot; --verify&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog --reset -f NRF52&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s all the things I have done,I don&amp;#39;t know where is the problem which cause the situation that I can&amp;#39;t allocated RAM.Look forward to your reply~&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182535?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 08:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1eca525-e1f1-4cd2-9b1b-cf52b1a70078</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I think the error &amp;quot;Stopped by vector catch&amp;quot; is related to a Hardfault.&lt;/p&gt;
&lt;p&gt;How did you add the &lt;strong&gt;dfu_buttonless &lt;/strong&gt;Service? Did you follow the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fservice_dfu.html&amp;amp;cp=5_0_3_3_5"&gt;Infocenter Guide&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Perhaps this Hardfault occurs because the &lt;strong&gt;dfu_buttonless &lt;/strong&gt;Service is not configured correctly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182526?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 07:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b4f048-ecb1-40fd-a5a8-a2717bfa04d5</guid><dc:creator>zhong</dc:creator><description>&lt;p&gt;Hi AndreasF,&lt;/p&gt;
&lt;p&gt;I try the&amp;nbsp;&lt;span&gt;chapter 8 or 9 in this tutorial,but there a problem occurs,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.In chapter 8&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First,I set the RAM like this in configuration debug,like this image.(sdk15.3.0,softdevice6.1.1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3630.111.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then I change the define in sdk_config.h which are shown in chapter 8.after I cancel all the breakpoint and click &amp;quot;go&amp;quot; in option &amp;quot;debug&amp;quot;,but it&amp;#39;s nothing in debug terminal,like the image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5481.222.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally I click &amp;quot;go&amp;quot; once more,it shows&amp;quot;stopped by vector catch&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.in chapter 9&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In this way ,I set a breakpoint in line&amp;quot;&lt;/span&gt; ret_code_t ret_code = sd_ble_enable(p_app_ram_start);&lt;span&gt;&amp;quot; shown in chapter 9, and then I click &amp;quot;go&amp;quot; in option&amp;quot;debug&amp;quot; once time ,the result like this image:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0654.555.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then I click&amp;quot;go&amp;quot; once more,The debug never jump into the breakpoint which I set and it was blocked wtih&amp;quot;stopped by vector catch&amp;quot;,like the image:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2605.333.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So what should I do?and if there are some&amp;nbsp;tutorial which can tell me how to allocate RAM when I want to add a new service in a example(add dfu_buttonless service is better),Look forward to your help,thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;zhong&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem 'stopped by vector catch' in allocating RAM when I added a new ble service" (nrf52840 sdk15.3.0)</title><link>https://devzone.nordicsemi.com/thread/182508?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 07:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d078bd8-9c47-48d6-af6e-84f4ed5577d5</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi zhong.&lt;/p&gt;
&lt;p&gt;For the issue with &lt;strong&gt;Restricted Memory Range&lt;/strong&gt;, please read &lt;a href="https://forum.segger.com/index.php/Thread/5797-SOLVED-Restricted-memory-range-in-watch-window/?s=d30303c49b7250cbcda49c9bcdc17ca18ae9510f"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For adjustment of RAM, please read &lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;this tutorial&lt;/a&gt; and look at chapter 8 or 9.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>