<?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>GUI_CM3_L.lib and Network</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41389/gui_cm3_l-lib-and-network</link><description> 
I am trying to use network into an application where I use without
troubles GUI libraries but it seems they reserve same memory
addresses or anyway it happens some kind of memory conflict: when
calling GUI_Glear() I fall into HardFault_Handler. Tried</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: GUI_CM3_L.lib and Network</title><link>https://community.arm.com/thread/129279?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 07:52:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:af8a4b47-2b7d-40c3-b410-658ea3585b6e</guid><dc:creator>Giuseppe Palermo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Regarding the above mentioned file I find in .map file:&lt;/p&gt;

&lt;p&gt;
Execution Region RW_IRAM2 (Base: 0x20001000, Size: 0x00002a8c,
Max: 0x00005000, ABSOLUTE)&lt;/p&gt;

&lt;p&gt;
Base Addr Size Type Attr Idx E Section Name Object&lt;/p&gt;

&lt;p&gt;
0x20001000 0x00000018 Data RW 1225 .data emac_lpc17xx.o 0x20001018
0x00002a74 Zero RW 1223 .bss emac_lpc17xx.o&lt;/p&gt;

&lt;p&gt;
that is what I asked but with the exception of local variables (in
stack region I suppose).&lt;/p&gt;

&lt;p&gt;
I fear the task stacks locations are decided by some rtx module, I
try to explore in this direction.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GUI_CM3_L.lib and Network</title><link>https://community.arm.com/thread/120869?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 05:34:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:06dd9a59-5a79-4397-953b-88601f9ae264</guid><dc:creator>A Person</dc:creator><description>&lt;p&gt;&lt;p&gt;
does the map file give you any clues?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GUI_CM3_L.lib and Network</title><link>https://community.arm.com/thread/108909?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 03:02:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0f97353f-8e5b-4513-973f-ad76e1da699d</guid><dc:creator>Giuseppe Palermo</dc:creator><description>&lt;p&gt;&lt;p&gt;
So the main questions are:&lt;/p&gt;

&lt;p&gt;
- why local variables are allocated in ext RAM?&lt;/p&gt;

&lt;p&gt;
- how to put local variables in IRAM?&lt;/p&gt;

&lt;p&gt;
If someone has answers I will apreciate, thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GUI_CM3_L.lib and Network</title><link>https://community.arm.com/thread/83346?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2016 02:12:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0feb63c3-7ef5-41a1-9635-c7a506b874a0</guid><dc:creator>Giuseppe Palermo</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have gone deeper in the problem and it seems due to IAP
mechanism.&lt;br /&gt;
I have some local variables that are allocated always in external
memory even though I write in scatter file different
instructions.&lt;/p&gt;

&lt;p&gt;
For instance, taken from protected EMAC_LPC17xx.c file:&lt;/p&gt;

&lt;p&gt;
static int32_t Initialize (ARM_ETH_MAC_SignalEvent_t cb_event) {
uint32_t pb[2]; bool dev_175x;&lt;br /&gt;
#if defined (LPC177x_8x) uint32_t cfg_val;&lt;br /&gt;
#endif&lt;/p&gt;

&lt;p&gt;
if (emac.flags &amp;amp; EMAC_FLAG_INIT) { return ARM_DRIVER_OK; }&lt;/p&gt;

&lt;p&gt;
/* Read device ID with IAP */ pb[0] = 54; iap_entry (&amp;amp;pb[0],
&amp;amp;pb[0]);&lt;/p&gt;

&lt;p&gt;
After last instruction I fall in a memory/hardware fault becuase,
I think, pb is in external memory. I tried to write many different
solution in scatter file, for instance this one:&lt;/p&gt;

&lt;p&gt;
RW_IRAM2 0x20001000 0x00005000 { ; RW data EMAC_LPC17xx.o (+ZI
+RW) EMAC_LPC17xx.o (STACK) }&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GUI_CM3_L.lib and Network</title><link>https://community.arm.com/thread/65044?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 08:01:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:de83c5a0-7e1a-429b-a3aa-1ccfb221474e</guid><dc:creator>Giuseppe Palermo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry guys..., I was speaking about LPC178x/7x...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>