<?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: Code hangs with illegal bP 9S12 with CW3.1 in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-hangs-with-illegal-bP-9S12-with-CW3-1/m-p/148044#M1889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, found my problem. Rookie move.&lt;BR /&gt;&lt;BR /&gt;I set my proportional gain to three, so I saved the error voltage on the stack, did an ASLA and checked for overflow, then PUlB to do an ABA. Forgot to fix the stack if it branched.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2009 16:22:46 GMT</pubDate>
    <dc:creator>JohnnyP</dc:creator>
    <dc:date>2009-02-02T16:22:46Z</dc:date>
    <item>
      <title>Code hangs with illegal bP 9S12 with CW3.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-hangs-with-illegal-bP-9S12-with-CW3-1/m-p/148043#M1888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm debugging the proportional part of a PID controller with a P&amp;amp;E USB pod connected to the target. It runs until I adjust one of the variables "too far", then hangs with an illegal bp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is in an interrupt routine, so I copied it into a new project with no interrupts and it runs on the simulator, taking the appropriate branches when I adjust the variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Back to the target. I copied and pasted the code to the top of my program, disabled interrupts, and commented out the branches in the original code. It runs as before, then hangs with illegal bp when I adjust one of the variables beyond a certain point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to tell where the program is going? I didn't set any breakpoints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 13:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-hangs-with-illegal-bP-9S12-with-CW3-1/m-p/148043#M1888</guid>
      <dc:creator>JohnnyP</dc:creator>
      <dc:date>2009-02-02T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code hangs with illegal bP 9S12 with CW3.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-hangs-with-illegal-bP-9S12-with-CW3-1/m-p/148044#M1889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, found my problem. Rookie move.&lt;BR /&gt;&lt;BR /&gt;I set my proportional gain to three, so I saved the error voltage on the stack, did an ASLA and checked for overflow, then PUlB to do an ABA. Forgot to fix the stack if it branched.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2009 16:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Code-hangs-with-illegal-bP-9S12-with-CW3-1/m-p/148044#M1889</guid>
      <dc:creator>JohnnyP</dc:creator>
      <dc:date>2009-02-02T16:22:46Z</dc:date>
    </item>
  </channel>
</rss>

