<?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: lpcopen v2.10 lpc17xx EMC driver, not working with optimalization</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcopen-v2-10-lpc17xx-EMC-driver-not-working-with-optimalization/m-p/575950#M19337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Sun Feb 08 06:00:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if "i" is declared volatile, the compiler is allowed to delete the empty loop if "i" is not global visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even worse: the 0,,,999 loop may execute in less than 100us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only valid solution is to to implement the udelay() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Every programmer using a for() loop for delays should be beaten.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:17:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:17:07Z</dc:date>
    <item>
      <title>lpcopen v2.10 lpc17xx EMC driver, not working with optimalization</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcopen-v2-10-lpc17xx-EMC-driver-not-working-with-optimalization/m-p/575949#M19336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wella-tabor on Fri Feb 06 01:39:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;during the SDRAM initialization, code in the lpcopen emc driver is behaving faulty after the optimization flags are turned on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is caused by the "i" variable. This is not declared as volatile and the compiler deletes the useless! loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/*FIXME: if Timer driver is ready, it should replace below "for" delay technic */
for (i = 0; i &amp;lt; 1000; i++) {/* wait 100us */
}
pEMC-&amp;gt;DYNAMICCONTROL&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x00000183;/* Issue NOP command */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcopen-v2-10-lpc17xx-EMC-driver-not-working-with-optimalization/m-p/575949#M19336</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: lpcopen v2.10 lpc17xx EMC driver, not working with optimalization</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcopen-v2-10-lpc17xx-EMC-driver-not-working-with-optimalization/m-p/575950#M19337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Sun Feb 08 06:00:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if "i" is declared volatile, the compiler is allowed to delete the empty loop if "i" is not global visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even worse: the 0,,,999 loop may execute in less than 100us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only valid solution is to to implement the udelay() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Every programmer using a for() loop for delays should be beaten.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcopen-v2-10-lpc17xx-EMC-driver-not-working-with-optimalization/m-p/575950#M19337</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:07Z</dc:date>
    </item>
  </channel>
</rss>

