<?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: Floating-point Math problem, MC9S08PT60</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181548#M13245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you are not running out of stack. Increase the STACKSIZE in the prm file&lt;/P&gt;&lt;P&gt;(not sure where to set the stack size with Processor Expert).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jul 2012 09:42:18 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2012-07-21T09:42:18Z</dc:date>
    <item>
      <title>Floating-point Math problem, MC9S08PT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181547#M13244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having an issue I can't resolve, the following lines of code cause a reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&amp;nbsp; FLOAT32 fPct100 = 100.00;&amp;nbsp;&amp;nbsp; FLOAT32 fPct18&amp;nbsp; = 18.00;&amp;nbsp;&amp;nbsp; FLOAT32 fPvPercent;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLOAT32 fBarGraphPercent;&amp;nbsp;&amp;nbsp; UINT32&amp;nbsp; nBarGraphSegment&amp;nbsp;&amp;nbsp; = 0;&amp;nbsp;&amp;nbsp; fPvPercent = gfPVPercent * fPct100;&amp;nbsp;&amp;nbsp; fBarGraphPercent = (UINT32)(fPvPercent / NUM_BG_SEGENTS);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //fPvPercent = 20.0000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fPvPercent = (fPvPercent / fPct100);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //problem here&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fPvPercent = fPvPercent / fPct18;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //problem here&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;it is possible to step through this statement and hit brakepoints at the end of main loop. however, running is not working. i can't catch the reset with&amp;nbsp;Cpu_OnReset either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using CWIDE 10.2 with the latest updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions are greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:31:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181547#M13244</guid>
      <dc:creator>AndreiLuchuk</dc:creator>
      <dc:date>2020-10-29T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Floating-point Math problem, MC9S08PT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181548#M13245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you are not running out of stack. Increase the STACKSIZE in the prm file&lt;/P&gt;&lt;P&gt;(not sure where to set the stack size with Processor Expert).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 09:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181548#M13245</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2012-07-21T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Floating-point Math problem, MC9S08PT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181549#M13246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking in, Daniel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've increased the stack from 0x0080 to 0x0500, but no solution. How much stack does this need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 19:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181549#M13246</guid>
      <dc:creator>AndreiLuchuk</dc:creator>
      <dc:date>2012-07-23T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Floating-point Math problem, MC9S08PT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181550#M13247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that much :smileyhappy:.&lt;/P&gt;&lt;P&gt;Thought 0x80 feels a bit low when using floating point arithemtic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To see how much stack it needs, search for STACKSIZE in the forums. Also one way:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/115600#115600" title="https://community.freescale.com/message/115600#115600"&gt;https://community.freescale.com/message/115600#115600&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another cause might be the COP/watch dog timer, try disabling it temporarly to see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, I would recommend to create a small example app showing your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 21:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Floating-point-Math-problem-MC9S08PT60/m-p/181550#M13247</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2012-07-24T21:15:29Z</dc:date>
    </item>
  </channel>
</rss>

