<?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 LPC4357-EVB + SDRAM in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-EVB-SDRAM/m-p/589437#M21928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hekutoc on Fri Nov 08 06:52:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have: &lt;/SPAN&gt;&lt;A href="http://http://www.element14.com/community/docs/DOC-51065/l/nxp-lpc4357-evb-development-kit" rel="nofollow noopener noreferrer" target="_blank"&gt;LPC4357-EVB dev board&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/lpcopen-platform" rel="nofollow noopener noreferrer" target="_blank"&gt;LPCOpen 1.03&lt;/A&gt;&lt;SPAN&gt; and IAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CPU Frequency - 204MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EMC - divider by 2&amp;nbsp; so frequency is 102MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have problems with EMC execution in pair with SDRAM (MT48L16M16A2 -75).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have launched some samples, based on 1.01, where EMC works fine (so there is no hardware problems). After init all register values are equal. Difference only in&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://http://i.imgur.com/TVszAwx.png" rel="nofollow noopener noreferrer" target="_blank"&gt;MODE&lt;/A&gt;&lt;SPAN&gt; recording to SDRAM. But changing shifts to any side (even same, as was in 1.01) doesn't solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still having bery interestig symthomes, that I can't decrypt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Writing - OK&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FnhgATiJ.png%5B%2Fimg%5D" rel="nofollow noopener noreferrer" target="_blank"&gt;http://i.imgur.com/nhgATiJ.png[/img]&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reading - strange values&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FdhbGB7a.png%5B%2Fimg%5D" rel="nofollow noopener noreferrer" target="_blank"&gt;http://i.imgur.com/dhbGB7a.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have few questions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) (writing of MODE register) Why it differs and what shift is needed for? Why is it associated with col_num?&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
//SDRAM_ADDR_BASE = DynAddr = 0x28 000 000
//v1.01&amp;nbsp; here comment says 4 burst, but&amp;nbsp; ... |3 ... means 8 burst.
temp = *((volatile uint32_t *)(SDRAM_ADDR_BASE | (3&amp;lt;&amp;lt;4| 3)&amp;lt;&amp;lt;11)); /* 4 burst, 3 CAS latency */
//v1.03 here ModeRegister=51 Col_len=8 or 9
temp = *((volatile uint32_t *) (DynAddr | (ModeRegister &amp;lt;&amp;lt; Col_len)));
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;2) What should i cange to make everything work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:13:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:13:15Z</dc:date>
    <item>
      <title>LPC4357-EVB + SDRAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-EVB-SDRAM/m-p/589437#M21928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by hekutoc on Fri Nov 08 06:52:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have: &lt;/SPAN&gt;&lt;A href="http://http://www.element14.com/community/docs/DOC-51065/l/nxp-lpc4357-evb-development-kit" rel="nofollow noopener noreferrer" target="_blank"&gt;LPC4357-EVB dev board&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/lpcopen-platform" rel="nofollow noopener noreferrer" target="_blank"&gt;LPCOpen 1.03&lt;/A&gt;&lt;SPAN&gt; and IAR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CPU Frequency - 204MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EMC - divider by 2&amp;nbsp; so frequency is 102MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have problems with EMC execution in pair with SDRAM (MT48L16M16A2 -75).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have launched some samples, based on 1.01, where EMC works fine (so there is no hardware problems). After init all register values are equal. Difference only in&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://http://i.imgur.com/TVszAwx.png" rel="nofollow noopener noreferrer" target="_blank"&gt;MODE&lt;/A&gt;&lt;SPAN&gt; recording to SDRAM. But changing shifts to any side (even same, as was in 1.01) doesn't solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still having bery interestig symthomes, that I can't decrypt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Writing - OK&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FnhgATiJ.png%5B%2Fimg%5D" rel="nofollow noopener noreferrer" target="_blank"&gt;http://i.imgur.com/nhgATiJ.png[/img]&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Reading - strange values&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FdhbGB7a.png%5B%2Fimg%5D" rel="nofollow noopener noreferrer" target="_blank"&gt;http://i.imgur.com/dhbGB7a.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have few questions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) (writing of MODE register) Why it differs and what shift is needed for? Why is it associated with col_num?&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
//SDRAM_ADDR_BASE = DynAddr = 0x28 000 000
//v1.01&amp;nbsp; here comment says 4 burst, but&amp;nbsp; ... |3 ... means 8 burst.
temp = *((volatile uint32_t *)(SDRAM_ADDR_BASE | (3&amp;lt;&amp;lt;4| 3)&amp;lt;&amp;lt;11)); /* 4 burst, 3 CAS latency */
//v1.03 here ModeRegister=51 Col_len=8 or 9
temp = *((volatile uint32_t *) (DynAddr | (ModeRegister &amp;lt;&amp;lt; Col_len)));
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;2) What should i cange to make everything work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-EVB-SDRAM/m-p/589437#M21928</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:13:15Z</dc:date>
    </item>
  </channel>
</rss>

