<?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: Problem executing from SDRAM when running at 204Mhz (Hitex Eval board)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571964#M18489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Wed Oct 17 12:11:41 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can now confirm my fear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your changes doesn't remove the problem, it just moves the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the location of the functions the problem occurs again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the modified files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:58:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:58:01Z</dc:date>
    <item>
      <title>Problem executing from SDRAM when running at 204Mhz (Hitex Eval board)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571961#M18486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Wed Oct 10 05:45:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have for some time been trying to run my application from SDRAM with the LPC4350 core running at 204MHhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it kept going into hard fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have now been able to isolate what triggers the problem and build a little example that shows the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that memory writes sometimes goes to incorrect addresses (wrong bank/row).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My example is based on the BOOTFAST example from the PDL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a description of what the program does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program contains a couple of function located at different location in SDRAM. (It seems like that the functions must be located in different banks to trigger the problem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main function is do_test() that calls the other functions and validates that a certain address in SDRAM hasn't been changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;func2(): returns a pointer that points to the address 0x28235E54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;func1(): Calls func2() and writes to the returned address (the value 17).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do_test() writes a value to address 0x28605654, and then calls func2()/func1() in a loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The data at address 0x28605654 should never change, but suddenly the address contains 17.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the error is detected do_test() stops at an infinite loop. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The loopCount variable can then be inspected to see how many times the loop has runned before the overwrite occured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tools I have used is Keil uVision V4.23.00.0 and a ULink Pro debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem seems to be related to the temperature of the SDRAM chip. If I cool down the SDRAM the problem disappears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested it on 3 different Hitex boards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 2 boards fails at normal room temperature, but the thirds only fails when the SDRAM is heated up (About 10-20 degress).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the example project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;BR /&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-338125"&gt;SDRAM_Execute_204Mhz.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571961#M18486</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing from SDRAM when running at 204Mhz (Hitex Eval board)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571962#M18487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Oct 16 07:18:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Lars,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked your code and I was able to reproduce the problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At 192MHz everything worked fine, but at 204MHz there were errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I corrected the EMC settings and the SDRAM initialization so that it fits better to the SDRAM type on the Hitex board. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached project can be unzipped into the existing release and will overwrite some files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you still see problems please come back to us, don't waste your time for something which we should correct ;-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to learn more about SDRAM in combination with our controller please download the following app note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan10935-using-sdrddr-sdram-memories-lpc32xx" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an10935-using-sdrddr-sdram-memories-lpc32xx&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Technical Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:57:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571962#M18487</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing from SDRAM when running at 204Mhz (Hitex Eval board)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571963#M18488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Tue Oct 16 07:54:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry but I don't think this solves the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that you have changed the address mapping mode from (Bank, Row, Column) to (Row, Bank, Column)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you do this the functions must be placed on different addresses to trig the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this because my original application actully uses this addressing mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I havn't testet it yet, but tomorrow I will try to move the functions to the other addresses and see what happens. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you would like to modifiy the example yourself you can see the other addresses below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address high performance mode: 0x2800AC94&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bank = 0x2, row = 0x015, column = 0x094&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address normal mode: 0x28402A94&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Address high performance mode: 0x2800BA00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bank = 0x1, row = 0x017, column = 0x000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address normal mode: 0x28202E00&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Address high performance mode: 0x28015EEC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bank = 0x3, row = 0x02B, column = 0x0EC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address normal mode: 0x286056EC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Address high performance mode: 0x28015E54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bank = 0x3, row = 0x02B, column = 0x054&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address normal mode: 0x28605654&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Address high performance mode: 0x280D7A54&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bank = 0x1, row = 0x1AF, column = 0x054&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address normal mode: 0x28235E54&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571963#M18488</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing from SDRAM when running at 204Mhz (Hitex Eval board)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571964#M18489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larsjep on Wed Oct 17 12:11:41 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can now confirm my fear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your changes doesn't remove the problem, it just moves the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the location of the functions the problem occurs again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the modified files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Lars&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-executing-from-SDRAM-when-running-at-204Mhz-Hitex-Eval/m-p/571964#M18489</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:01Z</dc:date>
    </item>
  </channel>
</rss>

