<?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>noinit section of RAM not working after SDK16 update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87779/noinit-section-of-ram-not-working-after-sdk16-update</link><description>Hi, I am experiencing a strange case here where after an update from SDK15.2 to SDK 16, the noinit section of RAM is not working anymore. 
 When I encounter an error of some sort, I will write a special code/number to an uint32_t variable declared as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 May 2022 09:19:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87779/noinit-section-of-ram-not-working-after-sdk16-update" /><item><title>RE: noinit section of RAM not working after SDK16 update</title><link>https://devzone.nordicsemi.com/thread/367352?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 09:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f002c94-7e92-4a09-91bd-0dfe5d98d87e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Yes, the stack grows down and it usually starts at the top of RAM (i.e. 0x20004000 if using the 52832). &lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I don&amp;#39;t have an explanation as to why you didn&amp;#39;t experience the issue with SDK15.2.0. You may compare the *.map file from the bootloader builds and see if the STACK area is covering the same address range in both versions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: noinit section of RAM not working after SDK16 update</title><link>https://devzone.nordicsemi.com/thread/367349?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 09:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c98ff6-5548-46fa-88ec-590c87f4d353</guid><dc:creator>JasonGeo</dc:creator><description>&lt;p&gt;Thanks Vidar, that&amp;#39;s indeed the problem!&lt;/p&gt;
&lt;p&gt;But I do not understand why does it work with SDK15.2 previously without having to reduce the size of the RAM section in bootloader ld file?&lt;/p&gt;
&lt;p&gt;Also does the call stack always starts at the highest address in the allocated RAM section and goes down?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: noinit section of RAM not working after SDK16 update</title><link>https://devzone.nordicsemi.com/thread/367288?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 06:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144dbd06-e46c-4af0-9587-a35224177f53</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The bootloader call stack appears to overlap with your noninit section in the application. Maybe you forgot to reduce the size of the RAM section when you updated to the new SDK?&lt;/p&gt;
&lt;p&gt;RAM (rwx) : ORIGIN = 0x200057b8, LENGTH = 0x3a848&lt;strong&gt; - 0x40&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;Forgot to add that there weren&amp;#39;t any relevant between version 16 and 17. At least, none that I can think of. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: noinit section of RAM not working after SDK16 update</title><link>https://devzone.nordicsemi.com/thread/367281?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 05:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dbb23ce-7fa4-4e0e-a6f3-cb55b9065fca</guid><dc:creator>JasonGeo</dc:creator><description>&lt;p&gt;I also verified from the map file that the memory is allocated for the noinit section variable.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1652246683623v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>