<?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>8-bit MicrocontrollersのトピックMC68HC908JB16 Codewarrior question</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131357#M2720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am using the MC68HC908JB16JDW via a USB connection and it allows ICP. But I'm not used to using Codewarrior and I need to know how to memory map my C code that I write in Codewarrior to a proper memory location, so that it doesnt overwrite the ICP determination code which I must install in a separate write operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it even possible to make sure that the code you write goes to a specific memory location or at least redirect the vectors so that the vectors points to the right location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated. I posted earlier in the 16 bit section, but Peg recommended to move to 8 bit section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2006 06:25:31 GMT</pubDate>
    <dc:creator>mo</dc:creator>
    <dc:date>2006-04-05T06:25:31Z</dc:date>
    <item>
      <title>MC68HC908JB16 Codewarrior question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131357#M2720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am using the MC68HC908JB16JDW via a USB connection and it allows ICP. But I'm not used to using Codewarrior and I need to know how to memory map my C code that I write in Codewarrior to a proper memory location, so that it doesnt overwrite the ICP determination code which I must install in a separate write operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it even possible to make sure that the code you write goes to a specific memory location or at least redirect the vectors so that the vectors points to the right location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated. I posted earlier in the 16 bit section, but Peg recommended to move to 8 bit section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 06:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131357#M2720</guid>
      <dc:creator>mo</dc:creator>
      <dc:date>2006-04-05T06:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: MC68HC908JB16 Codewarrior question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131358#M2721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hello Mo,&lt;/P&gt;&lt;P&gt;yep, absolutely...&lt;/P&gt;&lt;P&gt;you can map your application at any location you want. Please check out the chapter dealing with 'Pragmas' in the compiler manual.&lt;/P&gt;&lt;P&gt;Here is a small (simple,&amp;nbsp;basic and rough&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;) example:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Subject:&lt;/U&gt; let's place the function dummy() at addres 0xC000 and main() as well as dummy2()&amp;nbsp;at 0xD000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In your C file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG MYCODE&lt;/P&gt;&lt;P&gt;void dummy()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG DEFAULT&lt;/P&gt;&lt;P&gt;void main ()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void dummy2()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In your PRM file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MY_CODE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp; 0xC000 TO 0xCFFF;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;OTHER_CODE &amp;nbsp;= READ_ONLY&amp;nbsp; 0xD000 TO 0xFFFF;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;...&lt;BR /&gt;END&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;PLACEMENT&lt;BR /&gt;...&lt;BR /&gt;&amp;nbsp;DEFAULT_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; OTHER_CODE;&lt;BR /&gt;&amp;nbsp;MYCODE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; MY_CODE;&lt;BR /&gt;...&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;There are some more detailed examples of PRM files in the linker manual, but that's basically the way it should work &lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Blackwolf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 18:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131358#M2721</guid>
      <dc:creator>Blackwolf</dc:creator>
      <dc:date>2006-04-05T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: MC68HC908JB16 Codewarrior question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131359#M2722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;cool thanks blackwolf&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 21:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC68HC908JB16-Codewarrior-question/m-p/131359#M2722</guid>
      <dc:creator>mo</dc:creator>
      <dc:date>2006-04-05T21:43:05Z</dc:date>
    </item>
  </channel>
</rss>

