<?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: function argument disappear in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166842#M4971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I strongly recommend not to use any implicit parameter declaration - ever. The whole concept is just part of ANSI-C (89) because of compatibility with old code.&lt;BR /&gt;Try to compile with&amp;nbsp; -Wpd, that will cause any implicit parameter declaration to be an error. Then see which header file defines the function, and include the header file.&lt;BR /&gt;&lt;BR /&gt;The code also shows many other warnings I would look into too.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 22:21:26 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2008-06-25T22:21:26Z</dc:date>
    <item>
      <title>function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166834#M4963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello, I'm trying to understand why&amp;nbsp;a function created by Processor Expert stopped working.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define byte unsigned char&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;byte ADC1_GetChanValue16(byte Channel,word *Value)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; if (Channel &amp;gt;= 6)&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; /* Is channel number greater than or equal to 6 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_RANGE;&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; /* If yes then error */&lt;BR /&gt;&amp;nbsp; if (!OutFlg)&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;&amp;nbsp; /* Is output flag set? */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_NOTAVAIL;&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; /* If no then error */&lt;BR /&gt;&amp;nbsp; *Value = (word)((ADC1_OutV[Channel] &amp;lt;&amp;lt; 6) / 200); /* Save measured values to the output buffer */&lt;BR /&gt;&amp;nbsp; return ERR_OK;&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; /* OK */&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;****** LIST FILE *******&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Function: ADC1_GetChanValue16&lt;BR /&gt;Source&amp;nbsp; : D:\CodeWarrior\SunTrack\Code\ADC1.C&lt;BR /&gt;Options : -BfaGapLimitBits0 -D_HCS12 -D__NO_FLOAT__ -Env"GENPATH=D:\CodeWarrior\SunTrack;D:\CodeWarrior\SunTrack\bin;D:\CodeWarrior\SunTrack\prm;D:\CodeWarrior\SunTrack\cmd;D:\CodeWarrior\SunTrack\Sources;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\lib;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\src;D:\CodeWarrior\SunTrack\Code;D:\CodeWarrior\SunTrack\doc;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\lib\hc12c\include;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\bin\Plugins\support\ProcessorExpert\PESL\HCS12;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\bin\Plugins\support\ProcessorExpert;D:\CodeWarrior\SunTrack\src\common;D:\CodeWarrior\SunTrack\src\drivers\uart;D:\CodeWarrior\SunTrack\src\drivers\clock;C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\include" -Env"LIBPATH=C:\Programmi\Metrowerks\CodeWarrior CW12_V3.1\lib\HC12c\include" -EnvOBJPATH=D:\CodeWarrior\SunTrack\bin -EnvTEXTPATH=D:\CodeWarrior\SunTrack\bin -Lasm=%n.lst -Mb -ObjN=D:\CodeWarrior\SunTrack\SunTrack_Data\Lauterbach\ObjectCode\ADC1.C.o -WmsgSd1106 -WmsgSd1420 -WmsgSd4402 -WmsgSd5703&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 0000 3b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHD&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0001 3b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHD&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 287:&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Channel &amp;gt;= 6)&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; /* Is channel number greater than or equal to 6 */&lt;BR /&gt;&amp;nbsp; 0002 e687&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDAB&amp;nbsp; 7,SP&lt;BR /&gt;&amp;nbsp; 0004 c106&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMPB&amp;nbsp; #6&lt;BR /&gt;&amp;nbsp; 0006 2504&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCS&amp;nbsp;&amp;nbsp; *+6 ;abs = 000c&lt;BR /&gt;&amp;nbsp; 288:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_RANGE;&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; /* If yes then error */&lt;BR /&gt;&amp;nbsp; 0008 c602&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDAB&amp;nbsp; #2&lt;BR /&gt;&amp;nbsp; 000a 202c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRA&amp;nbsp;&amp;nbsp; *+46 ;abs = 0038&lt;BR /&gt;&amp;nbsp; 289:&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!OutFlg)&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;&amp;nbsp; /* Is output flag set? */&lt;BR /&gt;&amp;nbsp; 000c b60000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDAA&amp;nbsp; OutFlg&lt;BR /&gt;&amp;nbsp; 000f 2604&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BNE&amp;nbsp;&amp;nbsp; *+6 ;abs = 0015&lt;BR /&gt;&amp;nbsp; 290:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_NOTAVAIL;&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; /* If no then error */&lt;BR /&gt;&amp;nbsp; 0011 c609&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDAB&amp;nbsp; #9&lt;BR /&gt;&amp;nbsp; 0013 2023&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRA&amp;nbsp;&amp;nbsp; *+37 ;abs = 0038&lt;BR /&gt;&amp;nbsp; 291:&amp;nbsp;&amp;nbsp;&amp;nbsp; *Value = (word)((ADC1_OutV[Channel] &amp;lt;&amp;lt; 6) / 200); /* Save measured values to the output buffer */&lt;BR /&gt;&amp;nbsp; 0015 87&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLRA&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0016 59&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASLD&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0017 59&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASLD&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0018 b745&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TFR&amp;nbsp;&amp;nbsp; D,X&lt;BR /&gt;&amp;nbsp; 001a ede20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDY&amp;nbsp;&amp;nbsp; ADC1_OutV:2,X&lt;BR /&gt;&amp;nbsp; 001e eee20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDX&amp;nbsp;&amp;nbsp; ADC1_OutV,X&lt;BR /&gt;&amp;nbsp; 0022 c606&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDAB&amp;nbsp; #6&lt;BR /&gt;&amp;nbsp; 0024 160000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JSR&amp;nbsp;&amp;nbsp; _LSHL&lt;BR /&gt;&amp;nbsp; 0027 6e80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STX&amp;nbsp;&amp;nbsp; 0,SP&lt;BR /&gt;&amp;nbsp; 0029 1ae8c8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEAX&amp;nbsp; 200,Y&lt;BR /&gt;&amp;nbsp; 002c 34&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHX&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 002d 35&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHY&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 002e ee84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDX&amp;nbsp;&amp;nbsp; 4,SP&lt;BR /&gt;&amp;nbsp; 0030 160000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JSR&amp;nbsp;&amp;nbsp; _LDIVU&lt;BR /&gt;&amp;nbsp; 0033 ee82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDX&amp;nbsp;&amp;nbsp; 2,SP&lt;BR /&gt;&amp;nbsp; 0035 6c00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STD&amp;nbsp;&amp;nbsp; 0,X&lt;BR /&gt;&amp;nbsp; 292:&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_OK;&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; /* OK */&lt;BR /&gt;&amp;nbsp; 0037 c7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLRB&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 293:&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; 0038 1b84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEAS&amp;nbsp; 4,SP&lt;BR /&gt;&amp;nbsp; 003a 0a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use the function like this&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;unsigned int val = 0;&lt;BR /&gt;ADC1_GetChanValue16(4, &amp;amp;val);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Debuggin inside the function I get Channel always 0... and in val the corresponding of the calculation of ADC1_OutV[0]&lt;/DIV&gt;&lt;DIV&gt;Thinking coulb be a contant problem, I've used a local variable for passing the number 4, but it is the same.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Declaring a similar function thad does only the calculation in the same CODE and DATA SEG of the calling it works!!!&lt;/DIV&gt;&lt;DIV&gt;byte MyGetChanValue16(byte Channel,word *Value)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *Value = (word)((ADC1_OutV[Channel] &amp;lt;&amp;lt; 6) / 200); /* Save measured values to the output buffer */&lt;BR /&gt;&amp;nbsp; return ERR_OK;&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; /* OK */&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Personally I can't see the offset for the instruction LDY and LDX, but I'm not an Assembler developer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 001a ede20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDY&amp;nbsp;&amp;nbsp; ADC1_OutV:2,X&lt;BR /&gt;&amp;nbsp; 001e eee20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDX&amp;nbsp;&amp;nbsp; ADC1_OutV,X&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm working with CW 3.1 fo HCS12 under WinXP SP2, but I've tried the CW 4.6 but the problem is still the same.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If can help, there is another strange thing it happen, to get the return value of&amp;nbsp;same functions I have to declare the returning type. ie.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if((byte)ADC1_GetChanValue16(4, &amp;amp;val) != ERR_OK)&amp;nbsp; { //code// }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;otherwise I don't get the correct return&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 18:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166834#M4963</guid>
      <dc:creator>marcodz8</dc:creator>
      <dc:date>2008-06-23T18:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166835#M4964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Do you include all the needed headers, are there any implicit parameter declarations?&lt;BR /&gt;Both the input and return value problem are typical for implicit parameter declarations, if the function does use byte's as the PE one.&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 22:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166835#M4964</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-06-23T22:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166836#M4965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, the compiler gives me an "implicit parameter-declarations" WARNING but I don't understand why. It gives me this warning for other function that I made&lt;/DIV&gt;&lt;DIV&gt;The declaration is&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;byte ADC1_GetChanValue16(byte Channel,word *Value);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;where word is a&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define unsigned int word&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm secure that I give to the function all the declared parameters...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've&amp;nbsp;just started working with CodeWarrior for HCS12, I've been using IAR for a lot of project.&lt;/DIV&gt;&lt;DIV&gt;However I've used CodeWarrior for ColdFire without this kind if issues.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help me to solve this problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 14:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166836#M4965</guid>
      <dc:creator>marcodz8</dc:creator>
      <dc:date>2008-06-24T14:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166837#M4966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;A href="http://www.processorexpert.com/" rel="nofollow" target="_blank"&gt;http://www.processorexpert.com/" rel="nofollow" target="_blank&lt;/A&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;Could you pleas provide your project for us team to analyse it?&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.processorexpert.com/" rel="nofollow" target="_blank"&gt;www.processorexpert.com&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 19:21:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166837#M4966</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2008-06-24T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166838#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The compiler is correct. It gives you that warning because it can't find the type word, since the type was never properly declared.&lt;BR /&gt;&lt;BR /&gt;You have re-defined the ISO C keyword "unsigned" to instead be a macro for text replacement, replacing the text "unsigned" with the text "int word".&lt;BR /&gt;&lt;BR /&gt;Correct syntax is&lt;BR /&gt;&lt;BR /&gt;typedef unsigned int word;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 19:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166838#M4967</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-06-24T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166839#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Lundin:&amp;nbsp;Thanks, I agree with your comment, do you think the change you proposed will make the firmware work?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The #define has been created automatically by PE&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ProcessorExpert:&amp;nbsp;The source code attached&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I will wait some suggestion or solution from you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/CW816COMM/4463_SunTrack1.zip" rel="nofollow" target="_self"&gt;SunTrack1.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&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-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;09:21 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 20:09:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166839#M4968</guid>
      <dc:creator>marcodz8</dc:creator>
      <dc:date>2008-06-24T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166840#M4969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I have no idea, I'm surprised that it even compiles. If PE generated that code, I would have tossed it out the window immediately, but then I'm personally no big fan of code-generating tools. I prefer to write the bugs myself &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 16:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166840#M4969</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-06-25T16:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166841#M4970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Lundin, thanks&amp;nbsp;for trying!&lt;/DIV&gt;&lt;DIV&gt;I'm just starting using Processor Expert because we are using some different microprocessor, and the annoying thing is to learn every time a new processor datasheet etc etc.&lt;/DIV&gt;&lt;DIV&gt;PE is a good idea but should&amp;nbsp;create stable and portable code following all the standards... otherwise is better don't use it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I will wait the response of ProcessorExpert, may be I don't know how to use&amp;nbsp;PE correctly (I hope so).&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 17:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166841#M4970</guid>
      <dc:creator>marcodz8</dc:creator>
      <dc:date>2008-06-25T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166842#M4971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I strongly recommend not to use any implicit parameter declaration - ever. The whole concept is just part of ANSI-C (89) because of compatibility with old code.&lt;BR /&gt;Try to compile with&amp;nbsp; -Wpd, that will cause any implicit parameter declaration to be an error. Then see which header file defines the function, and include the header file.&lt;BR /&gt;&lt;BR /&gt;The code also shows many other warnings I would look into too.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 22:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166842#M4971</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-06-25T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166843#M4972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;According to the zip file attached, it was not PE generated code but code using PE functions without actually including the corresponding header. So you can still try out PE :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 22:22:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166843#M4972</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-06-25T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: function argument disappear</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166844#M4973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;We have analyzed your project and we assume that your problems are not influenced by code generated by Processor Expert.&lt;BR /&gt;&lt;BR /&gt;Generaly if you are using your own module, this module must contain the includes of header files for all beans that you want to use in your code. This is standard C approach of using functions from other modules.&lt;BR /&gt;&lt;BR /&gt;For example if you want to use the bean named&amp;nbsp; ADC0 and ADC1 then your module must contain:&lt;BR /&gt;&lt;BR /&gt;#include "ADC0.h"&lt;BR /&gt;#include "ADC1.h"&lt;BR /&gt;&lt;BR /&gt;If your Motors.c will contain the mentioned includes the warning disappears.&lt;BR /&gt;&lt;BR /&gt;Regarding PE generated code stability and portability, the code gnerated by all beans is thoroughly tested for each release including testing the correctly functionality of generated code on hardware.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.processorexpert.com/" rel="nofollow" target="_blank"&gt;www.processorexpert.com&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 23:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/function-argument-disappear/m-p/166844#M4973</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2008-06-25T23:07:56Z</dc:date>
    </item>
  </channel>
</rss>

