<?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 Re: Generating DDR2 init code for TWR - K70F120M in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453304#M26953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The function &lt;SPAN lang="EN-US"&gt; &lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;&lt;EM&gt;twr_ddr2_script_init()&lt;/EM&gt; &lt;/STRONG&gt;I am referring to can be found inside the sdram.c.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The reference code which contains the sdram.c can be downloaded here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;Parent_nodeId=1326817898002720905982&amp;amp;Parent_pageType=product" title="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;Parent_nodeId=1326817898002720905982&amp;amp;Parent_pageType=product"&gt;Kinetis 120MHz bare metal sample code&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 06:50:03 GMT</pubDate>
    <dc:creator>tomaszvaldman</dc:creator>
    <dc:date>2015-10-19T06:50:03Z</dc:date>
    <item>
      <title>Generating DDR2 init code for TWR - K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453302#M26951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;We have a design based on the reference code from TWR - K70F120M board. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Now I need to adjust the values in the &lt;SPAN lang="EN-US"&gt; &lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;&lt;EM&gt;twr_ddr2_script_init()&lt;/EM&gt; &lt;/STRONG&gt;function because we switched to another DDR2 ram.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 12pt;"&gt;It seems that the Freescale tool: &lt;STRONG&gt;&lt;EM&gt;Kinetis K70 DDR Init Tool&lt;/EM&gt; &lt;/STRONG&gt;has been used to generate the init code, but when trying out the sample input files (*.mem) it did not nearly generate the same register init values as the reference code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 12pt;"&gt;How is the &lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;&lt;EM&gt;twr_ddr2_script_init()&lt;/EM&gt; &lt;/STRONG&gt;function in the TWR reference code created, by hand or by a tool ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 12pt;"&gt;&lt;SPAN lang="EN-US"&gt;If it was created with the &lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;&lt;EM&gt;Kinetis K70 DDR Init Tool, &lt;/EM&gt;&lt;/STRONG&gt;w&lt;/SPAN&gt;hat mem file where used ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif;"&gt;-Tomasz Valdman&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 06:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453302#M26951</guid>
      <dc:creator>tomaszvaldman</dc:creator>
      <dc:date>2015-10-12T06:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generating DDR2 init code for TWR - K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453303#M26952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomasz Valdman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which reference code you're referring to? Would you please help to specify it? Thanks for your patience!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 03:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453303#M26952</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-10-19T03:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generating DDR2 init code for TWR - K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453304#M26953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The function &lt;SPAN lang="EN-US"&gt; &lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;&lt;EM&gt;twr_ddr2_script_init()&lt;/EM&gt; &lt;/STRONG&gt;I am referring to can be found inside the sdram.c.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The reference code which contains the sdram.c can be downloaded here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;Parent_nodeId=1326817898002720905982&amp;amp;Parent_pageType=product" title="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&amp;amp;location=null&amp;amp;Parent_nodeId=1326817898002720905982&amp;amp;Parent_pageType=product"&gt;Kinetis 120MHz bare metal sample code&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 06:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453304#M26953</guid>
      <dc:creator>tomaszvaldman</dc:creator>
      <dc:date>2015-10-19T06:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generating DDR2 init code for TWR - K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453305#M26954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomasz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the ver 1.11.1? Actually there are some changes from 1.0, you may find details in ReleaseNotes.txt as below:&lt;/P&gt;&lt;P&gt;Revision 1.11-1 - Update drive strength from FULL to half for all .mem files.&lt;/P&gt;&lt;P&gt;Revision 1.11 - Update for CW script. Remove clkendly, clkdisdly, cmddly of DDR_CR57, phyupdresp of DDR_CR54, ctrlupdmx of DDR_CR53,&lt;/P&gt;&lt;P&gt;&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; dllradly, dllrstdly of DDR_CR51&lt;/P&gt;&lt;P&gt;Revision 1.0 - Initial release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the driver code in sdram.c might be old code, maybe even older than 1.0, so there are some difference from the current version. If you are using the same DDR2 device as TWR-K70, you may use the mem file of "MT47H64M16.mem" in the folder of "C:\Freescale\Kinetis K70 DDR Init Tool\K70Memctrl\Memory Devices\DDR2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 07:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-DDR2-init-code-for-TWR-K70F120M/m-p/453305#M26954</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-10-19T07:31:55Z</dc:date>
    </item>
  </channel>
</rss>

