<?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>CodeWarrior for MCU中的主题 Newbie problem with CodeWarrior simulating MC9S08FL16</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313505#M10923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Howdy,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using the simulator in CW (free edition) in an effort to learn the S08 instruction set.&amp;nbsp; This seems to work -- mostly.&amp;nbsp; However, while I'm stepping through my programs I am unable to see values that are pushed into the stack.&amp;nbsp; I see the stack pointer value changing as pushes and pulls occur, but when I set up a memory monitor pointing at that area of memory, I just see a bunch of zeroes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The part I'm simulating is the MC9S08FL16.&amp;nbsp; My assembly programs are very short and simple and are building with no errors.&amp;nbsp; I'm using the standard initialization code to "LDHX #__SEG_END_SSTACK" and "TXS" and can see that SP is 0x017f in the register view.&amp;nbsp; I am pointing the memory monitor to 0x0170 since I am fully aware that the stack will grow downward in memory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Am I doing something wrong here?&amp;nbsp; Seems like this would be pretty basic functionality.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 00:22:25 GMT</pubDate>
    <dc:creator>davidcawthon</dc:creator>
    <dc:date>2014-06-30T00:22:25Z</dc:date>
    <item>
      <title>Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313505#M10923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Howdy,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using the simulator in CW (free edition) in an effort to learn the S08 instruction set.&amp;nbsp; This seems to work -- mostly.&amp;nbsp; However, while I'm stepping through my programs I am unable to see values that are pushed into the stack.&amp;nbsp; I see the stack pointer value changing as pushes and pulls occur, but when I set up a memory monitor pointing at that area of memory, I just see a bunch of zeroes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The part I'm simulating is the MC9S08FL16.&amp;nbsp; My assembly programs are very short and simple and are building with no errors.&amp;nbsp; I'm using the standard initialization code to "LDHX #__SEG_END_SSTACK" and "TXS" and can see that SP is 0x017f in the register view.&amp;nbsp; I am pointing the memory monitor to 0x0170 since I am fully aware that the stack will grow downward in memory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Am I doing something wrong here?&amp;nbsp; Seems like this would be pretty basic functionality.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 00:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313505#M10923</guid>
      <dc:creator>davidcawthon</dc:creator>
      <dc:date>2014-06-30T00:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313506#M10924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide us the follows:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; your CW version: &lt;/P&gt;&lt;P&gt;&amp;nbsp; - if you use classic version: Start the IDE and click on Help | About Freescale CodeWarrior. Click on Installed Products.Save all info displayed into a txt file and send it to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - if you use eclipse version: Start the IDE and click on Help | About CodeWarrior Development Studio. Send me the version and build id.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; send the entire sample code folder(include mcp, prm,c...) in zip format to me.if your project is confidential, please create a new demo project and isolate the problem a demo code to me so that i can test it on my side directly.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;ZhangJun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 01:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313506#M10924</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-06-30T01:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313507#M10925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ZhangJun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I'm using the Eclipse version:&lt;/P&gt;&lt;P&gt;Version: 10.6&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Build Id:140329&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Project attached (Test3.zip).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Screenshot attached (Test3 error screenshot.png).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source is a very simple assembly program that pushes four bytes onto the stack.&amp;nbsp; The screenshot shows my debug session after the four values were pushed.&amp;nbsp; I would expect the values in memory at $017c to be "04 03 02 01".&amp;nbsp; Instead it shows in the memory monitor as "00 00 00 00".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313507#M10925</guid>
      <dc:creator>davidcawthon</dc:creator>
      <dc:date>2014-06-30T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313508#M10926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I can't download your png file. can you please upload it again in zip format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;ZhangJun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:43:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313508#M10926</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-07-01T02:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313509#M10927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZhangJun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, I've attached a zipped version of the PNG screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313509#M10927</guid>
      <dc:creator>davidcawthon</dc:creator>
      <dc:date>2014-07-01T02:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie problem with CodeWarrior simulating MC9S08FL16</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313510#M10928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick update...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the same behavior when I change my Test3 program to access the stack using "STA oprx8,SP" SP1 addressing mode.&amp;nbsp; I also tried using "TSX" and "STA oprx8,X" IX1 addressing mode with the same outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me it feels like the memory views (Memory Monitor and Memory Browser) are not updating properly.&amp;nbsp; My test code is successfully pulling values off of the stack; I just can't see them in memory!&amp;nbsp; Either I'm making a mistake somewhere (which I admit is entirely possible!) or this product has a serious bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching Test3b.zip, which is the version that uses IX1 addressing mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 14:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Newbie-problem-with-CodeWarrior-simulating-MC9S08FL16/m-p/313510#M10928</guid>
      <dc:creator>davidcawthon</dc:creator>
      <dc:date>2014-07-02T14:20:29Z</dc:date>
    </item>
  </channel>
</rss>

