<?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中的主题 How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304454#M10822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have flashed my program onto a kinetis k10 and I use the debugger to attach to the running program.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another program running on the PC is capable of resetting my target hardware, but I do not want CodeWarrior to stop when that happens, because it prevents the program running on the PC from getting the expected response.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used CodeSourcery before.&amp;nbsp; The debugger is gdb based and I used the following line in the .gdbinit file to prevent the debugger from stopping after reset:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;handle SIGTRAP nostop&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything similar in CodeWarrior?&amp;nbsp; Why should CodeWarrior always stop after a reset?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 19:24:55 GMT</pubDate>
    <dc:creator>thomasclark</dc:creator>
    <dc:date>2014-04-25T19:24:55Z</dc:date>
    <item>
      <title>How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304454#M10822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have flashed my program onto a kinetis k10 and I use the debugger to attach to the running program.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another program running on the PC is capable of resetting my target hardware, but I do not want CodeWarrior to stop when that happens, because it prevents the program running on the PC from getting the expected response.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used CodeSourcery before.&amp;nbsp; The debugger is gdb based and I used the following line in the .gdbinit file to prevent the debugger from stopping after reset:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;handle SIGTRAP nostop&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything similar in CodeWarrior?&amp;nbsp; Why should CodeWarrior always stop after a reset?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304454#M10822</guid>
      <dc:creator>thomasclark</dc:creator>
      <dc:date>2014-04-25T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304455#M10823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please move your question to Codewarrior discussion block. thus freescale CW team can check it. thanks, ZhangJun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 06:17:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304455#M10823</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-04-28T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304456#M10824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion.&amp;nbsp; Hopefully, moving to CodeWarrior for MCU groupl, will get me some responses.&amp;nbsp; There is no breakpoint set, on the first instruction.&amp;nbsp; CodeWarrior just stops automatically on the first instruction after hard-reset.&amp;nbsp; Does anyone know how to avoid this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow is like this:&lt;/P&gt;&lt;P&gt;My target hardware powers up and does whatever it does after powerup.&lt;/P&gt;&lt;P&gt;I attach" to the target via debugger.&lt;/P&gt;&lt;P&gt;PC program talks through usb to a chip that pulses the k10 reset low.&lt;BR /&gt;After reset happens code warrior stops the target.&lt;/P&gt;&lt;P&gt;PC doesn't receive the expected packet becasue the target is halted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the debugger to let the target continue running after reset.&amp;nbsp; Later on I want to be able to set breakpoints or manually pause execution to observe memory and registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned before, using the Code Sourcery tools, I was able to avoid the affect of hard-reset by editting the .gdbinit file.&amp;nbsp; Are there any customizable settings that&amp;nbsp; can allow CodeWarrior to continue after hard-reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any clues that I can receive, even if it is simply to tell me that what I am trying to do is not possible with these tools,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 14:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304456#M10824</guid>
      <dc:creator>thomasclark</dc:creator>
      <dc:date>2014-04-28T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304457#M10825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have investigated and doing some tests. It seems that the behavior you mention is not possible with CodeWarrior, it always stops when resetting the device.&lt;/P&gt;&lt;P&gt;If I get some new information or a workaround I will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304457#M10825</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-05-06T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent CodeWarrior from stopping after hard reset occurs?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304458#M10826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that I finally stumbled on the answer that I was looking for.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the documentation under Common Manuals - Code Warrior Common Features Guide -Debugger - Multicore Reset there is a checkbox called "Run out of reset" which seems to be unchecked by default.&amp;nbsp; I found that by checking the box, I can get the behavior I want.&amp;nbsp; I think it works, but I haven't gone back to trying to debug the issue that I was dealing with a few months ago.&amp;nbsp; I did verify that I can now press the reset button, without the debugger automatically stopping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get to the "Run out of reset" checkbox choose Window - Show View - Remote Systems&lt;/P&gt;&lt;P&gt;Then choose &amp;lt;your_project&amp;gt; Target and right click then select properties.&amp;nbsp; check the checkbox "Run out of reset"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After making this change, use the debugger to "attach" to a processor that is running on the target.&amp;nbsp; In my case I can use Run-&amp;gt;suspend to see that the processor is running. Then Run-&amp;gt;Resume.&amp;nbsp; Then I press the reset button on my board.&amp;nbsp; It resets without the debugger halting.&amp;nbsp; In the system I was debugging before, the halting by the debugger prevented the target from replying to another processor before a timeout occurred.&amp;nbsp; So I think this will fix it.&amp;nbsp; I'm not ready right now to go back and fully test this, but when I do I will provide confirmation here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other note, initially after checking the "Run out of reset" box, after pressing my reset button, I would get a dialog box telling me that the debugger was disconnected (or something to that effect). I checked a checkbox saying reconnect, and another checkbox saying "always do this", and now the dialog box does not pop up.&amp;nbsp; I press reset and the code continues to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Review of why this will help me:&lt;/P&gt;&lt;P&gt;I have a PC program which communicates to the kinetis k10 via a uart.&amp;nbsp; An FTDI usb to uart chip is used for this.&amp;nbsp; The FTDI chip has a gpio pin which is attached to the k10's reset.&amp;nbsp; Effectively the PC can reset the k10 anytime it wants to.&amp;nbsp; The fact that when debugging, a reset of the k10 would cause ithe k10 halt, prevented me from making much progress.&amp;nbsp; Under normal behavior the k10 would produce a particular packet on the uart after being reset.&amp;nbsp; But when the debugger is attached, the k10 would halt on reset, and the PC would timeout because it didn't receive the packet in time.&amp;nbsp; Possibly another fix could have been to alter the PC to use an infinite timeout here when debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 17:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-prevent-CodeWarrior-from-stopping-after-hard-reset/m-p/304458#M10826</guid>
      <dc:creator>thomasclark</dc:creator>
      <dc:date>2014-09-08T17:09:20Z</dc:date>
    </item>
  </channel>
</rss>

