<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックCW for ColdFire 6.4, target MCF5307, conversion problem MBAR to register *</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138240#M2027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following statement that does not compile:&lt;/P&gt;&lt;P&gt;volatile register MCF5307_IMM *imm = &amp;amp;__MBAR;&lt;/P&gt;&lt;P&gt;Where : ___MBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;= ADDR(sim); defined in lcf file.&lt;/P&gt;&lt;P&gt;The error states: Error&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;illegal implicit conversion from 'unsigned long *' to&lt;BR /&gt;'volatile MCF5307_IMM *'&lt;BR /&gt;led.c line 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile register MCF5307_IMM *imm = &amp;amp;__MBAR;&lt;/P&gt;&lt;P&gt;Any idea why it does not compile?&lt;/P&gt;&lt;P&gt;As long as it's register, it should not have a problem.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 01:58:02 GMT</pubDate>
    <dc:creator>Veter</dc:creator>
    <dc:date>2007-06-26T01:58:02Z</dc:date>
    <item>
      <title>CW for ColdFire 6.4, target MCF5307, conversion problem MBAR to register *</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138240#M2027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following statement that does not compile:&lt;/P&gt;&lt;P&gt;volatile register MCF5307_IMM *imm = &amp;amp;__MBAR;&lt;/P&gt;&lt;P&gt;Where : ___MBAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;= ADDR(sim); defined in lcf file.&lt;/P&gt;&lt;P&gt;The error states: Error&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;illegal implicit conversion from 'unsigned long *' to&lt;BR /&gt;'volatile MCF5307_IMM *'&lt;BR /&gt;led.c line 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile register MCF5307_IMM *imm = &amp;amp;__MBAR;&lt;/P&gt;&lt;P&gt;Any idea why it does not compile?&lt;/P&gt;&lt;P&gt;As long as it's register, it should not have a problem.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 01:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138240#M2027</guid>
      <dc:creator>Veter</dc:creator>
      <dc:date>2007-06-26T01:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: CW for ColdFire 6.4, target MCF5307, conversion problem MBAR to register *</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138241#M2028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Veter&lt;BR /&gt;&lt;BR /&gt;I don't know the answer and I don't work with the configuration files as they are supplied - so please forgive me if I am off track.&lt;BR /&gt;Are you however sure that it is a problem with register and not just that a cast is missing?&lt;BR /&gt;1. the definition of ___MBAR in the lcf shouldn't have anything to do with the compiler. It is only used when linking. __MBAR is defined elsewhere and I think as extern uint8 __MBAR[]; (? not sure though?)&lt;BR /&gt;2. If the above is true &amp;amp;__MBAR may be a source of problem since this doesn't have an address - the address is either __MBAR; or &amp;amp;__MBAR[0].&lt;BR /&gt;3. Possible the above is off-track because I don't understand why it would say "illegal implicit conversion from 'unsigned long *' to" since it looks as though the compiler understands it as pointer to unsigned long.&lt;BR /&gt;4. Have you tried casing:&lt;BR /&gt;volatile register MCF5307_IMM *imm = (MCF5307_IMM *)&amp;amp;__MBAR;&lt;BR /&gt;or something like this?&lt;BR /&gt;&lt;BR /&gt;As I said - please ignore if the comments are way off.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark Butcher&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 05:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138241#M2028</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2007-06-26T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: CW for ColdFire 6.4, target MCF5307, conversion problem MBAR to register *</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138242#M2029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I resulved it by defining __MBAR in the include.h as:&lt;/DIV&gt;&lt;DIV&gt;extern MCF5307_IMM __MBAR;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The reference to the MBAR in the sources looks like:&lt;/DIV&gt;&lt;DIV&gt;volatile register MCF5307_IMM *imm = &amp;amp;__MBAR;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This solved casting problem and type comparibility of the register.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 02:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/CW-for-ColdFire-6-4-target-MCF5307-conversion-problem-MBAR-to/m-p/138242#M2029</guid>
      <dc:creator>Veter</dc:creator>
      <dc:date>2007-07-06T02:48:17Z</dc:date>
    </item>
  </channel>
</rss>

