<?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>Classic/Legacy CodeWarrior中的主题 Getting value from a Pmem location</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Getting-value-from-a-Pmem-location/m-p/166987#M3085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Greetings people!&lt;/DIV&gt;&lt;DIV&gt;Question: How do I see what is in pmem location P:0xABCD?&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;I tried doing:&lt;/DIV&gt;&lt;DIV&gt;unsigned int ucMfrFileLen = *(__pmem unsigned int *)0xABCD;&lt;/DIV&gt;&lt;DIV&gt;but it doesnt compile. Im using&amp;nbsp; the CodeWarriro DSP C Compiler.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It should be something pretty simple but im just a beginner n pretty lost.&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help guys!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can do it the long way but was wondering if you had a better way:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;__pmem unsigned int * pCode;&lt;/DIV&gt;&lt;DIV&gt;unsigned int ucMfrTail;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;pCode = (__pmem unsigned int *)CVECT_PGM_TAIL;&lt;BR /&gt;&amp;nbsp;ucMfrTail = *pCode;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NeedHelp on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-06-23&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:27 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 03:15:25 GMT</pubDate>
    <dc:creator>NeedHelp</dc:creator>
    <dc:date>2008-06-24T03:15:25Z</dc:date>
    <item>
      <title>Getting value from a Pmem location</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Getting-value-from-a-Pmem-location/m-p/166987#M3085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Greetings people!&lt;/DIV&gt;&lt;DIV&gt;Question: How do I see what is in pmem location P:0xABCD?&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;I tried doing:&lt;/DIV&gt;&lt;DIV&gt;unsigned int ucMfrFileLen = *(__pmem unsigned int *)0xABCD;&lt;/DIV&gt;&lt;DIV&gt;but it doesnt compile. Im using&amp;nbsp; the CodeWarriro DSP C Compiler.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It should be something pretty simple but im just a beginner n pretty lost.&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help guys!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can do it the long way but was wondering if you had a better way:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;__pmem unsigned int * pCode;&lt;/DIV&gt;&lt;DIV&gt;unsigned int ucMfrTail;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;pCode = (__pmem unsigned int *)CVECT_PGM_TAIL;&lt;BR /&gt;&amp;nbsp;ucMfrTail = *pCode;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NeedHelp on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-06-23&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:27 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 03:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Getting-value-from-a-Pmem-location/m-p/166987#M3085</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-06-24T03:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting value from a Pmem location</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Getting-value-from-a-Pmem-location/m-p/166988#M3086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I performed several tests but I don't think we can write this declaration on 1 line.&lt;/DIV&gt;&lt;DIV&gt;I will check with the compiler team.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;according to my test you can write the following:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;unsigned int __pmem toto : 0xABCD;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;unsigned int *ucMfrFileLen = (unsigned int *)&amp;amp;toto; /* working */&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 15:46:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Getting-value-from-a-Pmem-location/m-p/166988#M3086</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-06-24T15:46:30Z</dc:date>
    </item>
  </channel>
</rss>

