<?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のトピックRe: &amp;quot;User halted thread&amp;quot; with no brealpoint</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509613#M15735</link>
    <description>&lt;P&gt;I believe that the problem was the project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 15:35:16 GMT</pubDate>
    <dc:creator>vicentegomez</dc:creator>
    <dc:date>2022-08-22T15:35:16Z</dc:date>
    <item>
      <title>"User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1504139#M15727</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Hi --&lt;BR /&gt;I have an MCS908QE128 and CodeWarrior 11.1 and Multilink Universal FX.  &lt;BR /&gt;Port A is set up to be keyboard inputs, KBI1, on bits 0-3.  &lt;BR /&gt;Port B is set up to be KBI1 on bits 2 and 3.&lt;BR /&gt;This code had worked for a very long time.  &lt;BR /&gt;Recently, it has started acting like there is a breakpoint set at the &lt;BR /&gt;line that reads PTAD, even though there has never been a breakpoint there.&lt;BR /&gt; Every time it reads KBI1, it stops on the line, and generates:&lt;BR /&gt;&lt;BR /&gt; "Thread [ID:0x0](Suspended:  Signal 'Halt' received.  Description: User halted thread."&lt;BR /&gt;&lt;BR /&gt;I was using the code that Processor Expert wrote.  I thought it must be &lt;BR /&gt;some sort of residual artifact, which made no sense, but I was only &lt;BR /&gt;calling it from one place, so I rewrote it inline.  No difference.  &lt;BR /&gt;I selected Run &amp;gt;&amp;gt; Skip All Breakpoints.  No difference.&lt;BR /&gt;&lt;BR /&gt;Port B, bits 2 and 3 are also keyboard interrupts, and are read in the &lt;BR /&gt;same routine.  The program has no problem reading PTBD correctly.&lt;BR /&gt;&lt;BR /&gt;I'm out of ideas.  Any clues or suggestions?&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 16:27:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1504139#M15727</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-10T16:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507170#M15729</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the "breakpoint"&amp;nbsp; does the code continues running? or you get a reset&lt;/P&gt;
&lt;P&gt;Would it be possible for you give me more information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 03:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507170#M15729</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2022-08-17T03:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507565#M15730</link>
      <description>&lt;P&gt;Hi Vincent --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, It won't execute anything after that. &amp;nbsp;I have to exit the debug session and start over.&lt;/P&gt;&lt;P&gt;I don't know any more than that right now. &amp;nbsp;I will try to find any other references to Port A Data, and see what happens there.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:12:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507565#M15730</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-17T15:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507724#M15731</link>
      <description>&lt;P&gt;Hi Vincent--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry, my last answer was wrong.&amp;nbsp; The program does continue if I select the Go button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code looks like this (auto generated by Processor Expert):&lt;/P&gt;&lt;P&gt;byte KBI1_GetVal(void)&lt;BR /&gt;{&lt;BR /&gt;byte value = 0x00U;&lt;BR /&gt;value |= PTAD &amp;amp; 0x01U;&lt;BR /&gt;value |= PTAD &amp;amp; 0x02U;&lt;BR /&gt;value |= PTAD &amp;amp; 0x04U;&lt;BR /&gt;value |= PTAD &amp;amp; 0x08U;&lt;BR /&gt;value |= (byte)((PTBD &amp;amp; 0x04U) &amp;lt;&amp;lt; 2);&lt;BR /&gt;value |= (byte)((PTBD &amp;amp; 0x08U) &amp;lt;&amp;lt; 2);&lt;BR /&gt;return value;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The program halts at every line with PTAD in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only place in the program that refers to PTAD.&lt;/P&gt;&lt;P&gt;If I run the program instead of debugging it, it runs fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 20:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507724#M15731</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-17T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507789#M15732</link>
      <description>&lt;P&gt;Can you please create a new code on a new workspace&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe there is a problem with your workspace&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 21:52:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1507789#M15732</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2022-08-17T21:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1508994#M15733</link>
      <description>&lt;P&gt;I'll give it a try.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 21:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1508994#M15733</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-19T21:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509006#M15734</link>
      <description>&lt;P&gt;Hi Vincent --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, I created a new project that just reads KBI1, and prints the result.&amp;nbsp; It works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think the problem might be in the original KBI1 module, or is it someplace else, and just leaks out to the outside world via the KBI1 module?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 22:12:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509006#M15734</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-19T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509613#M15735</link>
      <description>&lt;P&gt;I believe that the problem was the project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:35:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509613#M15735</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2022-08-22T15:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509671#M15736</link>
      <description>&lt;P&gt;Hi Vincent --&lt;/P&gt;&lt;P&gt;You were right.&amp;nbsp; I deleted all the code for that port, and rewrote it.&amp;nbsp; It works as expected now.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 18:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1509671#M15736</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-22T18:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: "User halted thread" with no brealpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1510325#M15737</link>
      <description>&lt;P&gt;Well, not so fast.&amp;nbsp; Deleting and rewriting KBI1.C and KBI1.h worked for about two minutes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code in question (generated by Processor Expert):&lt;/P&gt;&lt;P&gt;byte KBI1_GetVal(void)&lt;BR /&gt;{&lt;BR /&gt;byte value = 0x00U;&lt;BR /&gt;&amp;nbsp;value |= PTAD &amp;amp; 0x01U;&lt;BR /&gt;&amp;nbsp;value |= PTAD &amp;amp; 0x02U;&lt;BR /&gt;&amp;nbsp;value |= PTAD &amp;amp; 0x04U;&lt;BR /&gt;&amp;nbsp;value |= PTAD &amp;amp; 0x08U;&lt;BR /&gt;&amp;nbsp;value |= (byte)((PTBD &amp;amp; 0x04U) &amp;lt;&amp;lt; 2);&lt;BR /&gt;&amp;nbsp;value |= (byte)((PTBD &amp;amp; 0x08U) &amp;lt;&amp;lt; 2);&lt;BR /&gt;return value;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PTAD is at address zero.&amp;nbsp; If I change "PTAD" to anything else, such as "PTADD" (address 1) or "PTAB" (address 2), it works as expected.&amp;nbsp; If I leave it at PTAD, but select Run instead of Debug, it works perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is some of the first code written for this project, and had been working perfectly until recently.&amp;nbsp; I'm using CW for MCU version 11.1, which doesn't appear to have been updated since 2018, so it's probably not new software.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 17:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/quot-User-halted-thread-quot-with-no-brealpoint/m-p/1510325#M15737</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2022-08-23T17:06:50Z</dc:date>
    </item>
  </channel>
</rss>

