<?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>Debugging Serial UART Bootloader SDK 15.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45910/debugging-serial-uart-bootloader-sdk-15-3</link><description>Hi, 
 I am currently working on a project for which I use the Secure Serial UART Bootloader from SDK 15.3 (nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040_uart), slightly modified to fit my custom board embedding a nRF52832 chip (pinout</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Apr 2019 08:50:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45910/debugging-serial-uart-bootloader-sdk-15-3" /><item><title>RE: Debugging Serial UART Bootloader SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/184238?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 08:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bbf99ca-11d1-4820-a145-63c94c861009</guid><dc:creator>Pierre B.</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your answer, this indeed solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Serial UART Bootloader SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/184236?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 08:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fba9be-8b8d-4a50-a4d2-d5a4435f8c9e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I think its still because Keil is erasing the MBR flash page. Could you try to do the following modifications to the bootloader code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Comment out the m_uicr_mbr_params_page_address declearation in nrf_dfu_settings.c, i.e. 

#if defined ( __CC_ARM )

  //  uint32_t const m_uicr_mbr_params_page_address
  //      __attribute__((at(NRF_UICR_MBR_PARAMS_PAGE_ADDRESS))) = NRF_MBR_PARAMS_PAGE_ADDRESS;

#elif defined ( __GNUC__ ) || defined ( __SES_ARM )

// Change MBR_BOOTLOADER_ADDR in nrf_mbr.h from 0xFF8 to 0x10001014

/** @brief Location (in the flash memory) of the bootloader address. */
#define MBR_BOOTLOADER_ADDR      (0x10001014) //(0xFF8)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Doing this I was able to debug the bootloader in Keil. What I have essentially done is to prevent the BL from writing to the MBR region.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Serial UART Bootloader SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/181134?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 15:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb830a76-708c-4c4d-a558-52c8413217df</guid><dc:creator>Pierre B.</dc:creator><description>&lt;p&gt;Hi, thank you for your answer.&lt;/p&gt;
&lt;p&gt;I tried your solution, and it gives me the same error... But I realized I shouldn&amp;#39;t need to have SoftDevice flashed in order for the bootloader to work, as it is not using BLE, and so neither SoftDevice. As so I tried going into debug mode after having flashed only MBR (nRF5_SDK_15.3.0_59ac345\components\softdevice\mbr\nrf52832\hex\mbr_nrf52_2.4.1_mbr.hex).&lt;/p&gt;
&lt;p&gt;In this case, I can go into bootloader debug mode without error. But the issue now seems that once I am in debug mode, I don&amp;#39;t see any pointers to my code, and as soon as I try to run the code it stops by itself. Even at the beginning registers values seem a bit off:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2548.Capture.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;I still have the same settings for debugging.&lt;/p&gt;
&lt;p&gt;Any idea where that might come from ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Serial UART Bootloader SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/181115?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 14:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:230e609a-2fb2-476e-832d-9a1b4bbcbbb2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Pierre,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in the latest SDK v15.3.0 we have modified the bootloader code in that we write the bootloader address to the MBR region in addition to the UICR registers. When you initiate a Debug session with Keil, then the IDE will try to reflash the bootloader binary, which contains data placed in the MBR section. The MBR is included in the SoftDevice binary, and since the flash algorithm used in Keil require the entire page to be cleared prior to writing to it, then this will result in the error you now are seeing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to modify the Flash Download settings as shown below to not flash the bootloader prior to initiating the debug session&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-132ba87edec14a21b79d608ed6922e14/pastedimage1554820100225v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:transparent;height:240px;width:320px;"&gt;...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>