<?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のトピックRe: Accessing hard coded memory locations using C</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150218#M2016</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;We don't support the same syntax.&lt;/DIV&gt;&lt;DIV&gt;See below extract of the 56800x_Build_Tools_Reference.pdf manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Specifying Variable Addresses in C&lt;BR /&gt;The user can tell the compiler to specify the address of a variable in a C file using the :&lt;BR /&gt;operator. The constant value following the : operator is the word address of the global&lt;BR /&gt;variable (i.e., int OneReg : 0xBCD ; specifies that the global variable OneReg&lt;BR /&gt;resides at word address 0xBCD).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this will help you&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 19:15:26 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2008-04-25T19:15:26Z</dc:date>
    <item>
      <title>Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150217#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Background:&lt;/DIV&gt;&lt;DIV&gt;The bootloader and OS are sharing the same UART and the OS needs to access some variables defined in the UART section of the bootloader.&lt;/DIV&gt;&lt;DIV&gt;Using the Keil compiler all I had to do was:&lt;/DIV&gt;&lt;DIV&gt;On the BL side:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;unsigned int x _at_ SOME_HARD_CODED_VECTOR;&lt;/DIV&gt;On the OS side:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;unsigned int x _at_ SOME_HARD_CODED_VECTOR;&lt;/DIV&gt;&lt;DIV&gt;and both would essentially refer to the same address location.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, code warrior doesnt support the _at_ keyword. How do I go about doing this in code warrior?&lt;/DIV&gt;&lt;DIV&gt;Basically&amp;nbsp;how do I:&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp;Define&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;int x;&lt;/DIV&gt;&lt;DIV&gt;int * y;&lt;/DIV&gt;&lt;DIV&gt;In the bootloader?&lt;/DIV&gt;&lt;DIV&gt;2. In such a way that I&amp;nbsp;also have access to it from the OS? What would the code be in the OS side?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help! The datasheet shows accessing memory locations in assembly using P:$xxxx and D:$xxxx but how do I do it in C?&lt;/DIV&gt;&lt;DIV&gt;Thanks a bunch!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 02:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150217#M2015</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-04-25T02:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150218#M2016</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;We don't support the same syntax.&lt;/DIV&gt;&lt;DIV&gt;See below extract of the 56800x_Build_Tools_Reference.pdf manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Specifying Variable Addresses in C&lt;BR /&gt;The user can tell the compiler to specify the address of a variable in a C file using the :&lt;BR /&gt;operator. The constant value following the : operator is the word address of the global&lt;BR /&gt;variable (i.e., int OneReg : 0xBCD ; specifies that the global variable OneReg&lt;BR /&gt;resides at word address 0xBCD).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this will help you&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 19:15:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150218#M2016</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-04-25T19:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150219#M2017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks a bunch! And thank god its friday!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 21:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150219#M2017</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-04-25T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150220#M2018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi there!&lt;BR /&gt;I have&amp;nbsp;yet another&amp;nbsp;question:&lt;BR /&gt;How do I declare a "generic" pointer in codewarrior?&lt;BR /&gt;For example:&lt;BR /&gt;How should I declare&lt;BR /&gt;&lt;FONT color="#FF3300"&gt;unsigned int *&amp;nbsp;pTxData;&lt;BR /&gt;&lt;/FONT&gt;So that I can use it to point to data memory as well as program memory? Bare with me....&lt;/P&gt;&lt;P&gt;I have a macro:&lt;BR /&gt;#define&amp;nbsp;&amp;nbsp;mPktSend(_cmd, _pdata, _size)&amp;nbsp;{uTxCmd = _cmd; &lt;FONT color="#FF3333"&gt;pTxData&lt;/FONT&gt; = _pdata; uTxCnt = _size;}&lt;BR /&gt;&lt;BR /&gt;I want to be able to use this macro to send data both from data and program memory locations.&lt;BR /&gt;mPktSend(0x00, uPktTxBuf, 1); //uPktTxBuf is in data memory. Right now this works just fine.&lt;/P&gt;&lt;P&gt;And at the same time be able to use it as:&lt;BR /&gt;mPktSend(0x02, &lt;FONT color="#FF0033"&gt;(__pmem&lt;/FONT&gt; unsigned int *)(uPrgmAddr), 16); //send 16 bytes from program memory location beginning in uPrgmAddr - declared as unsigned int uPrgmAddr;&lt;BR /&gt;Right now this gives me an error. Doesnt like the fact I am sending a __pmem location to the macro.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 00:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150220#M2018</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-04-26T00:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150221#M2019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;For this request I think it should be better we use the CRM system.&lt;/DIV&gt;&lt;DIV&gt;Please use Freescale on line support web page.&lt;BR /&gt;&amp;nbsp; - Go to following URL: &lt;A href="http://www.freescale.com/TechSupport" rel="nofollow" target="_blank"&gt;http://www.freescale.com/TechSupport&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; - Click on Submit a Service Request to create a new one or Manage Existing Service Request.&lt;BR /&gt;&amp;nbsp; - You will come to a login page.&lt;BR /&gt;&amp;nbsp; - You can submit your request through the web from there or view the activities of a SR.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;In the Service Request can you please provide us some information:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;details about the Tool version used.&lt;BR /&gt;To do that you must:&lt;BR /&gt;* CW:&lt;BR /&gt;Start the IDE and click on Help | About Metrowerks CodeWarrior.&lt;BR /&gt;Click on Installed Products&amp;nbsp;&lt;BR /&gt;Provide us all info displayed.&lt;BR /&gt;Or you can save them in a txt file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you please provide us your example reproducing the issue ?&lt;/DIV&gt;&lt;DIV&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>Mon, 28 Apr 2008 14:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150221#M2019</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-04-28T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing hard coded memory locations using C</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150222#M2020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the suggestion. I have done what you had told me to.&lt;/DIV&gt;&lt;DIV&gt;G'day.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 22:14:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Accessing-hard-coded-memory-locations-using-C/m-p/150222#M2020</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-04-28T22:14:11Z</dc:date>
    </item>
  </channel>
</rss>

