<?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>SDK12.3. Secure Bootloader : UART and ld config</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22273/sdk12-3-secure-bootloader-uart-and-ld-config</link><description>Hi all 
 I&amp;#39;m working on a custom board using gcc and eclipse. 
 My primary problem is I&amp;#39;m fighting with the ld settings for the secure bootloader.
I activated the RTT which led to a slightly larger HEX debug built. 
 text data bss dec hex	filename</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 May 2017 10:23:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22273/sdk12-3-secure-bootloader-uart-and-ld-config" /><item><title>RE: SDK12.3. Secure Bootloader : UART and ld config</title><link>https://devzone.nordicsemi.com/thread/87577?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 10:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4998adf-32c0-4e2f-af51-152472c8d062</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;Okay, I found the root cause of all my problems:&lt;/p&gt;
&lt;p&gt;Inside the Makefile the &lt;strong&gt;CFLAG+= -flto&lt;/strong&gt; was set, which caused the debug symbols to be discarded and caused the debugger to not find the symbols...&lt;/p&gt;
&lt;p&gt;Maybe this helps somebody too&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.3. Secure Bootloader : UART and ld config</title><link>https://devzone.nordicsemi.com/thread/87576?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 09:37:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a175875-0a27-43d0-a390-be2835d530ab</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nrf_dfu_init
:INFO:running nrf_dfu_settings_init
:INFO:Enter nrf_dfu_continue
:INFO:Single: Invalid bank
:INFO:Application sent bootloader request
:INFO:In nrf_dfu_transports_init
:INFO:num transports: 2
:INFO:vector table: 0x00035c00&lt;/p&gt;
&lt;p&gt;This is my init output, but the break point at main is not hit...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.3. Secure Bootloader : UART and ld config</title><link>https://devzone.nordicsemi.com/thread/87575?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 09:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb41734-9ea9-4a7c-9aa6-7e27fe163061</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;Hi, I erased the chip a couple times. But still no luck in hitting the break point. The puzzling thing about it is, I see the NRF_LOG output printed in the RTT console...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.3. Secure Bootloader : UART and ld config</title><link>https://devzone.nordicsemi.com/thread/87574?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 09:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0480c58c-3c59-450d-8740-41c9af8361c5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;BOOTLOADER_REGION_START is replaced by BOOTLOADER_START_ADDR in Secure DFU.&lt;/p&gt;
&lt;p&gt;The .ld file was inherited from Legacy DFU (SDK v11 and earlier). The comment and some other configuration (such as the NOINIT sectioN) should be updated. We will try to fix this in next release of the SDK.&lt;/p&gt;
&lt;p&gt;I can see that you move the bootloader up a little bit. It&amp;#39;s fine if you want to have more space to receive image and for application. But in case in the future we need to update the bootloader and make it larger size you may have an issue. It&amp;#39;s better to have some buffer.&lt;/p&gt;
&lt;p&gt;Note that when you change the bootloader start address, you need to do a full erase of the chip , so that the UICR is erased properly.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any problem back porting the serial DFU from SDK v13 back to SDK v12 or earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>