This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Accessing SRAM using EMIF

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

I'm trying to interface an Static RAM using the EMIF signals. We are using CS3_n, So EMIF ASYNC2 is enabled in the halcogen. In the halcogen "EMIF ASYNC2" screen it is observed  there is no setting for configuring  SRAM. How to enable Static RAM on EMIF.

  • Can you see some parameters named NOR_ALE_MUX, NOR_GBA_MUX etc?

  • No. Can you mention in which part/section where i can find those parameters.

  • Hi Spoorthi,

    By default, EMIF ASYNC can be connected to the SRAM

     .

    just keep it unchecked the above "NOR Flash ", and you can just configure the other parameters as per the slave device you are using.

    Once you configured the parameters you can just access the address space between the 0x6400 0000 to 0x6800 0000 to access the SRAM connected to the CS3_n.

    --

    Thanks & regards,
    Jagadish.

  • Thank you for the response. I am able to probe all signals related to emif but i am unable to see the data in the memory window. 

    #include "HL_emif.h"
    uint16 i;
    #define SRAM_ADDR1 0x64000000
    typedef unsigned short UINT16;
    
    #include "HL_sys_common.h"
    #include "HL_nmpu.h"
    
    
    int main(void)
      {
    
    
         bool    bPass = true;
         unsigned int  uReadBack1,uReadBack2,uReadBack3,uReadBack4,uReadBack5,uReadBack6;
         unsigned int *uAddr = SRAM_ADDR1;
         unsigned int uData[8];
         unsigned int *Addr;
         unsigned int DATA = 0xAAAA;
    
    
        uReadBack1 = 0xFFFF;
        _cacheDisable_();
        _mpuInit_();
        _mpuEnable_();
    
        emif_ASYNC2Init();
        for(i=0; i<50000; i++)
        {
    
        }
        while(1)
        {
            Addr = 0x64000000;
            *Addr = (0xABCD);
          
            uReadBack1 = *Addr;
        
    
        }
    
    
    }
    

  • Hi Spoorthi,

    Can you just disable the cache and see, if it was already enabled?

    --

    Thanks & regards,
    Jagadish.