<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cant initialize SDRAM with DCD in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475525#M20152</link>
    <description>&lt;P&gt;Hi, we have a custom board using an RT1020 connected to an SDRAM. The SDRAM is specifically the &lt;STRONG&gt;ISSI IS42S81600F&lt;SPAN&gt;-7TL&lt;/SPAN&gt;&lt;/STRONG&gt;. We ran the SDK example called "evkmimxrt1020_semc". The example was successfully executed with no error in all tests. We modified the values of the semc_sdram_config_t struct used to setting up the parameters for SEMC. We used the following values according to SDRAM datasheet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status_t BOARD_InitSEMC(void)
{
    semc_config_t config;
    semc_sdram_config_t sdramconfig;
    uint32_t clockFrq = EXAMPLE_SEMC_CLK_FREQ;

    /* Initializes the MAC configure structure to zero. */
    memset(&amp;amp;config, 0, sizeof(semc_config_t));
    memset(&amp;amp;sdramconfig, 0, sizeof(semc_sdram_config_t));

    /* Initialize SEMC. */
    SEMC_GetDefaultConfig(&amp;amp;config);
    config.dqsMode = kSEMC_Loopbackdqspad; /* For more accurate timing. */
    SEMC_Init(SEMC, &amp;amp;config);

    /* Configure SDRAM. */
    sdramconfig.csxPinMux           = kSEMC_MUXCSX0;
    sdramconfig.address             = 0x80000000;
    sdramconfig.memsize_kbytes      = 16 * 1024; /* 16MB = 16*1024*1KBytes*/
    sdramconfig.portSize            = kSEMC_PortSize8Bit;
    sdramconfig.burstLen            = kSEMC_Sdram_BurstLen1;
    sdramconfig.columnAddrBitNum    = kSEMC_SdramColunm_10bit;
    sdramconfig.casLatency          = kSEMC_LatencyTwo;
    sdramconfig.tPrecharge2Act_Ns   = 15; /* Trp 15ns */
    sdramconfig.tAct2ReadWrite_Ns   = 15; /* Trcd 15ns */
    sdramconfig.tRefreshRecovery_Ns = 67; /* Use the maximum of the (Trfc , Txsr). */
    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       = 37; /* Tras 37 */
    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;
    sdramconfig.refreshBurstLen        = 1;


    return SEMC_ConfigureSDRAM(SEMC, kSEMC_SDRAM_CS0, &amp;amp;sdramconfig, clockFrq);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The SDRAM seems to work OK at this point&lt;/STRONG&gt;.&amp;nbsp;Then, when we want to create a DCD for the ROM to initialize the SDRAM to use it as main memory (stack + heap + .data + .bss) we get a Hard Fault on startup (before main function). I attached the DCD we used. The following screenshot is the point before a Hard Fault is triggered&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183644i0BE9007C7ADEF7E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram2.png" alt="sdram2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "Memory" window when we write the value 0x11223344 at address 0x80_000_000 and initialize the SEMC inside the main function in ""evkmimxrt1020_semc"" example we see that it is written correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183645iAA7463D2688711D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram1.png" alt="sdram1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;When we do the same using DCD configuration we can clearly see that it is not written correctly. (Look at adress 0x80_000_000 in memory window)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183647i191BADDA6AA8535C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram3.png" alt="sdram3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have reviewed the DCD over and over again. Is there anything we are not considering?&lt;/P&gt;&lt;P&gt;Our problem seems to be to build a DCD according to the configuration we used in the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 21:11:59 GMT</pubDate>
    <dc:creator>gtalocchino</dc:creator>
    <dc:date>2022-06-20T21:11:59Z</dc:date>
    <item>
      <title>Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475525#M20152</link>
      <description>&lt;P&gt;Hi, we have a custom board using an RT1020 connected to an SDRAM. The SDRAM is specifically the &lt;STRONG&gt;ISSI IS42S81600F&lt;SPAN&gt;-7TL&lt;/SPAN&gt;&lt;/STRONG&gt;. We ran the SDK example called "evkmimxrt1020_semc". The example was successfully executed with no error in all tests. We modified the values of the semc_sdram_config_t struct used to setting up the parameters for SEMC. We used the following values according to SDRAM datasheet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status_t BOARD_InitSEMC(void)
{
    semc_config_t config;
    semc_sdram_config_t sdramconfig;
    uint32_t clockFrq = EXAMPLE_SEMC_CLK_FREQ;

    /* Initializes the MAC configure structure to zero. */
    memset(&amp;amp;config, 0, sizeof(semc_config_t));
    memset(&amp;amp;sdramconfig, 0, sizeof(semc_sdram_config_t));

    /* Initialize SEMC. */
    SEMC_GetDefaultConfig(&amp;amp;config);
    config.dqsMode = kSEMC_Loopbackdqspad; /* For more accurate timing. */
    SEMC_Init(SEMC, &amp;amp;config);

    /* Configure SDRAM. */
    sdramconfig.csxPinMux           = kSEMC_MUXCSX0;
    sdramconfig.address             = 0x80000000;
    sdramconfig.memsize_kbytes      = 16 * 1024; /* 16MB = 16*1024*1KBytes*/
    sdramconfig.portSize            = kSEMC_PortSize8Bit;
    sdramconfig.burstLen            = kSEMC_Sdram_BurstLen1;
    sdramconfig.columnAddrBitNum    = kSEMC_SdramColunm_10bit;
    sdramconfig.casLatency          = kSEMC_LatencyTwo;
    sdramconfig.tPrecharge2Act_Ns   = 15; /* Trp 15ns */
    sdramconfig.tAct2ReadWrite_Ns   = 15; /* Trcd 15ns */
    sdramconfig.tRefreshRecovery_Ns = 67; /* Use the maximum of the (Trfc , Txsr). */
    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       = 37; /* Tras 37 */
    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;
    sdramconfig.refreshBurstLen        = 1;


    return SEMC_ConfigureSDRAM(SEMC, kSEMC_SDRAM_CS0, &amp;amp;sdramconfig, clockFrq);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The SDRAM seems to work OK at this point&lt;/STRONG&gt;.&amp;nbsp;Then, when we want to create a DCD for the ROM to initialize the SDRAM to use it as main memory (stack + heap + .data + .bss) we get a Hard Fault on startup (before main function). I attached the DCD we used. The following screenshot is the point before a Hard Fault is triggered&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183644i0BE9007C7ADEF7E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram2.png" alt="sdram2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "Memory" window when we write the value 0x11223344 at address 0x80_000_000 and initialize the SEMC inside the main function in ""evkmimxrt1020_semc"" example we see that it is written correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183645iAA7463D2688711D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram1.png" alt="sdram1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;When we do the same using DCD configuration we can clearly see that it is not written correctly. (Look at adress 0x80_000_000 in memory window)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdram3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183647i191BADDA6AA8535C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdram3.png" alt="sdram3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have reviewed the DCD over and over again. Is there anything we are not considering?&lt;/P&gt;&lt;P&gt;Our problem seems to be to build a DCD according to the configuration we used in the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 21:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475525#M20152</guid>
      <dc:creator>gtalocchino</dc:creator>
      <dc:date>2022-06-20T21:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475635#M20155</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Firstly, I'd like to know whether you ever modify the DCD to fit the SDRAM on the custom board, next, please use the hello_world demo for testing, as this demo default uses the SDRAM as the primary RAM, which means you almost don't need to change the memory configuration and MPU setting.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 02:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475635#M20155</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-17T02:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475661#M20156</link>
      <description>&lt;P&gt;Hi Jeremy, thank you for your response. We have tried the hello world example you mentioned. We get the same error. In the first image you can see that the Hard Fault occurs when running pop {r4, pc}. If you look at the memory window at the bottom right you can see that the stack pointer retrieves from memory a value for the PC that is not in the valid range of the FLASH. This implies that the previous push operations failed (SEMC is not writing the memory properly).&lt;/P&gt;&lt;P&gt;And yes, we have modified the DCD to configure the registers BR0, IOCR, SDRAM0, SDRAM1, SDRAM2, SDRAM3, IPCR1, IPCR2, etc... according to the configuration required by SDRAM datasheet tested successfully with "evkmimxrt1020_semc" example. You can check this in the dcd.c I attached.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 03:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1475661#M20156</guid>
      <dc:creator>gtalocchino</dc:creator>
      <dc:date>2022-06-17T03:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1476519#M20178</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;It seems a bit weird, whether you can upload the whole project.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 06:21:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1476519#M20178</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-20T06:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1476977#M20192</link>
      <description>&lt;P&gt;Hi Jeremy, I attached the project as you required.&amp;nbsp;What does it mean that it looks &lt;SPAN&gt;weird&lt;/SPAN&gt;? Could you be more specific?&lt;BR /&gt;&lt;BR /&gt;Just to be clear our problem is that we cannot generate a DCD from the configuration parameters we use in the &lt;STRONG&gt;status_t BOARD_InitSEMC(void)&lt;/STRONG&gt; function I posted above. The only difference is that our SDRAM has an 8-bit&amp;nbsp;data I/O bus (supported by SEMC) and 10-bit column address (supported by SEMC) and some timing parameters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 21:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1476977#M20192</guid>
      <dc:creator>gtalocchino</dc:creator>
      <dc:date>2022-06-20T21:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1477300#M20199</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1）What does it mean that it looks weird? Could you be more specific?&lt;BR /&gt;-- According to your previous testing, the SDRAM hardware connection seems to be good, meanwhile, you also adjust the original DCD to fit the SDRAM chip on the custom board.&lt;BR /&gt;After that, the SDRAM could be initialized well via the DCD.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 08:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1477300#M20199</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-21T08:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1477439#M20203</link>
      <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That answer was not helpful.&amp;nbsp;It is an empty answer.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1477439#M20203</guid>
      <dc:creator>gtalocchino</dc:creator>
      <dc:date>2022-06-21T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1478005#M20213</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198928"&gt;@gtalocchino&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Please upload the schematic too.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 08:08:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1478005#M20213</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-22T08:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1478953#M20248</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198928"&gt;@gtalocchino&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The&amp;nbsp;sdramconfig.refreshPeriod_nsPerRow set in&amp;nbsp;BOARD_InitSEMC() function you provided should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;sdramconfig.refreshPeriod_nsPerRow = 64 * 1000000 / 4096; /* 64ms/4096 */ .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Since the&amp;nbsp;&amp;nbsp;number of rows is 4096 in the type of chip you provide.&amp;nbsp;So dcd.c should also be changed accordingly.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tongtong Zhai&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 09:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1478953#M20248</guid>
      <dc:creator>tongtong_zhai</dc:creator>
      <dc:date>2022-06-23T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1479749#M20262</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198928"&gt;@gtalocchino&lt;/a&gt;&amp;nbsp;again,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Since the&amp;nbsp;&lt;STRONG&gt;CAS Latency&lt;/STRONG&gt; you set is 2. So the &lt;STRONG&gt;mode register&lt;/STRONG&gt; should be &lt;STRONG&gt;0x20&lt;/STRONG&gt; in the dcd.c file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* #7.1, command: write_value, address: SEMC_IPTXDAT, value: 0x20, size: 4 */&lt;BR /&gt;0x40, 0x2F, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x20,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; So in your dcd.c file the &lt;STRONG&gt;SEMC_SDRAMCR3&lt;/STRONG&gt; register and&amp;nbsp;&lt;STRONG&gt;SEMC_IPCMD&lt;/STRONG&gt; register should be changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; You can try it and re-upload your dcd.c file if it still doesn't work.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tongtong Zhai&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 09:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1479749#M20262</guid>
      <dc:creator>tongtong_zhai</dc:creator>
      <dc:date>2022-06-24T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cant initialize SDRAM with DCD</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1479848#M20267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/156442"&gt;@tongtong_zhai&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes, that was the problem! Changing the value set in IPTXDAT from 0x30 to 0x20 (due to CAS latency = 2 selected) solved the problem. Now it works correctly. We modified also the DCD according to the number of rows of our SDRAM is 4096.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 12:50:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Cant-initialize-SDRAM-with-DCD/m-p/1479848#M20267</guid>
      <dc:creator>gtalocchino</dc:creator>
      <dc:date>2022-06-24T12:50:14Z</dc:date>
    </item>
  </channel>
</rss>

