<?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: LPC4337 SDRAM read/write works, but crashes at different addresses in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538422#M11677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that issue solved? It sounds like you're running into a problem which we have seen on the LQFP packages of the LPC4300 family. Please look into the error sheet, there is a description.&lt;/P&gt;&lt;P&gt;Subsequent writes at high speed could cause race conditions in the silicon, breaks (like the UART printout) relax this situation somehow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem does not exist for the BGA256 or BGA180 package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;NXP Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 14:32:23 GMT</pubDate>
    <dc:creator>bernhardfink</dc:creator>
    <dc:date>2016-10-19T14:32:23Z</dc:date>
    <item>
      <title>LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538416#M11671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a LONG struggle I am finally able to write and read from my external SDRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My verification function goes from 0x28000000 and up. I write start_address+i and verify this for each itteration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I can read/write 100 addresses with success every time. When I try 1000 WORDs it crashes 50% of the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could make my code crash in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538416#M11671</guid>
      <dc:creator>moller</dc:creator>
      <dc:date>2016-08-18T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538417#M11672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by crash? That can mean all sorts of things. Please say exactly what is going wrong? Maybe also post your code that is going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 19:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538417#M11672</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-08-18T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538418#M11673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right about that. I will try to elaborate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my main.c I run a test-rutine that writes to an SDRAM address, verifies this by reading and checking the value, and afterwards writes on the serial-port&lt;/P&gt;&lt;P&gt;"Addr 0x%08x, Data 0x%08x, Counter %d \r\n",pData,*pData,i"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case I should not read the right value I should get a:&lt;/P&gt;&lt;P&gt;"Error at address 0x%08x, Counter = %d",pData,i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running the program like this, the last thing i see on the serial monitor is:&lt;/P&gt;&lt;P&gt;"Addr 0x280000bc, Data 0x55555555, Counter 47"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Right now I am trying to write and access the first 1000 addresses (4kb), so when writing on the serial-port for each itteration it stops at the 48th write/read, but not because verification of data was not successful. Instead it just stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When trying to write a change in software to the internal flash it fails. I need to set a jumper that halts the processor before it "crashes" so I can re-upload new software to test any changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I can access any hardfault interrupt vectors (or any failure vectors) through the j-tag interface so&amp;nbsp; that I can see where in the program it crashes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is worth to mention that I have made a TestArray[1000] where I use the same verification function as for the SDRAM so test wether it was my test-function or SDRAM config that was making these crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to write data to the array, verify and serial-print the results, it does the same thing as for the SDRAM. NOW - when I do the same test but I disable my setupexternalmemory() function, it works fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried the SDRAM verification for the first 1000 addresses without serial-writing for each address. Before It would crash at the 48th itteration EVERY TIME. In this test I get a "sucess" around 50% af the times. The other 50% it crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems very strange so I am wondering what in my code makes this crash. I don't know what exactly is happening to the M4 core when it suddenly stops giving serial-data and I have a hard time re-uploading new code to the internal flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my project to this answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 07:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538418#M11673</guid>
      <dc:creator>moller</dc:creator>
      <dc:date>2016-08-19T07:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538419#M11674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FAQ &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630605"&gt;Debugging a Hard Fault&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 11:07:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538419#M11674</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-08-19T11:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538420#M11675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been looking at that. Sadly I am working in imIDE and not in LPCxpresso. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why it might crash? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 12:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538420#M11675</guid>
      <dc:creator>moller</dc:creator>
      <dc:date>2016-08-19T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538421#M11676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, I have never heard of mIDE, but if they are any good, they will provide instructions for debugging a hard fault.&amp;nbsp; Hard faults are normally caused by bad addresses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 15:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538421#M11676</guid>
      <dc:creator>avt</dc:creator>
      <dc:date>2016-08-19T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4337 SDRAM read/write works, but crashes at different addresses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538422#M11677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that issue solved? It sounds like you're running into a problem which we have seen on the LQFP packages of the LPC4300 family. Please look into the error sheet, there is a description.&lt;/P&gt;&lt;P&gt;Subsequent writes at high speed could cause race conditions in the silicon, breaks (like the UART printout) relax this situation somehow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem does not exist for the BGA256 or BGA180 package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;NXP Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4337-SDRAM-read-write-works-but-crashes-at-different/m-p/538422#M11677</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2016-10-19T14:32:23Z</dc:date>
    </item>
  </channel>
</rss>

