Hello Alice,
Implemented the given solution and the issue resolved. Now i have allocated it to the internal memory and verified the same and it is working.
Now need to check with the SDRAM allocation. But before that i was checking the SDRAM interface and while check that i found that the data is not getting written properly . i have written the test code for the same.
I have attached the test code for reference, Also check the below code used for initialization of SDRAM.
static const IP_EMC_DYN_CONFIG_T AS4C4M16SA_CI_Config =
{
EMC_NANOSECOND(64000000 / 4096), /* Row refresh time (RefreshPeriod)*/
0x01, /* Dynamic Memory Read Configuration*/
EMC_NANOSECOND(18), //18 /*!< Precharge Command Period */
EMC_NANOSECOND(42), //42 /*!< Active to Precharge Command Period */
EMC_NANOSECOND(70), //70 /*!< Self Refresh Exit Time */
EMC_CLOCK(1), /*!< Last Data Out to Active Time */
EMC_CLOCK(5), /*!< Data In to Active Command Time */
EMC_NANOSECOND(12), /*!< Write Recovery Time */
EMC_NANOSECOND(60), //60 /*!< Active to Active Command Period */
EMC_NANOSECOND(60), //60 /*!< Auto-refresh Period */
EMC_NANOSECOND(70), //70 /*!< Exit Self Refresh */
EMC_NANOSECOND(12), //12 /*!< Active Bank A to Active Bank B Time */
EMC_CLOCK(2), /*!< Load Mode register command to Active Command */
{
{ /*!< Device Configuration array with SDRAM Mode register*/
EMC_ADDRESS_DYCS0, /* Base Register*/
3, /* RAS */
/* Mode Register value*/
EMC_DYN_MODE_WBMODE_PROGRAMMED |
EMC_DYN_MODE_OPMODE_STANDARD |
EMC_DYN_MODE_CAS_3 |
EMC_DYN_MODE_BURST_TYPE_SEQUENTIAL |
EMC_DYN_MODE_BURST_LEN_8,
/* Device Config [0]*/
EMC_DYN_CONFIG_DATA_BUS_16 |
EMC_DYN_CONFIG_LPSDRAM |
EMC_DYN_CONFIG_4Mx16_4BANKS_12ROWS_8COLS |
EMC_DYN_CONFIG_MD_SDRAM
},
{0, 0, 0, 0}, /* Device Config [1]*/
{0, 0, 0, 0}, /* Device Config [2]*/
{0, 0, 0, 0} /* Device Config [3]*/
}
};
The problem observed is that the data assigned is getting corrupt. the test code is getting the failed. I am using "AS4C4M16SA-6TIN" for our development purpose.
Please check the code and let us know if any modification required.
BR,
Gaurav More