<?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: Hiwave.exe - difference between full chip simulation and debugging</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200110#M16331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi benki,&lt;BR /&gt;&lt;BR /&gt;Your either simulating EVERYTHING or nothing, no other choice.&lt;BR /&gt;In simulation you will never get stuck waiting for lock because it simulates good hardware.&lt;BR /&gt;If it simulates ok but in real hardware debugging it hangs then you probably have a hardware issue here.&lt;BR /&gt;Your not getting a COP reset while waiting for lock are you?&lt;BR /&gt;I got trapped by this, what worked everytime on a GT16 causes a COP reset waiting for lock on a GT16A everytime even though nothing supposed to be different in this area.&lt;BR /&gt;If you are toggling a pin while debugging you should be able to measure the toggle on the real pin. You should also be able to watch the pin in the debugger.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 18:47:04 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2008-03-07T18:47:04Z</dc:date>
    <item>
      <title>Hiwave.exe - difference between full chip simulation and debugging  - hcs908aw32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200106#M16327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can somebody help me out with this ? what is the difference between full chip simulation and debugging with hardware in hiwave.exe.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using hcs908aw32 controller. whenever&amp;nbsp;program encounter a while loop, program control doesn't come out of the loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added p/n to subject.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-03-06&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;11:47 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 18:36:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200106#M16327</guid>
      <dc:creator>benki</dc:creator>
      <dc:date>2008-03-06T18:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hiwave.exe - difference between full chip simulation and debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200107#M16328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello and welcome to the forums, benki&lt;BR /&gt;&lt;BR /&gt;I'm not sure of the association between the two parts of your question.&lt;BR /&gt;&lt;BR /&gt;As an initial simplistic answer:&lt;BR /&gt;&lt;BR /&gt;In full chip simulation the code runs on a simulated device on the PC.&lt;BR /&gt;&lt;BR /&gt;In Debugging the code runs in the target device whilst being monitored by the PC.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 19:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200107#M16328</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-03-06T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hiwave.exe - difference between full chip simulation and debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200108#M16329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Lets see your code...&lt;BR /&gt;The simulator works fine.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 02:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200108#M16329</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-03-07T02:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hiwave.exe - difference between full chip simulation and debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200109#M16330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for the info !!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i'm using HCS908AW32 controller for my application. Cyclone pro is the flash tool along with BDM connector. using this setup, i'm tring to debug my code by entring Background Debug mode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;everything works fine untill it encounters a while loop in the code. the first while loop is in clock initialisation function. here i wait for PLL to stabilize to the specified frequency. There is a LOCK bit in the status register which says about the status of PLL. untill that bit is false, program doesn't come out of the while loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;problem is LOCK bit in the status register (ICGS1) is not getting cleared. so program execution is not coming out of that loop. This bit is not in my control.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;so now i get a doubt that, if its executing from the hardware, LOCK bit should get cleared and execution should come out of the loop. is it just simulated in PC ??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i tried to toggle a portpin inside the while loop, and it was not toggling. so is this a simulation or is this executing from the hardware connected ???&lt;/DIV&gt;&lt;DIV&gt;if i remove the BDM connection, there is a message - " cannot communicate to Hardware"&lt;/DIV&gt;&lt;DIV&gt;i'm really confused with the situation.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 12:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200109#M16330</guid>
      <dc:creator>benki</dc:creator>
      <dc:date>2008-03-07T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hiwave.exe - difference between full chip simulation and debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200110#M16331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi benki,&lt;BR /&gt;&lt;BR /&gt;Your either simulating EVERYTHING or nothing, no other choice.&lt;BR /&gt;In simulation you will never get stuck waiting for lock because it simulates good hardware.&lt;BR /&gt;If it simulates ok but in real hardware debugging it hangs then you probably have a hardware issue here.&lt;BR /&gt;Your not getting a COP reset while waiting for lock are you?&lt;BR /&gt;I got trapped by this, what worked everytime on a GT16 causes a COP reset waiting for lock on a GT16A everytime even though nothing supposed to be different in this area.&lt;BR /&gt;If you are toggling a pin while debugging you should be able to measure the toggle on the real pin. You should also be able to watch the pin in the debugger.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 18:47:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200110#M16331</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-03-07T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hiwave.exe - difference between full chip simulation and debugging</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200111#M16332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sorry for the late reply. now i have confirmed that it is not a simulation but its working with the hardware connected. i tried to do some tests with the same setup. i tried to get the bus clock out through a pin (PTC2) MCLK pin. when i execute the code for this, i get the bus clock in this pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;so now i am sure that, it is executing from the hardware. hardware bits like LOCK, SPI transmitter empty bit, etc... are not getting updated at all.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;so whereever i have a while loop waiting for these hardware bits, program execution hangs.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i dont know what's wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;benki&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 03:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hiwave-exe-difference-between-full-chip-simulation-and-debugging/m-p/200111#M16332</guid>
      <dc:creator>benki</dc:creator>
      <dc:date>2008-03-26T03:34:47Z</dc:date>
    </item>
  </channel>
</rss>

