<?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>section .heap overlaps absolute placed section .stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73211/section-heap-overlaps-absolute-placed-section-stack</link><description>I would like to use nRF52 DK (nRF52832) to program Fanstel BC805M EK (nRF52805) . When I upload to code from nrf52 DK to BC805M, I got this error message. 
 
 I know that in SES, thumb_crt0.s is actually the linker script. It contains some assembly language</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Mar 2021 15:20:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73211/section-heap-overlaps-absolute-placed-section-stack" /><item><title>RE: section .heap overlaps absolute placed section .stack</title><link>https://devzone.nordicsemi.com/thread/302193?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe153215-5dc0-4c7e-9c0c-1cfc0a63be27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The linker is not finding a section to place the data, hence the &amp;#39;UNPLACED_SECTION&amp;#39; error. This is often the symptom when there is a mismatch with the name of the section segments defined in the project file (FLASH + RAM) and those that are actually used in the flash_placement.xml file.&lt;/p&gt;
&lt;p&gt;Please check that the names match in your case as shown in the image below. Note that the RAM section is named &amp;quot;RAM1&amp;quot; in SDK 17.0.2.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616772208544v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section .heap overlaps absolute placed section .stack</title><link>https://devzone.nordicsemi.com/thread/302037?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 03:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ba4a9f-ee2f-4aad-b360-ce1afb26ebd7</guid><dc:creator>StevenW807</dc:creator><description>&lt;p&gt;Hi Vidar Nerg,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your quick help! I followed your above mentioned &amp;quot;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/developing-for-the-nrf52805-with-nrf5-sdk"&gt;nRF52805 (pca10040e_nrf52805) project examples Bj&amp;oslash;rn&lt;/a&gt;&amp;quot;, and changed FLASH and RAM size accordingly. Now the error &amp;quot;&lt;strong&gt;section .heap overlaps absolute placed section .stack&lt;/strong&gt;&amp;quot; is solved! However, some new errors take place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I downloaded the&amp;nbsp;&lt;strong&gt;Peripheral UART/Serial Port Emulation over BLE (ble_app_uart)&lt;/strong&gt;&lt;strong&gt; &lt;/strong&gt;example.&amp;nbsp;I&amp;#39;m using nRF52 DK, and I need to upload the code to the &lt;a href="https://www.fanstel.com/bc805"&gt;Evaluation Board EV-BC805M EK (nRF52805)&lt;/a&gt;. &lt;strong&gt;The error is:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616729132930v2.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616729149180v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Any idea, please? Thank you very much!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: section .heap overlaps absolute placed section .stack</title><link>https://devzone.nordicsemi.com/thread/301958?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 15:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6c08d3-7157-4212-85fb-9ca7109b8c72</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think I would recommend starting with one the nRF52805 (pca10040e_nrf52805) project examples Bjørn included at the end of his guide before making a new project from scratch.&amp;nbsp;&lt;span style="font-size:150%;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Q1: How to solve this error, please? Do I have to modify the assembly language code, or is there any easier way to solve this error?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;thumb_crt0.c is responsible for initializing RAM on startup and should not require any modifications. The error you are getting indicates that you may have forgotten to include &amp;#39;system_nrf52805.c&amp;#39; in your project? This is where the SystemInit() function is supposed to be defined.&lt;/p&gt;
[quote user=""]Q2: Is this the correct way to set RAM and FLASH address?&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;The RAM requirement is calculated at runtime based on the Softdevice configuration parameter you pass to sd_ble_enable(), and ble_app_uart does not use the minimal configuration, so the actual RAM requirement is going to be more than &lt;span&gt;0x20001198&lt;/span&gt;. But if you enable logging you will see what the minimum RAM configuration is for your project. &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of when the RAM layout needs to be adjusted:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616685297612v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;FLASH_START must be set to 0x1C000 when using s113. Remaining space in flash (FLASH_SIZE) will then be 0x30000 - 0x1C000 = 0x14000&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>