<?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>Managing linker script nrf53 (nrf connect sdk)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69030/managing-linker-script-nrf53-nrf-connect-sdk</link><description>I&amp;#39;m trying to evaluate the nrf5340 using the PDK. 
 
 I want to port an nrf52(832) application to it and I&amp;#39;m having a lot of trouble understanding how to work with west and the nrf connect sdk in general. But one of my biggest problems is I don&amp;#39;t know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Dec 2020 17:59:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69030/managing-linker-script-nrf53-nrf-connect-sdk" /><item><title>RE: Managing linker script nrf53 (nrf connect sdk)?</title><link>https://devzone.nordicsemi.com/thread/283201?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 17:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b43766-c564-4951-a6ca-8f51d14c77b0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Take a look at &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.0-ncs1/samples/application_development/code_relocation"&gt;the Code relocation sample&lt;/a&gt;&amp;nbsp;for guidance on how to relocate&amp;nbsp;&lt;span&gt;code, data or bss sections using a custom linker script&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Is it possible for you to use MCUBoot instead of the custom bootloader? You may save a lot of work if you use MCUboot, especially if you&amp;#39;re going to update the network core, which is a &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/samples/nrf5340/netboot/README.html#nrf5340-network-core-bootloader"&gt;quite complex procedure&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to stick with your DFU Protocol (how the updated image is transferred&amp;nbsp;to the chip and stored in flash) you can still use MCUBoot with your custom protocol. Please tell me if this is the case and I can tell you how to go about it.&lt;/p&gt;
&lt;p&gt;If you need to continue to use the custom bootloader, I can help you with that. Could you give me some more information about the custom bootloader and the flash regions? Are you using the nRF5 SDK bootloader? What flash regions are you talking about? A colleague made a sample that might be helpful, where he used the Partition Manager to add the mbr from the nRF5 SDK as a static partition before MCUBoot&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7416.MicrosoftTeams_2D00_image.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Check out the sample here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6811.peripheral_5F00_uart.7z"&gt;devzone.nordicsemi.com/.../6811.peripheral_5F00_uart.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This case might be helpful as well:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65819/updating-start-address-to-nrf52840-dk-via-code/269330#269330"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/65819/updating-start-address-to-nrf52840-dk-via-code/269330#269330&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>