<?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のトピックRe: Relocatable Assembly Problem</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204617#M17014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, i guess i posted the wrong MAIN_.asm file as i was trying to declare&lt;BR /&gt;TMRF equ 1&lt;BR /&gt;TPM1SC ds 1&lt;BR /&gt;in MAIN_.asm after failing to write into TPM1SC which i declared in S08_TPM1_tmr.asm&lt;BR /&gt;&amp;amp; I've checked thru TMP1SC has not been used in any other files.&lt;BR /&gt;Please find the project files as attached.&lt;BR /&gt;I'm using AW60 MCU.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;REgards,&lt;BR /&gt;MY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/12606_aw60_rp4880v3_0.zip" rel="nofollow" target="_self"&gt;AW60_RP4880v3_0.zip&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-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:00 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2008 00:39:06 GMT</pubDate>
    <dc:creator>mylim</dc:creator>
    <dc:date>2008-11-25T00:39:06Z</dc:date>
    <item>
      <title>Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204613#M17010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm trying to set a self defined flag in my extended file but I can't read/write the status of the flag in my main.asm file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My flag is define in the relocatable file .asm &amp;amp; export it in .inc file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I include the .inc file in my main.asm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the 3 files for your reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use DS 1 byte for TPM1SR &amp;amp; TMRF as constant EQU $00.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried BSET TMRF,TPM1SR in S08_TPM1_tmr.asm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then I did a BRSET condition in MAIN_.asm I could get the condition set in S08_TPM1_tmr.asm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MY&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by mingyee on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-11-23&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:20 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2008 14:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204613#M17010</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2008-11-23T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204614#M17011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;You have in your code the variable&lt;/DIV&gt;&lt;DIV&gt;TPMSR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/DIV&gt;&lt;DIV&gt;this name is used by the procedure MCUinit() that you are calling.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So change the name to&lt;/DIV&gt;&lt;DIV&gt;TPMSRA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/DIV&gt;&lt;DIV&gt;and at the following&lt;/DIV&gt;&lt;DIV&gt;chkled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; brset&amp;nbsp; TRMF1,TPMSRA,chkled1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bra&amp;nbsp;&amp;nbsp;&amp;nbsp; chkledz&lt;BR /&gt;chkled1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bclr&amp;nbsp;&amp;nbsp; TRMF1,TPMSRA&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;and the code assembles correctly.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 18:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204614#M17011</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2008-11-24T18:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204615#M17012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Ake,&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;Actually, I'm intending to use the TPM1SR globally, shared among the MAIN_.asm &amp;amp; S08_TPM1_tmr.asm.&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;MY&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 19:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204615#M17012</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2008-11-24T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204616#M17013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello MY,&lt;BR /&gt;&lt;BR /&gt;You do not say which MCU type you are using, but is is possible that the register TPM1SR may already be defined by the file derivative.inc (or the .inc file that it includes).&amp;nbsp; If you need a RAM register to handle flags of your own creation, it will require to have a different name, as suggested by Ake.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mac&lt;BR /&gt;&lt;SPAN class="time_text"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2008-11-25&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:20 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 23:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204616#M17013</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-11-24T23:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204617#M17014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, i guess i posted the wrong MAIN_.asm file as i was trying to declare&lt;BR /&gt;TMRF equ 1&lt;BR /&gt;TPM1SC ds 1&lt;BR /&gt;in MAIN_.asm after failing to write into TPM1SC which i declared in S08_TPM1_tmr.asm&lt;BR /&gt;&amp;amp; I've checked thru TMP1SC has not been used in any other files.&lt;BR /&gt;Please find the project files as attached.&lt;BR /&gt;I'm using AW60 MCU.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;REgards,&lt;BR /&gt;MY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/12606_aw60_rp4880v3_0.zip" rel="nofollow" target="_self"&gt;AW60_RP4880v3_0.zip&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-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:00 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 00:39:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204617#M17014</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2008-11-25T00:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204618#M17015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello MY,&lt;BR /&gt;&lt;BR /&gt;You will see that the derivative.inc file includes the CW file MC9S08AW60.inc.&amp;nbsp; This latter file already defines the symbol TPM1SC as a hardware register, the status and control register for TPM1.&amp;nbsp; You cannot use the same name for a RAM register, where both definitions are visible to a particular file.&lt;BR /&gt;&lt;BR /&gt;It is best to keep well clear of the standard register names for the MCU to avoid such conflicts.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mac&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 08:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204618#M17015</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-11-25T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204619#M17016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Bigmac,&lt;BR /&gt;My mistake, actually i'm declaring it as TPM1SR instead of TPM1SC.&lt;BR /&gt;**bleep**.. I must be so blur that I'm almost blind.&lt;BR /&gt;Sorry for the confusion.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;MY&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 08:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204619#M17016</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2008-11-25T08:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable Assembly Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204620#M17017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello MY,&lt;BR /&gt;&lt;BR /&gt;The following seems to explain the reason for your previous problem -&lt;BR /&gt;&lt;BR /&gt;Near the top of the MAIN_.asm file you have included the file S08_TPM1_tmr.inc.&amp;nbsp; This latter file provides a conditional XREF to the label TPM1SR, to indicated that the definition for the label will be found elswhere (not within the current MAIN_.asm file).&amp;nbsp; If you then define the label as a zero page variable, this represents the conflict that you have observed.&lt;BR /&gt;&lt;BR /&gt;If you wish to define the variable within MAIN_.asm,. but still provide the conditional XREF within S08_TPM1_tmr.inc (for use by other files), perhaps XDEF the label prior to the INCLUDE directive.&lt;BR /&gt;&lt;BR /&gt;File: MAIN_.asm:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; XDEF&amp;nbsp; TPM1SR&lt;BR /&gt;&amp;nbsp; INCLUDE "S08_TPM1_tmr.inc"&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; MY_ZEROPAGE: SECTION SHORT&lt;BR /&gt;TPM1SR&amp;nbsp;&amp;nbsp; ds&amp;nbsp; 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; ...&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;File: S08_TPM1_tmr.inc:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; IFNDEF TPM1SR&lt;BR /&gt;&amp;nbsp; XREF&amp;nbsp;&amp;nbsp; TPM1SR&lt;BR /&gt;&amp;nbsp; ENDIF&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; ...&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mac&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 11:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-Assembly-Problem/m-p/204620#M17017</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-11-27T11:44:10Z</dc:date>
    </item>
  </channel>
</rss>

