<?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: scanf sets stack pointer to non existent memory location mc9s12c32 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/scanf-sets-stack-pointer-to-non-existent-memory-location/m-p/133894#M1965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This has been resolved....I just increased the stack size in the *.prm file.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Oct 2006 08:33:22 GMT</pubDate>
    <dc:creator>Icewater</dc:creator>
    <dc:date>2006-10-21T08:33:22Z</dc:date>
    <item>
      <title>scanf sets stack pointer to non existent memory location mc9s12c32</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/scanf-sets-stack-pointer-to-non-existent-memory-location/m-p/133893#M1964</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I&amp;nbsp;am just writting simple programs to communicate via serial through the mcu.&amp;nbsp; printf works fine but scanf sets the stack to a bad memory location after the va_arg macro call.&amp;nbsp; Due to this when the return from my TERMIO_GetChar() function is executed it tries to read from a no existent location and jumps to 0x0 hence crashing.&amp;nbsp; I was wondering if anyone knew how to solve this problem.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Icewater&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2006 08:07:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/scanf-sets-stack-pointer-to-non-existent-memory-location/m-p/133893#M1964</guid>
      <dc:creator>Icewater</dc:creator>
      <dc:date>2006-10-21T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: scanf sets stack pointer to non existent memory location mc9s12c32</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/scanf-sets-stack-pointer-to-non-existent-memory-location/m-p/133894#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This has been resolved....I just increased the stack size in the *.prm file.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2006 08:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/scanf-sets-stack-pointer-to-non-existent-memory-location/m-p/133894#M1965</guid>
      <dc:creator>Icewater</dc:creator>
      <dc:date>2006-10-21T08:33:22Z</dc:date>
    </item>
  </channel>
</rss>

