<?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 #pragma use in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151400#M2118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Dear all,&lt;BR /&gt;I still do not understand how to use variable(s) declared using the #pragma DATA_SEG syntax. You are dealing with a novince programmer - needless to say -&amp;nbsp;so please bare with me and my questions!&lt;/DIV&gt;&lt;DIV&gt;1. I want to store a bunch of variables in data memory&amp;nbsp;inside my bootloader code&amp;nbsp;like a int *, int [], char etc. at memory location(s) ALPHA, BETA, THETA.. etc (for argument sake lets assume these addresses are valid).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My&amp;nbsp; bootloader&amp;nbsp;invokes my RTOS code ( In Keil I simply do: ((void (code *) (void)) CVECT_BOOT)(); - the bootloader transfers control over to the RTOS residing at address location CVECT_BOOT&amp;nbsp;-&amp;nbsp;Still need to figure how to do this in CW but thats another question Ill be bothering you later with). Once inside my RTOS how do I access those same variables&amp;nbsp;declared&amp;nbsp;and defined in my bootloader? For this I am assuming I need to know the "physical" address location and not the "name" of my data segment?&lt;/DIV&gt;&lt;DIV&gt;2. What would I do if I needed to do the same thing but this time my information is in program memory and not in data memory? I want to share my&amp;nbsp;decode and encode array for manchester&amp;nbsp;encoding in program memory. &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Since my foundation is so shaky I would appreciate if you could suggest some books/notes as well.&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;DIV&gt;NeedHelp&amp;nbsp;- no kiddin!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 05:38:48 GMT</pubDate>
    <dc:creator>NeedHelp</dc:creator>
    <dc:date>2008-04-29T05:38:48Z</dc:date>
    <item>
      <title>#pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151400#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Dear all,&lt;BR /&gt;I still do not understand how to use variable(s) declared using the #pragma DATA_SEG syntax. You are dealing with a novince programmer - needless to say -&amp;nbsp;so please bare with me and my questions!&lt;/DIV&gt;&lt;DIV&gt;1. I want to store a bunch of variables in data memory&amp;nbsp;inside my bootloader code&amp;nbsp;like a int *, int [], char etc. at memory location(s) ALPHA, BETA, THETA.. etc (for argument sake lets assume these addresses are valid).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My&amp;nbsp; bootloader&amp;nbsp;invokes my RTOS code ( In Keil I simply do: ((void (code *) (void)) CVECT_BOOT)(); - the bootloader transfers control over to the RTOS residing at address location CVECT_BOOT&amp;nbsp;-&amp;nbsp;Still need to figure how to do this in CW but thats another question Ill be bothering you later with). Once inside my RTOS how do I access those same variables&amp;nbsp;declared&amp;nbsp;and defined in my bootloader? For this I am assuming I need to know the "physical" address location and not the "name" of my data segment?&lt;/DIV&gt;&lt;DIV&gt;2. What would I do if I needed to do the same thing but this time my information is in program memory and not in data memory? I want to share my&amp;nbsp;decode and encode array for manchester&amp;nbsp;encoding in program memory. &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Since my foundation is so shaky I would appreciate if you could suggest some books/notes as well.&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;DIV&gt;NeedHelp&amp;nbsp;- no kiddin!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 05:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151400#M2118</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-04-29T05:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151401#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'm assuming that you're using CodeWarrior for HC08.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to the Compiler Manual (Using the Compiler -&amp;gt; Compiler Pragmas section). It has good information on #pragma DATA_SEG.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Mandeep&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 14:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151401#M2119</guid>
      <dc:creator>ubhims</dc:creator>
      <dc:date>2008-04-29T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151402#M2120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Metroweks Codewarrior and my target is a 8014. I have attached my Installed Pluggins file. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CWDSPCOMM/959_Installed_Plugins1.txt" rel="nofollow" target="_self"&gt;Installed_Plugins1.txt&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-15&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;05:47 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 01:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151402#M2120</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-05-06T01:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151403#M2121</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;you have paosted another question how to put variable at specific address.&lt;/DIV&gt;&lt;DIV&gt;It seems to be the same isn't it ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 16:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151403#M2121</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-05-06T16:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151404#M2122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;yes thank you now i know how to use the pragma notation. sorry bout multiple posts this is my first time using online help.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 22:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151404#M2122</guid>
      <dc:creator>NeedHelp</dc:creator>
      <dc:date>2008-05-07T22:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: #pragma use</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151405#M2123</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;Thanks for the feedback&lt;/DIV&gt;&lt;DIV&gt;Don't hesitate to contact us&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 14:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/pragma-use/m-p/151405#M2123</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-05-08T14:10:41Z</dc:date>
    </item>
  </channel>
</rss>

