<?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: Passed Variables Getting scrambled Take Two</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134913#M3887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;if you mean by prototype....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i have in&lt;BR /&gt;&lt;BR /&gt;tvi_lcd.h&lt;BR /&gt;&lt;BR /&gt;int iTVI_LCDPing(char cBouy);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;like that?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2007 20:05:13 GMT</pubDate>
    <dc:creator>mjcoury</dc:creator>
    <dc:date>2007-05-30T20:05:13Z</dc:date>
    <item>
      <title>Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134908#M3882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I'm still looking for some ideas for this problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I enter a routine with passed variables....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;int iTVI_LCDPing(char cBouy){&amp;nbsp;&amp;nbsp;&amp;nbsp; iTVI_AddQueue(TVI_CLEAR&amp;nbsp;&amp;nbsp; , TVI_CLEAR_ALL, TVI_DELAY);&amp;nbsp; iTVI_AddQueue(TVI_FONT_SEL, TVI_FONT_MED , TVI_DELAY);&amp;nbsp;&amp;nbsp;&amp;nbsp; iTVI_AddQueue(TVI_COLUMN_START, 0x01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , TVI_DELAY);&amp;nbsp; iTVI_AddQueue(TVI_PAGE_START&amp;nbsp; , 0x01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , TVI_DELAY);&amp;nbsp; iTVI_TransmitStr("Watch the display and press '#' to ping the ");&amp;nbsp; switch(cMyStupidGlobal)&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; case SCI_A:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iTVI_TransmitStr("Pin");&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&amp;nbsp;&amp;nbsp;&amp;nbsp; case SCI_B:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iTVI_TransmitStr("Boat");&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&amp;nbsp; }&amp;nbsp; iTVI_TransmitStr(" Bouy");&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERROR_NONE;}

after the 5 routines, CBouy is lost and gone forever and the switch command is performend on random data.... any ideas where to start looking?
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 01:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134908#M3882</guid>
      <dc:creator>mjcoury</dc:creator>
      <dc:date>2007-05-26T01:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134909#M3883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Update&lt;BR /&gt;&lt;BR /&gt;I changed the code like this:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;int iTVI_LCDPing(char cBouy){    char cMyTemp = (cBouy &amp;amp; 0xFF);    iTVI_AddQueue(TVI_CLEAR   , TVI_CLEAR_ALL, TVI_DELAY);  iTVI_AddQueue(TVI_FONT_SEL, TVI_FONT_MED , TVI_DELAY);    iTVI_AddQueue(TVI_COLUMN_START, 0x01         , TVI_DELAY);  iTVI_AddQueue(TVI_PAGE_START  , 0x01         , TVI_DELAY);  iTVI_TransmitStr("Watch the display and press '#' to ping the ");  switch(cMyTemp)  {    case SCI_A:      iTVI_TransmitStr("Pin");    break;    case SCI_B:      iTVI_TransmitStr("Boat");    break;  }  iTVI_TransmitStr(" Bouy");    return ERROR_NONE;}&lt;/PRE&gt;and the problem goes away... according to the Debugging enviroment cMyTemp is never "assigned" and the problem has vanished....&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 02:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134909#M3883</guid>
      <dc:creator>mjcoury</dc:creator>
      <dc:date>2007-05-26T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134910#M3884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Per you first implementation, the arg and the switch arg doesn't match... so I guess that the compiler optimaze your function argument, but the switch var must give you an error when compiling due it hasn't been declared... just my 2 cents.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 04:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134910#M3884</guid>
      <dc:creator>alejmrm</dc:creator>
      <dc:date>2007-05-26T04:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134911#M3885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Sorry - was changed for debugging&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;int iTVI_LCDPing(char cBouy)
{
 
  iTVI_AddQueue(TVI_CLEAR   , TVI_CLEAR_ALL, TVI_DELAY);
  iTVI_AddQueue(TVI_FONT_SEL, TVI_FONT_MED , TVI_DELAY);
 
  iTVI_AddQueue(TVI_COLUMN_START, 0x01         , TVI_DELAY);
  iTVI_AddQueue(TVI_PAGE_START  , 0x01         , TVI_DELAY);
  iTVI_TransmitStr("Watch the display and press '#' to ping the ");

  switch(cBouy)
  {
    case SCI_A:
      iTVI_TransmitStr("Pin");
    break;
    case SCI_B:
      iTVI_TransmitStr("Boat");
    break;
  }
  iTVI_TransmitStr(" Bouy");
 
  return ERROR_NONE;

}&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 21:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134911#M3885</guid>
      <dc:creator>mjcoury</dc:creator>
      <dc:date>2007-05-29T21:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134912#M3886</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;Do you have a prototype for the function iTVI_LCDPing before it gets called?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Otherwise, you may want to&amp;nbsp;get one of our support engineer looking into that. I would recommend you submit &amp;nbsp;a service request for that.&lt;/DIV&gt;&lt;DIV&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;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Make sure to attach&amp;nbsp; a project reproducing the issue and installed product information to the SR.&lt;BR /&gt;To make sure you provide all necessary project information, you can use the Pack and Go wizard.&lt;BR /&gt;&amp;nbsp; - Start the IDE&lt;BR /&gt;&amp;nbsp; - Open the Project&lt;BR /&gt;&amp;nbsp; - Select Help -&amp;gt; "Pack and Go"&lt;BR /&gt;&amp;nbsp; - Follow the instruction on the screen. That will generate a zip file containing all necessary&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; information (including the installed product information).&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, 30 May 2007 17:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134912#M3886</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-05-30T17:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134913#M3887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;if you mean by prototype....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i have in&lt;BR /&gt;&lt;BR /&gt;tvi_lcd.h&lt;BR /&gt;&lt;BR /&gt;int iTVI_LCDPing(char cBouy);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;like that?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 20:05:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134913#M3887</guid>
      <dc:creator>mjcoury</dc:creator>
      <dc:date>2007-05-30T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passed Variables Getting scrambled Take Two</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134914#M3888</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;Yep. That is a prototype.&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>Thu, 31 May 2007 17:31:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Passed-Variables-Getting-scrambled-Take-Two/m-p/134914#M3888</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-05-31T17:31:41Z</dc:date>
    </item>
  </channel>
</rss>

