<?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>LPCXpresso IDE中的主题 Re: const uint32_t div = 1000; NOT WORKING</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566811#M18628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by robertrau on Mon Dec 31 14:10:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After messing with my simple LED test I decided to see if one of the examples behaved correctly. I built &amp;amp; debugged adc_semihosting. Much to my surprise my scope showed the LED oscillating at a 10ms period, what a coincidence! Well, I clicked pause and 'step into' several times to see it executing two assignments over and over.....looks like at the same addresses as my while look in my led test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As best as I can tell, LPCXpresso is (sometimes, or some projects) going through the motions of programming FLASH without actually doing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mac OS X 10.7.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Version: LPCXpresso v5.0.14 [Build 1063] [2012-12-19]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:25:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:25:44Z</dc:date>
    <item>
      <title>const uint32_t div = 1000; NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566809#M18626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by robertrau on Mon Dec 31 13:20:53 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this simple function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__INLINE static void DelayMS(uint32_t dlyTicks)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t curTicks = msTicks;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint32_t div = 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( (msTicks - curTicks)/div &amp;lt; dlyTicks);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But div is 10 when I debug. I have set a break point at the while and inspected div as will as let the program run and&amp;nbsp; then inspected div, it is always 10!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a simple project showing this behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566809#M18626</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: const uint32_t div = 1000; NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566810#M18627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon Dec 31 13:53:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoint at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; while( (msTicks - curTicks)/div &amp;lt; dlyTicks);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;shows correct div value with LPCXpresso v5.0.14 [Build 1109] in Debug mode here :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566810#M18627</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: const uint32_t div = 1000; NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566811#M18628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by robertrau on Mon Dec 31 14:10:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After messing with my simple LED test I decided to see if one of the examples behaved correctly. I built &amp;amp; debugged adc_semihosting. Much to my surprise my scope showed the LED oscillating at a 10ms period, what a coincidence! Well, I clicked pause and 'step into' several times to see it executing two assignments over and over.....looks like at the same addresses as my while look in my led test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As best as I can tell, LPCXpresso is (sometimes, or some projects) going through the motions of programming FLASH without actually doing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mac OS X 10.7.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Version: LPCXpresso v5.0.14 [Build 1063] [2012-12-19]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-uint32-t-div-1000-NOT-WORKING/m-p/566811#M18628</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:25:44Z</dc:date>
    </item>
  </channel>
</rss>

