<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>External RAM as heap on lpc1788, large ZI</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41151/external-ram-as-heap-on-lpc1788-large-zi</link><description> 
I&amp;#39;m using 8MiB external ram with the LPC1788. I use a scatter file
to use it as heap. 
I found out the startup file uses a lot of ZI-data. I think it tries
to initialize the external ram. But the ram is setup by a function
called by the main. 
How do</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: External RAM as heap on lpc1788, large ZI</title><link>https://community.arm.com/thread/108572?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 05:48:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:27d8d3a2-9479-41d4-8ed0-e29b30eb7607</guid><dc:creator>Kevin Pollark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sir,&lt;/p&gt;

&lt;p&gt;
The task must be carried out in &lt;i&gt;&lt;b&gt;SystemInit&lt;/b&gt;&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;
Yes that&amp;#39;s right, innit.&lt;/p&gt;

&lt;p&gt;
Warmest respect,&lt;/p&gt;

&lt;p&gt;
Mr Trout.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External RAM as heap on lpc1788, large ZI</title><link>https://community.arm.com/thread/82953?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 05:43:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:27b4292e-daa7-4f8e-8ab8-8888310975a8</guid><dc:creator>Chris Idema</dc:creator><description>&lt;p&gt;&lt;p&gt;
This is the reset handler in the startup file
startup_LPC177x_8x.s&lt;/p&gt;

&lt;pre&gt;
Reset_Handler   PROC
                EXPORT  Reset_Handler             [WEAK]
                IMPORT  SystemInit
                IMPORT  __main
                LDR     R0, =SystemInit
                BLX     R0
                LDR     R0, =__main
                BX      R0
                ENDP
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
Where should I init the RAM? In system init?&lt;br /&gt;
Where does the startup file initialize the heap? In __main?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External RAM as heap on lpc1788, large ZI</title><link>https://community.arm.com/thread/64354?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 05:16:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6af472f3-2dfc-433f-8236-3ab7087a5b45</guid><dc:creator>Kevin Pollark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sir,&lt;/p&gt;

&lt;p&gt;
Please consider initialiZing the RAM before entering
&lt;i&gt;main&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;
When you look, you should realiZe that it is the solution to your
problem.&lt;/p&gt;

&lt;p&gt;
Hugs and cuddles,&lt;/p&gt;

&lt;p&gt;
Mr Trout.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>