<?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: can only read/write 64 byte to SDRAM in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519369#M3127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Alex on Thu Oct 30 08:42:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The Opcode is used only during the mode set command. I set the IOCON register for P4.11 to 0x28 to make sure that it is used as GPIO. Also is the pulldown enabled to make sure it has the correct level.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:37:20 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:37:20Z</dc:date>
    <item>
      <title>can only read/write 64 byte to SDRAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519367#M3125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Alex on Thu Oct 30 05:58:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did a board design with a LPC1778 and an ISSI IS42S16100E SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately I missed to connect the correct bank address line to the SDRAM. I connected P4.11 of the LPC to A11 of the SDRAM but as it is the bank address I should have connected P4.13 instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I don't manage to get any data exchanged with the SDRAM. My question is if this is a result of the wrong bank address or if it is something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would expect that at least one bank is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached a source file with my initialization code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: My test code is able to write 64 byte to SDRAM and read it back. If I try to write more data, nothing is written. Does it only seem to be working due to buffering or is it working but there is a problem with row switching?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338020"&gt;board_lowlevel.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519367#M3125</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: can only read/write 64 byte to SDRAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519368#M3126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dbtayl on Thu Oct 30 08:39:02 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It says in the SDRAM datasheet of A11: "This signal becomes part of the OP CODE during mode register set command input."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe that's part of your issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:37:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519368#M3126</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: can only read/write 64 byte to SDRAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519369#M3127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Alex on Thu Oct 30 08:42:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The Opcode is used only during the mode set command. I set the IOCON register for P4.11 to 0x28 to make sure that it is used as GPIO. Also is the pulldown enabled to make sure it has the correct level.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519369#M3127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: can only read/write 64 byte to SDRAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519370#M3128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dbtayl on Sat Nov 01 07:21:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I should note that I really don't know what I'm talking about- I've never tried to use an external RAM module with a micro before, so I'm just throwing things out based on what I see in the datasheet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thoughts (see above if any of them are really dumb):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-You're observing the write-recovery period when trying to write to the RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-The RAM specifies 200/166/143 MHz operation. I assume you're going slower than that. Is that a problem? Or that's just the max frequency, so anything under that is OK (probably the latter, but hey)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-It looks like the RAS strobe has a higher latency than other timings- is that accounted for? Seems like it might jibe with the "64 bytes" part of your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Have you tried writing to a DIFFERENT 64-byte area of memory? Does that work OK?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Can you re-write and re-read the same 64 bytes (eg, write 0x333333..., read it back, write 0x555555.... to the same location, read it back)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Are you sending the RAM commends to set the parameters you assume (and/or they match the defaults)? Things like burst length, CAS latency, etc.?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope something there helps! If it's not some stupid little mistake, I don't know if I can help any more than that- you'll need somebody that knows what they're doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/can-only-read-write-64-byte-to-SDRAM/m-p/519370#M3128</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:37:20Z</dc:date>
    </item>
  </channel>
</rss>

