<?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>CodeWarrior for MCUのトピックRe: CW10.2  movec, illegal use of inline function</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254383#M9770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Apr 2013 06:45:34 GMT</pubDate>
    <dc:creator>austintexas</dc:creator>
    <dc:date>2013-04-07T06:45:34Z</dc:date>
    <item>
      <title>CW10.2  movec, illegal use of inline function</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254381#M9768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works when I use my CW6.3 tools.&amp;nbsp; My XP machine has died and now I must get the project working under CW10.2.&amp;nbsp; I'm getting "illegal use of asm inline function errors whenever I try to write to the VBR register.&amp;nbsp; My target is a Coldfire V2 MCF5213.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void init_exceptions(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #0x20000000,d0&lt;/P&gt;&lt;P&gt;&lt;SPAN aria-label="Alert" class="emoticon_alert emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; .long&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4e7b0801&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // movec d0, VBR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I've tried changing the last assembly instruction, but the result is the same.&lt;/P&gt;&lt;P&gt;movec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d0, 0x0801,&lt;/P&gt;&lt;P&gt;movec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d0, VBR&lt;/P&gt;&lt;P&gt;movec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A0, VBR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 03:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254381#M9768</guid>
      <dc:creator>austintexas</dc:creator>
      <dc:date>2013-04-07T03:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: CW10.2  movec, illegal use of inline function</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254382#M9769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dc.l&amp;nbsp;&amp;nbsp; 0x4e7b0801 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build twice to get rid of the error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 06:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254382#M9769</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-04-07T06:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: CW10.2  movec, illegal use of inline function</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254383#M9770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 06:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-2-movec-illegal-use-of-inline-function/m-p/254383#M9770</guid>
      <dc:creator>austintexas</dc:creator>
      <dc:date>2013-04-07T06:45:34Z</dc:date>
    </item>
  </channel>
</rss>

