Skip to main content
Visitor II
May 15, 2007
Question

EMI Access

  • May 15, 2007
  • 3 replies
  • 704 views
Posted on May 15, 2007 at 08:58

EMI Access

    This topic has been closed for replies.

    3 replies

    truf9Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:41

    Hello,

    how can I define a variable which should be located in external RAM.

    Best regards

    Thomas

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:41

    Try:

    int * MemSrcAddressA = (int *)0x3C000000; // Ext. Mem CS0

    *MemSrcAddressA = 42;

    truf9Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:41

    Hello,

    now I know how to initialise, read and write data from an external RAM.

    In the Keil-uVision you have to tell the linker the address of the external ram. Than you can assign an C-source to RAM1, which is located at [0x2C000000-0x2C07FFFF].

    Regards

    Thomas