<?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: What causes Data Corruption fault in TSS_Library? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443623#M26129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hoff&lt;/P&gt;&lt;P&gt;Can you tell me how to reproduce your problem, or can you please send me your project?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 21:55:31 GMT</pubDate>
    <dc:creator>vicentegomez</dc:creator>
    <dc:date>2015-05-08T21:55:31Z</dc:date>
    <item>
      <title>What causes Data Corruption fault in TSS_Library?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443621#M26127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the TSS_Library to implement some touch buttons. The project was working properly. However, sometimes occurs the fault interruption because of the data corruption fault.&lt;/P&gt;&lt;P&gt;This fault occurs without the program have changed anything in TSS_Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can cause Data Corruption fault in TSS_Library?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 19:47:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443621#M26127</guid>
      <dc:creator>ViniciusHoff</dc:creator>
      <dc:date>2015-04-24T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: What causes Data Corruption fault in TSS_Library?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443622#M26128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realized that the data corruption fault occurs always after that the program calls the sprintf() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14301581671691802" jivemacro_uid="_14301581671691802"&gt;
&lt;P&gt;void print_msg(char *title, char *param)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char msg1[17];&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf(msg1, "%s %s", title param);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LCD_writeLine2(msg1);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 11:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443622#M26128</guid>
      <dc:creator>ViniciusHoff</dc:creator>
      <dc:date>2015-04-27T11:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: What causes Data Corruption fault in TSS_Library?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443623#M26129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hoff&lt;/P&gt;&lt;P&gt;Can you tell me how to reproduce your problem, or can you please send me your project?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 21:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443623#M26129</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2015-05-08T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: What causes Data Corruption fault in TSS_Library?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443624#M26130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro&lt;/P&gt;&lt;P&gt;I can't send you the project, because I haven't permission of my company.&lt;/P&gt;&lt;P&gt;However, the problem occurs always after that the program calls the sprintf() function.&lt;/P&gt;&lt;P&gt;I solved the problem exchanging the sprintf() function for the XF1_xsprintf() function, provided by&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/BlackNight"&gt;BlackNight&lt;/A&gt;, in the Processor Expert Components.&lt;/P&gt;&lt;P&gt;After I exchanged all sprintf() functions, this problem does not occurred more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443624#M26130</guid>
      <dc:creator>ViniciusHoff</dc:creator>
      <dc:date>2015-05-13T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: What causes Data Corruption fault in TSS_Library?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443625#M26131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincius,&lt;/P&gt;&lt;P&gt;sprintf() needs a lot of stack/RAM, so I suspect there is a stack overflow. Try increasing the library heap size and increase the stack size in your application. Glad to hear that xsprintf() solved your problem :-), because this smaller variant uses much less stack/code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 04:22:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/What-causes-Data-Corruption-fault-in-TSS-Library/m-p/443625#M26131</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-05-14T04:22:01Z</dc:date>
    </item>
  </channel>
</rss>

