imxrt1021 sdram initialization parameter

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxrt1021 sdram initialization parameter

595 Views
mollygqs
Contributor II

Our IMXRT1021 PCB board, SDRAM cannot read and write. Sdram is the default SDK initialization parameter. What is the way to test the SDRAM clock, and then modify the initial SDRAM clock. Sdram is is42s16160.

sdramconfig.csxPinMux = kSEMC_MUXCSX0;
sdramconfig.address = 0x80000000;
sdramconfig.memsize_kbytes = 32 * 1024; /* 32MB = 32*1024*1KBytes*/
sdramconfig.portSize = kSEMC_PortSize16Bit;
sdramconfig.burstLen = kSEMC_Sdram_BurstLen1;
sdramconfig.columnAddrBitNum = kSEMC_SdramColunm_9bit;
sdramconfig.casLatency = kSEMC_LatencyThree;
sdramconfig.tPrecharge2Act_Ns = 18; /* Trp 18ns */
sdramconfig.tAct2ReadWrite_Ns = 18; /* Trcd 18ns */
sdramconfig.tRefreshRecovery_Ns = (60 + 67);
sdramconfig.tWriteRecovery_Ns = 12; /* 12ns */
sdramconfig.tCkeOff_Ns =
42; /* The minimum cycle of SDRAM CLK off state. CKE is off in self refresh at a minimum period tRAS.*/
sdramconfig.tAct2Prechage_Ns = 42; /* Tras 42ns */
sdramconfig.tSelfRefRecovery_Ns = 67;
sdramconfig.tRefresh2Refresh_Ns = 60;
sdramconfig.tAct2Act_Ns = 60;
sdramconfig.tPrescalePeriod_Ns = 160 * (1000000000 / clockFrq);
sdramconfig.refreshPeriod_nsPerRow = 64 * 1000000 / 8192; /* 64ms/8192 */
sdramconfig.refreshUrgThreshold = sdramconfig.refreshPeriod_nsPerRow;

0 Kudos
3 Replies

582 Views
mollygqs
Contributor II

I used this (\driver_examples\semc) test and it also failed to read the SDRAM without reading any data. May I ask what other debugging means?

0 Kudos

575 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) May I ask what other debugging means?
-- From my experience, I'd highly recommend you to check the hardware via reviewing the schematic and using the oscilloscope firstly, especially, on the condition that all custom boards have this kind of issue.
Next, you can try the tool as the post introduce to do some test for SDRAM.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

585 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Maybe you can use evkmimxrt1020_semc directly for testing, as the MIMXRT1020 also uses the IS42S16160.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos