<?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>nRF52840 not debugging from Keil after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54744/nrf52840-not-debugging-from-keil-after-dfu</link><description>Hi, 
 I am having some issues with DFU and Keil. 
 I am loading Softdevice s140 v7.0.1 via nRF Connect and then programming a secure BLE bootloader using nrfjprog. 
 The bootloader works fine and I am able to perform a DFU with no problems. 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Nov 2019 09:30:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54744/nrf52840-not-debugging-from-keil-after-dfu" /><item><title>RE: nRF52840 not debugging from Keil after DFU</title><link>https://devzone.nordicsemi.com/thread/221778?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 09:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c84cee0c-df78-4126-8f5c-cd190f50eb87</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ben,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could RTT log work before the application modified?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="nordic_fan2015"]How do I get this log?[/quote]
&lt;p&gt;&amp;nbsp;You could use the bootloader_secure_ble_debug image under &amp;lt;nRF5_SDK&amp;gt;\examples\dfu\secure_dfu_test_images\ble\nrf52840&lt;/p&gt;
&lt;p&gt;In the application project, you could enable RTT log in the sdk_configh.h as&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//==========================================================
// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
//==========================================================
#ifndef NRF_LOG_BACKEND_RTT_ENABLED
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 not debugging from Keil after DFU</title><link>https://devzone.nordicsemi.com/thread/221762?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 08:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9381cb66-7879-45dc-832c-333032533fd2</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/54744/nrf52840-not-debugging-from-keil-after-dfu/221747"]What is the updated application different from the previous? Is a new service added to the application?[/quote]
&lt;p&gt;No, the only difference is some different RTT Viewer printf&amp;#39;s to distinguish between the two.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/54744/nrf52840-not-debugging-from-keil-after-dfu/221747"]&amp;nbsp;Could you provide the log?[/quote]
&lt;p&gt;How do I get this log? I can tell it is in the bootloader because I have a certain LED pattern in the bootloader that is not in my main application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 not debugging from Keil after DFU</title><link>https://devzone.nordicsemi.com/thread/221747?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 08:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf27312-5a2c-4cfa-8790-b27dad0d2cc2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]if I then program an updated application[/quote]
&lt;p&gt;What is the updated application different from the previous? Is a new service added to the application?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]the MCU jumps straight to the bootloader after programming and will not run the new application. [/quote]
&lt;p&gt;&amp;nbsp;Could you provide the log?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>