<?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 Add pointer in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541166#M7302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Wed Jul 21 00:42:14 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso with LPC1758&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this sample code (0x00078000&amp;nbsp; + 0x00007F00 = 0x0007FF00):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; uint32_t *pnt, *a;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pnt = (uint32_t *)SECTOR_29_START;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; a = (uint32_t *) (pnt + 0x00007F00);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end of this two line in debug the variable have this inccorect value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t * "pnt" = 0x00078000&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t * "a" = 0x00097c00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do&amp;nbsp; the calculation? ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:55:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:55:51Z</dc:date>
    <item>
      <title>Add pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541166#M7302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Wed Jul 21 00:42:14 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso with LPC1758&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this sample code (0x00078000&amp;nbsp; + 0x00007F00 = 0x0007FF00):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; uint32_t *pnt, *a;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pnt = (uint32_t *)SECTOR_29_START;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; a = (uint32_t *) (pnt + 0x00007F00);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end of this two line in debug the variable have this inccorect value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t * "pnt" = 0x00078000&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t * "a" = 0x00097c00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do&amp;nbsp; the calculation? ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&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-338256"&gt;1100554_New%20Text%20Document.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541166#M7302</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541167#M7303</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 Wed Jul 21 02:23:55 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The code you have written is incrementing pnt by (0x7f00 * sizeof(*pnt)), that is 4*0x7f00 = 0x1fc00. This is standard C pointer arithmetic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541167#M7303</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541168#M7304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Wed Jul 21 05:09:56 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;The code you have written is incrementing pnt by (0x7f00 * sizeof(*pnt)), that is 4*0x7f00 = 0x1fc00. This is standard C pointer arithmetic.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:55:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Add-pointer/m-p/541168#M7304</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:55:53Z</dc:date>
    </item>
  </channel>
</rss>

