<?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 Re: Code not compiled with CW5.7 and HCS08GT32 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154098#M3853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I investigated this ServiceRequest&amp;nbsp;- everything works fine. There is BSR instruction at the beginning of mentioned function. Just disable compiler optimization ( -O0 ) and the code will be at the place you are looking for it.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 14:17:07 GMT</pubDate>
    <dc:creator>Phoenix</dc:creator>
    <dc:date>2007-10-11T14:17:07Z</dc:date>
    <item>
      <title>Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154091#M3846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using CodeWarrior V5.7 to compile some code for the HCs08GT32 microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I have is the next :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some C code,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#if EY_FAMILY || AP_FAMILY if ( MASS_ERASE_EN )&amp;nbsp;&amp;nbsp; fl_mass_erase();#endif&amp;nbsp; INF_LOOP:&amp;nbsp; {&amp;nbsp; STOP_FLTIM();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* stop rx timeout timer */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fl_data.fl_str.length = 0xFF-3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chks = 0;&amp;nbsp; byte_cnt = 0;&amp;nbsp; RESET_SCI_RX_FLAGS();&amp;nbsp; /* reset of SCI rx flag */&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;and because the result waited does not work I looked the LST file,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp; 546:&amp;nbsp; #if EY_FAMILY || AP_FAMILY&amp;nbsp; 547:&amp;nbsp;&amp;nbsp; if ( MASS_ERASE_EN )&amp;nbsp; 548:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fl_mass_erase();&amp;nbsp; 549:&amp;nbsp; #endif&amp;nbsp; 550:&amp;nbsp;&amp;nbsp;&amp;nbsp; 551:&amp;nbsp;&amp;nbsp;&amp;nbsp; INF_LOOP:&amp;nbsp; 552:&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp; 553:&amp;nbsp;&amp;nbsp;&amp;nbsp; STOP_FLTIM();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* stop rx timeout timer */&amp;nbsp; 554:&amp;nbsp;&amp;nbsp;&amp;nbsp; 555:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fl_data.fl_str.length = 0xFF-3;&amp;nbsp; 0004 6efc01&amp;nbsp;&amp;nbsp; [4]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MOV&amp;nbsp;&amp;nbsp; #-4,fl_data:1&amp;nbsp; 556:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chks = 0;&amp;nbsp; 0007 95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TSX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0008 6f01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [5]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLR&amp;nbsp;&amp;nbsp; 1,X&amp;nbsp; 557:&amp;nbsp;&amp;nbsp;&amp;nbsp; byte_cnt = 0;&amp;nbsp; 000a 7f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [4]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLR&amp;nbsp;&amp;nbsp; ,X&amp;nbsp; 558:&amp;nbsp;&amp;nbsp;&amp;nbsp; 559:&amp;nbsp;&amp;nbsp;&amp;nbsp; RESET_SCI_RX_FLAGS();&amp;nbsp; /* reset of SCI rx flag */&amp;nbsp; 000b 450004&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp; @SCIR:4&amp;nbsp; 000e f6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDA&amp;nbsp;&amp;nbsp; ,X&amp;nbsp; 000f e603&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDA&amp;nbsp;&amp;nbsp; 3,X&amp;nbsp; 0011 e602&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDA&amp;nbsp;&amp;nbsp; 2,X&amp;nbsp; 0013 2007&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&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; L1C ;abs = 001c&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;as you can see, the "STOP_FLTIM" macro do not have the corresponding ASM code.&lt;BR /&gt;&lt;BR /&gt;Has someone already seen this behavior of CW ? What can I do to avoid that ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below, you can find the code of the macro "STOP_FLTIM" :&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#define STOP_FLTIM() \&amp;nbsp;&amp;nbsp; STOP_TIM(FLTIM); /* stop and reset FLTIM timer */ \&amp;nbsp;&amp;nbsp; RESET_TIM(FLTIM); \&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESET_TOVF(FLTIM); /* reset FLTIM flag */ \ #define _STOP_TIM(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t##SC &amp;amp;=&amp;nbsp; ~(CLKSB|CLKSA); #define STOP_TIM(f)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STOP_TIM_a(f##_timer) #define STOP_TIM_a(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _STOP_TIM(t) #define _RESET_TIM(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t##CNTL = 0; #define RESET_TIM(f)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESET_TIM_a(f##_timer) #define RESET_TIM_a(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RESET_TIM(t)#define _RESET_TOVF(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {READ_REG(t##SC);t##SC&amp;amp;=~TOF;}#define RESET_TOVF(f)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESET_TOVF_a(f##_timer)#define RESET_TOVF_a(t)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RESET_TOVF(t)&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;Below, you can find the macro preprocessed :&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;( * ( ( volatile ZByte * ) ( 0x30 ) ) ) &amp;amp;= ~ ( 0x10 | 0x08 );;( * ( ( volatile ZByte * ) ( 0x32 ) ) ) = 0 ;; { ( ( * ( ( volatile ZByte * ) ( 0x30 ) ) ) ) ; ( * ( ( volatile ZByte * ) ( 0x30 ) ) ) &amp;amp;= ~ 0x80 ; };;&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154091#M3846</guid>
      <dc:creator>VianneyC</dc:creator>
      <dc:date>2020-10-29T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154092#M3847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Your macro + call include a semi-column.&lt;BR /&gt;Your preprocessor output confirms your lines ends with ";;"&lt;BR /&gt;&lt;BR /&gt;This is not standard C to end lines with double ;&lt;BR /&gt;&lt;BR /&gt;Try and fix that first.&lt;BR /&gt;Alban&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 21:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154092#M3847</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-09T21:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154093#M3848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am sorry. I do not understand your message.&lt;BR /&gt;What I am supposed to do ?&lt;BR /&gt;&lt;BR /&gt;Vianney&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 22:19:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154093#M3848</guid>
      <dc:creator>VianneyC</dc:creator>
      <dc:date>2007-10-09T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154094#M3849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Actually I think this is perfectly legal for statements, according to C there is something called an "empty statement". and having a bunch of semicolons together just means to have a bunch of empty statements :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;When I remember right, additional semicolons are not legal for declarations, there it is a common extension many compiler support, anyway. The double semicolon is not the problem.&lt;BR /&gt;&lt;BR /&gt;What I would do is to preprocess the complete source file,&lt;BR /&gt;save it as *.c file, add it to the project and check if compiling that does still cause the issue. Then depending on the result, try to simplify the test file or to see what happens during preprocessing.&lt;BR /&gt;&lt;BR /&gt;Also the 5.7 is the version of the ide, which does not matter much. What is the version of the product?&lt;BR /&gt;Something like "CW for HC(S)08 V5.1" for example.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 23:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154094#M3849</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-10-09T23:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154095#M3850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The solution to the problem can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.5" target="test_blank"&gt;http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.5&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.5" target="test_blank"&gt;http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Plainly, get rid of the macros.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 13:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154095#M3850</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-10-10T13:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154097#M3852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would recommend you to submit a service request for that.&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;BR /&gt;&lt;BR /&gt;Make sure to attach a reproducible project and installed product information to the service request.&lt;BR /&gt;To generate the required information:&lt;BR /&gt;- Start CodeWarrior&lt;BR /&gt;- Open the project&lt;BR /&gt;- Select "Help" -&amp;gt; "Pack and Go" and follow instructions on the screen.&lt;BR /&gt;&lt;BR /&gt;Attach the generated .zip file to the SR.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154097#M3852</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-10-10T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code not compiled with CW5.7 and HCS08GT32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154098#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I investigated this ServiceRequest&amp;nbsp;- everything works fine. There is BSR instruction at the beginning of mentioned function. Just disable compiler optimization ( -O0 ) and the code will be at the place you are looking for it.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 14:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Code-not-compiled-with-CW5-7-and-HCS08GT32/m-p/154098#M3853</guid>
      <dc:creator>Phoenix</dc:creator>
      <dc:date>2007-10-11T14:17:07Z</dc:date>
    </item>
  </channel>
</rss>

