<?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 Enable LCD corrupts SDRAM data? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-LCD-corrupts-SDRAM-data/m-p/524431#M7067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tjoAG on Thu Jun 07 06:10:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a strange things with my platform. It makes no sense!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EMC is setup and I can read and write to the SDRAM. For that I have created a small SDRAM test program, that also runs various RAM tests to verify it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add code enabling the LCD controller I start seeing strange things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have located the frame buffer in the SDRAM from address 0xA000 0000 to 0xA002 6000. This area is reserved and not used by code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The rest of the SDRAM is used for code and is run from that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The power up sequence after all register and GPIO are setup is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Power-up sequence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_LCD-&amp;gt;CTRL |= (1 &amp;lt;&amp;lt; LCDEN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;millisecond_delay(100);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_LCD-&amp;gt;CTRL |= (1 &amp;lt;&amp;lt; LCDPWR);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing this, resulting in data in the frame buffer (and else where in my SDRAM) changes every time I step through code after this??? Also seen on the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is verified by using the "view memory" function in KEIL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing these 3 lines, and nothing changes in the frame buffer when stepping thorugh the code!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But of course, nothing is shown on the display&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it sounds strange!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:09:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:09:07Z</dc:date>
    <item>
      <title>Enable LCD corrupts SDRAM data?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-LCD-corrupts-SDRAM-data/m-p/524431#M7067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tjoAG on Thu Jun 07 06:10:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a strange things with my platform. It makes no sense!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EMC is setup and I can read and write to the SDRAM. For that I have created a small SDRAM test program, that also runs various RAM tests to verify it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add code enabling the LCD controller I start seeing strange things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have located the frame buffer in the SDRAM from address 0xA000 0000 to 0xA002 6000. This area is reserved and not used by code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The rest of the SDRAM is used for code and is run from that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The power up sequence after all register and GPIO are setup is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Power-up sequence&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_LCD-&amp;gt;CTRL |= (1 &amp;lt;&amp;lt; LCDEN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;millisecond_delay(100);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_LCD-&amp;gt;CTRL |= (1 &amp;lt;&amp;lt; LCDPWR);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/br&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing this, resulting in data in the frame buffer (and else where in my SDRAM) changes every time I step through code after this??? Also seen on the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is verified by using the "view memory" function in KEIL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Removing these 3 lines, and nothing changes in the frame buffer when stepping thorugh the code!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But of course, nothing is shown on the display&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it sounds strange!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enable-LCD-corrupts-SDRAM-data/m-p/524431#M7067</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:09:07Z</dc:date>
    </item>
  </channel>
</rss>

