<?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 Debugger displays incorrect Timer0 values in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-displays-incorrect-Timer0-values/m-p/572388#M20973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ian Stroud on Tue Mar 22 05:41:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project running on the LPC1768 on lpcxpresso 3.6.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In trying to debug Timer0 interrupts I noticed that the reported values for MR0, MR1, MR2 and MR3 were not as I expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They should have been written as 101 (decimal) but were being displayed as 0x41. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the assembler and the correct values were being written to Timer0 but the debug display was wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then, via the debugger, manually set one of the MR registers to 100. When I pressed enter the display shows 0x40, not 0x64 as I would expect. Curiously 64 as decimal is 0x40. Clearly I can't trust anything the debugger tells me about the contents of Timer 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Directly view the Timer via a memory pane shows the MR0-3 locations to have the correct values as programmed / manually entered it is just the Timer0 register display that gets them wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:30:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:30:32Z</dc:date>
    <item>
      <title>Debugger displays incorrect Timer0 values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-displays-incorrect-Timer0-values/m-p/572388#M20973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ian Stroud on Tue Mar 22 05:41:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project running on the LPC1768 on lpcxpresso 3.6.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In trying to debug Timer0 interrupts I noticed that the reported values for MR0, MR1, MR2 and MR3 were not as I expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They should have been written as 101 (decimal) but were being displayed as 0x41. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the assembler and the correct values were being written to Timer0 but the debug display was wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then, via the debugger, manually set one of the MR registers to 100. When I pressed enter the display shows 0x40, not 0x64 as I would expect. Curiously 64 as decimal is 0x40. Clearly I can't trust anything the debugger tells me about the contents of Timer 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Directly view the Timer via a memory pane shows the MR0-3 locations to have the correct values as programmed / manually entered it is just the Timer0 register display that gets them wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:30:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-displays-incorrect-Timer0-values/m-p/572388#M20973</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger displays incorrect Timer0 values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-displays-incorrect-Timer0-values/m-p/572389#M20974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Mar 22 06:42:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is a new chip description file that corrects the display of these registers. Unzip the attachment and use it to replace &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nxp_lpcxxxx_peripheral.xme&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the &amp;lt;install&amp;gt;/bin directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We will also fix this issue in the next LPCXpresso release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:30:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debugger-displays-incorrect-Timer0-values/m-p/572389#M20974</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:30:33Z</dc:date>
    </item>
  </channel>
</rss>

