<?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 memory problems with RTX</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24931/external-memory-problems-with-rtx</link><description> 
Hello, 

 
Is there any tutorial / example or application note on using
External SRAM with EMC and RTX ? 

 
I&amp;#39;m using a LPC2378 and I have the RLARM library. The problem is
that I need 40kRAM to get my program working but there&amp;#39;s only 32kRAM
inside</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: External memory problems with RTX</title><link>https://community.arm.com/thread/125903?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2009 12:38:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a01e1e42-3e57-4762-9a05-fee4ec6f89bf</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank you for supplying the reason for your problem.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External memory problems with RTX</title><link>https://community.arm.com/thread/119013?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2009 05:20:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4f67e4a3-6e5b-48d4-b0ae-46350de90eb7</guid><dc:creator>Wim Witdouck</dc:creator><description>&lt;p&gt;&lt;p&gt;
OMG :x&lt;/p&gt;

&lt;p&gt;
I made a huge beginner mistake here.&lt;/p&gt;

&lt;p&gt;
I installed 64kbit RAM instead of 64kByte RAM.&lt;/p&gt;

&lt;p&gt;
Embarrising lol&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External memory problems with RTX</title><link>https://community.arm.com/thread/102010?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2009 03:11:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f0ba8e79-2e49-41aa-8bb5-7f21254c7e9e</guid><dc:creator>Wim Witdouck</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have this in my startupcode:&lt;/p&gt;

&lt;pre&gt;
;----------------------- External Memory Controller (EMC) Definitons -----------

EMC_BASE            EQU 0xFFE08000      ; EMC Base Address

EMC_CTRL_OFS        EQU 0x000           ; EMCControl
EMC_STAT_OFS        EQU 0x004           ; EMCStatus
EMC_CONFIG_OFS      EQU 0x008           ; EMCConfig
EMC_STA_CFG0_OFS    EQU 0x200           ; EMCStaticConfig0
EMC_STA_WWEN0_OFS   EQU 0x204           ; EMCStaticWaitWen0
EMC_STA_WOEN0_OFS   EQU 0x208           ; EMCStaticWaitOen0
EMC_STA_WRD0_OFS    EQU 0x20C           ; EMCStaticWaitRd0
EMC_STA_WPAGE0_OFS  EQU 0x210           ; EMCStaticWaitPage0
EMC_STA_WWR0_OFS    EQU 0x214           ; EMCStaticWaitWr0
EMC_STA_WTURN0_OFS  EQU 0x218           ; EMCStaticWaitTurn0
EMC_STA_CFG1_OFS    EQU 0x220           ; EMCStaticConfig1
EMC_STA_WWEN1_OFS   EQU 0x224           ; EMCStaticWaitWen1
EMC_STA_WOEN1_OFS   EQU 0x228           ; EMCStaticWaitOen1
EMC_STA_WRD1_OFS    EQU 0x22C           ; EMCStaticWaitRd1
EMC_STA_WPAGE1_OFS  EQU 0x230           ; EMCStaticWaitPage1
EMC_STA_WWR1_OFS    EQU 0x234           ; EMCStaticWaitWr1
EMC_STA_WTURN1_OFS  EQU 0x238           ; EMCStaticWaitTurn1
EMC_STA_EXT_W_OFS   EQU 0x880           ; EMCStaticExtendedWait

BUFEN_Const         EQU (1 &amp;lt;&amp;lt; 19)       ; Buffer enable bit
EMC_PCONP_Const     EQU (1 &amp;lt;&amp;lt; 11)       ; PCONP val to enable power for EMC

; External Memory Pins definitions
; pin functions for external memory interfacing
EMC_PINSEL6_Val     EQU 0x00005555      ; D0 .. D7
EMC_PINSEL8_Val     EQU 0x55555555      ; A0 .. A15
EMC_PINSEL9_Val     EQU 0x50090000;     ; !OE, !WE (BLS0 because of errata), !CS0, !CS1

;//     External Memory Controller Setup (EMC) ---------------------------------
;// &amp;lt;e&amp;gt; External Memory Controller Setup (EMC)
EMC_SETUP           EQU 1

EMC_CTRL_Val        EQU 0x00000001

EMC_CONFIG_Val      EQU 0x00000000


EMC_STACS0_SETUP    EQU 1

EMC_STA_CFG0_Val    EQU 0x00000000

EMC_STA_WWEN0_Val   EQU 0x00000009

EMC_STA_WOEN0_Val   EQU 0x0000000A

EMC_STA_WRD0_Val    EQU 0x0000001F

EMC_STA_WPAGE0_Val  EQU 0x0000001F

EMC_STA_WWR0_Val    EQU 0x0000001F

EMC_STA_WTURN0_Val  EQU 0x0000000F

EMC_STA_EXT_W_Val   EQU 0x00000013

&lt;/pre&gt;

&lt;p&gt;
and this in my task init()&lt;/p&gt;

&lt;pre&gt;
        PCONP |= (1 &amp;lt;&amp;lt; 11);
        PINSEL6 &amp;amp;= ~0x0003FFFF;
        PINSEL6 |= 0x00015555;
        PINSEL8 &amp;amp;= ~0xFFFFFFFF;
        PINSEL8 |= 0x55555555;
        PINSEL9 &amp;amp;= ~0xF00F0000;
        PINSEL9 |= 0x50090000;
&lt;/pre&gt;

&lt;p&gt;
I&amp;#39;m using &lt;a href="http://www.amictechnology.com/pdf/A623308.pdf"&gt;www.amictechnology.com/.../A623308.pdf&lt;/a&gt;
SRAM&lt;/p&gt;

&lt;p&gt;
I think the system crashes when it wants to write to the external
RAM.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External memory problems with RTX</title><link>https://community.arm.com/thread/90164?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2009 03:04:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b59c9a08-52e0-48f3-a79e-e689140ae80b</guid><dc:creator>Non Keil Related</dc:creator><description>&lt;p&gt;&lt;p&gt;
1 - Get your EMC working&lt;br /&gt;
2 - Configure the project to use the memory range covered by the
external RAM&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External memory problems with RTX</title><link>https://community.arm.com/thread/57387?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2009 02:26:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:480fe8f4-488d-4e46-85f8-03d403cf8aed</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
this is not an RTX problem - RTX can run with or without external
memory. check your EMC settings/RAM data sheet - they should not
change whether you use RTX or not.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>