<?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: Debug Session Unexpected Halts Execution</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157155#M4142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been able to narrow this problem down a bit.&amp;nbsp; It seems that the USB stack (as CDC) fails to transmit.&amp;nbsp; I've traced the problem to the USB_DCI_Validate_Param primitive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static uint_8 USB_DCI_Validate_Param (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 ep_num,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Endpoint Number */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 direction,&amp;nbsp; /* [IN] Endpoint direction */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean odd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Odd or even buffer */&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get bdt index mapped to endpoint number-direction and odd/even buffer */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 bdt_index = USB_DCI_Get_BDT_Index(ep_num, direction, odd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((bdt_index&amp;nbsp; != INVALID_BDT_INDEX) &amp;amp;&amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (g_bdt_elem[TRANSFER_INDEX(bdt_index)].len == &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint_16)UNINITIALISED_VAL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Incase length in bdt_elem is uninitialised return invalid index */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bdt_index = INVALID_BDT_INDEX;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return bdt_index;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fails when checking the index length:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(g_bdt_elem[TRANSFER_INDEX(bdt_index)].len == &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint_16)UNINITIALISED_VAL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... to return INVALID_BDT_INDEX.&lt;/P&gt;&lt;P&gt;Any insight you can provide would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 22:05:44 GMT</pubDate>
    <dc:creator>jimfell</dc:creator>
    <dc:date>2012-10-30T22:05:44Z</dc:date>
    <item>
      <title>Debug Session Unexpected Halts Execution</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157152#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My CodeWarrior 10.2 project unexepectly halts execution when in a debug session.&amp;nbsp; The message I see in the Debug pane states, "Thread [ID: 0x0] (Suspended: Signal 'Halt' received.&amp;nbsp; Description: User halted thread.)"&amp;nbsp; I did not halt target execution, so I don't know what it's talking about.&amp;nbsp; It doesn't give me any other meaningful information.&amp;nbsp; I'm new to CodeWarrior/Eclipse, so there's probably something obvious that I'm overlooking.&amp;nbsp; My target code is running version 4.0.2 of the Freescale USB stack, if that makes any difference.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a few screen captures.&amp;nbsp; It seems to randomly halt in different locations.&amp;nbsp; Any insight or suggestions would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2675_2675.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118947i3687AF93A3B0F2A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2675_2675.jpg" alt="2675_2675.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38699i90458488EFEBFC75/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.jpg" alt="capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2676_2676.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118948i9A54C18A7977CFFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2676_2676.jpg" alt="2676_2676.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/37888iED4995DB3D9399AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.jpg" alt="capture2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2677_2677.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118949iB01DCD82A7D33595/image-size/large?v=v2&amp;amp;px=999" role="button" title="2677_2677.jpg" alt="2677_2677.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/37956iD57D8A2DC0913F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture3.jpg" alt="capture3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2678_2678.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118950i1F3C32CCB72317E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2678_2678.jpg" alt="2678_2678.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38035iCA076E4287C8D747/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture4.jpg" alt="capture4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 19:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157152#M4139</guid>
      <dc:creator>jimfell</dc:creator>
      <dc:date>2012-10-29T19:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Session Unexpected Halts Execution</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157153#M4140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;unfortunately your screenshots have been compressed/blurred to the point that they are not really readable any more.&lt;/P&gt;&lt;P&gt;Looks like your CPU has been halted, and that might have multiple reasons, including an access error.&lt;/P&gt;&lt;P&gt;You could try to enable loggin in the connection settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2679_2679.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118946i727BFACBB32B8A1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2679_2679.png" alt="2679_2679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;that way you get more information.&lt;/P&gt;&lt;P&gt;You find that setting in your Launch/Debug Configuration, then press 'Edit' on the Connection in the 'Main' tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 19:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157153#M4140</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-29T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Session Unexpected Halts Execution</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157154#M4141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich.&amp;nbsp; I enabled logging, per your suggestion.&amp;nbsp; Where do I find the additional debugging information?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 14:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157154#M4141</guid>
      <dc:creator>jimfell</dc:creator>
      <dc:date>2012-10-30T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Session Unexpected Halts Execution</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157155#M4142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been able to narrow this problem down a bit.&amp;nbsp; It seems that the USB stack (as CDC) fails to transmit.&amp;nbsp; I've traced the problem to the USB_DCI_Validate_Param primitive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static uint_8 USB_DCI_Validate_Param (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 ep_num,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Endpoint Number */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 direction,&amp;nbsp; /* [IN] Endpoint direction */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean odd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Odd or even buffer */&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get bdt index mapped to endpoint number-direction and odd/even buffer */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 bdt_index = USB_DCI_Get_BDT_Index(ep_num, direction, odd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((bdt_index&amp;nbsp; != INVALID_BDT_INDEX) &amp;amp;&amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (g_bdt_elem[TRANSFER_INDEX(bdt_index)].len == &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint_16)UNINITIALISED_VAL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Incase length in bdt_elem is uninitialised return invalid index */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bdt_index = INVALID_BDT_INDEX;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return bdt_index;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fails when checking the index length:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(g_bdt_elem[TRANSFER_INDEX(bdt_index)].len == &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint_16)UNINITIALISED_VAL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... to return INVALID_BDT_INDEX.&lt;/P&gt;&lt;P&gt;Any insight you can provide would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 22:05:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157155#M4142</guid>
      <dc:creator>jimfell</dc:creator>
      <dc:date>2012-10-30T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Session Unexpected Halts Execution</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157156#M4143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that I've been able to resolve the problem.&amp;nbsp; It's a bit complicated, but it seems that I was doing several things incorrectly. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 17:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debug-Session-Unexpected-Halts-Execution/m-p/157156#M4143</guid>
      <dc:creator>jimfell</dc:creator>
      <dc:date>2012-10-31T17:05:05Z</dc:date>
    </item>
  </channel>
</rss>

