<?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>LPC MicrocontrollersのトピックRe: External SRAM data handling issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882621#M35325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check that I have created a small program in which I just read &amp;amp; write structure in SRAM. Still unable to read correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2019 10:51:49 GMT</pubDate>
    <dc:creator>priyankb</dc:creator>
    <dc:date>2019-04-10T10:51:49Z</dc:date>
    <item>
      <title>External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882617#M35321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am facing some trouble related to data handling in the external SRAM(Cypress) which is a 16-bit 1MB SRAM interfaced with LPC4088 using EMC.&lt;/P&gt;&lt;P&gt;I use many structures with mixed data types inside. So many times after writing to SRAM, I read garbage(improper) data. Has anyone ever came across such problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:13:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882617#M35321</guid>
      <dc:creator>priyankb</dc:creator>
      <dc:date>2019-04-05T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882618#M35322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share how you set the EMC module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 21:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882618#M35322</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-04-09T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882619#M35323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SRAM configuration I used is&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;STATIC const IP_EMC_STATIC_CONFIG_T SRAM_config = {
 1,
 EMC_STATIC_CONFIG_MEM_WIDTH_16 |
 EMC_STATIC_CONFIG_CS_POL_ACTIVE_LOW |
 EMC_STATIC_CONFIG_BLS_HIGH /* |
             EMC_CONFIG_BUFFER_ENABLE*/,
 EMC_NANOSECOND(35),
 EMC_NANOSECOND(5),
 EMC_NANOSECOND(45),
 EMC_NANOSECOND(0),
 EMC_NANOSECOND(45),
 EMC_CLOCK(0)

};‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="sram.jpg"&gt;&lt;IMG alt="sram.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/79258iB6B25563BB28FE58/image-size/large?v=v2&amp;amp;px=999" title="sram.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have attached the pin connection diagram as well. The only fault I see is that A0 of EMC(LPC4088) is connected to A0 of SRAM. Instead A1 of LPC4088 should be connected to A0 of SRAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882619#M35323</guid>
      <dc:creator>priyankb</dc:creator>
      <dc:date>2020-11-02T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882620#M35324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered that it could be you have a bug that is causing your code to overwrite the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882620#M35324</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-04-10T09:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882621#M35325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check that I have created a small program in which I just read &amp;amp; write structure in SRAM. Still unable to read correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882621#M35325</guid>
      <dc:creator>priyankb</dc:creator>
      <dc:date>2019-04-10T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882622#M35326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this information I think the problem could be in the layout, please check the next application note, there's some consideration you need to have in the layout of the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2582.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN2582.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also could try writting a location and after that reading this multiple times and comparing if its the same information, maybe some module around the memory is causing noise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 21:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882622#M35326</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-04-11T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: External SRAM data handling issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882623#M35327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the Application note you suggested. It is related to DDR RAM while I am using SDR RAM.&lt;/P&gt;&lt;P&gt;The second thing you asked to tryout is the data retention test. Data read is correct even when hundreds of times I read it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also came across an embedded board based on Atmel IC which uses the same SRAM as I am using &amp;amp; the only difference between that &amp;amp; mine is the address shift.&lt;/P&gt;&lt;P&gt;In their schematic: &lt;STRONG&gt;A1 of Atmel is connected to A0 of SRAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my case: &lt;STRONG&gt;A0 of LPC4088 is connected to A0 of SRAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching Atmel board's schematic for the reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I am trying to change this &amp;amp; see if that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Priyank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 13:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-SRAM-data-handling-issue/m-p/882623#M35327</guid>
      <dc:creator>priyankb</dc:creator>
      <dc:date>2019-04-12T13:07:17Z</dc:date>
    </item>
  </channel>
</rss>

