<?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>MQX Software SolutionsのトピックRe: Re: USB Host (HVAC demo) fail</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356460#M11608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After many try, I can't to reproduce the problem now! It is very strange,&lt;/P&gt;&lt;P&gt;But When I was debug step by step when problem occurs, there was a very strange Address mix in the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s&lt;SPAN style="color: #000080; font-size: 8pt;"&gt;&lt;STRONG&gt;tatic&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;_usb_device_usbfs_service_tk_dne_intr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1418629258058882" jivemacro_uid="_1418629258058882"&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;defined&lt;/STRONG&gt;(KHCICFG_4BYTE_ALIGN_FIX)
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;INTERNAL_DMA_ALIGN)
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 src &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (uint8_t &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;*&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;STRONG&gt;LONG_LE_TO_HOST&lt;/STRONG&gt;(&lt;STRONG&gt;BD_ADDR_RX&lt;/STRONG&gt;(ep_num, state_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;EP_INFO[ep_num]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;rx_buf_odd));
 dst &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;G&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WSTARTADDRESS &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;+&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;G&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WSOFAR;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(src &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; dst) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;USB_mem_copy&lt;/STRONG&gt;(src, dst, len);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#endif&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 07:41:32 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2014-12-15T07:41:32Z</dc:date>
    <item>
      <title>USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356453#M11601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a board with a K70FN1M0VMJ15 an USB port connected to the µC pin USB0DM/DP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the exemple given in C:\Freescale\Freescale_MQX_4_1\demo\hvac&lt;/P&gt;&lt;P&gt;I only extract the USB file (USB_Files.cpp/hpp, USB_Classes.cpp/hpp, USB_Task.cpp/hpp) and create a main.cpp like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14164719994873423" jivemacro_uid="_14164719994873423" modifiedtitle="true"&gt;
&lt;P&gt;TASK_TEMPLATE_STRUCT MQX_template_list[] =
{&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Task number, Entry point, Stack, Pri, String, Auto? */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; { USB_TASK,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_task,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2200L,&amp;nbsp;&amp;nbsp; 8L,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "USB",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK,&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; {MAIN_TASK&amp;nbsp; ,Main_task&amp;nbsp; ,&amp;nbsp;&amp;nbsp; 1000, 4,"main"&amp;nbsp;&amp;nbsp; , MQX_AUTO_START_TASK, 0, 0},
};&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*TASK*-----------------------------------------------------------------
*
* Function Name&amp;nbsp; : Main_task
* Comments&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :
*&amp;nbsp;&amp;nbsp;&amp;nbsp; This task initializes MFS and starts SHELL.
*
*END------------------------------------------------------------------*/&lt;/P&gt;
&lt;P&gt;void Main_task(uint_32 initial_data)
{&lt;/P&gt;
&lt;P&gt;
 
 for (;;)
 {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _time_delay(10000); 
&amp;nbsp; }
}&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this example do not wok find every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- I declare only the USB_TASK (no main task) with Stack = 2200 and Prio = 8 (Like in example):&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Unable to open USB device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling filesystem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling partition manager.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;USB device removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- I declare only the USB_TASK (no main task) with Stack = 2200 and Prio =&lt;STRONG&gt; 9&lt;/STRONG&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Unable to open USB device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling filesystem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling partition manager.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;USB device removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- I declare only the USB_TASK (no main task) with Stack = &lt;STRONG&gt;3000&lt;/STRONG&gt; and Prio =&lt;STRONG&gt; 9&lt;/STRONG&gt;:&amp;nbsp; (WORK FINE !!!!!!)&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;************************************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Vendor Information: Intenso Mass Storage Device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Product Identification: Rainbow Line&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Product Revision Level: 8.07&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;************************************************************************&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Installing MFS over partition...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;USB device installed to c:&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4- I declare only the USB_TASK (no main task) with Stack = &lt;STRONG&gt;4000&lt;/STRONG&gt; and Prio =&lt;STRONG&gt; 9&lt;/STRONG&gt;:&amp;nbsp; (Not work with a larger stack size!!!&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Unable to open USB device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling filesystem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling partition manager.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;USB device removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5- I declare the USB_TASK + The&amp;nbsp; &lt;STRONG&gt;Maintask&lt;/STRONG&gt; with Stack = &lt;STRONG&gt;3000&lt;/STRONG&gt; and Prio =&lt;STRONG&gt; 9&lt;/STRONG&gt;:&amp;nbsp; (Not work with an other task which do nothing!&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Unable to open USB device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling filesystem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;Error while uninstalling partition manager.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;USB device removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resume, the USB work fine and install a partition on my USB key, ONLY when I have ONE task (USB) with STackSize = 3000 and task Prio = 9.&lt;/P&gt;&lt;P&gt;In all other case, USB not work.&lt;/P&gt;&lt;P&gt;When USB not work, it is the call back awaiting after calling usb_mass_ufi_inquiry which is never received (Screenshot in attached file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an Idea?&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 08:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356453#M11601</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-11-20T08:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356454#M11602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I comment the following define in the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1\usb\host\source\host\khci\khci.h:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14164915040941775" jivemacro_uid="_14164915040941775"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;EM&gt;/* Allow workaround for bug in the peripheral when unaligned buffer @4B address is used */&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="; color: #008000; font-size: 8pt;"&gt;&lt;EM&gt;//debug AG #define KHCICFG_4BYTE_ALIGN_FIX
 &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;All work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is somebody can explain me why? And what is the effect to comment this line? It seems to me it is a patch workaround??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 13:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356454#M11602</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-11-20T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356455#M11603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, nobody know why this patch must be commented in my case?&lt;/P&gt;&lt;P&gt;If a patch was created, it was to correct a problem, so if I comment this patch, what problem can occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 07:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356455#M11603</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-11-28T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356456#M11604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are checking this workaround commented in the code. Let us do more research and we will come back with an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Garabo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 15:03:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356456#M11604</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2014-11-28T15:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356457#M11605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems there is some code issue in MQX_template_list[], which should have a zero entry in the end. Please kindly refer to the following for details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47815iCBC2165B3DDB5EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BTW, I didn't see any "USB_Files.cpp/hpp, USB_Classes.cpp/hpp, USB_Task.cpp/hpp" in the folder, just "USB_Files.c/h, USB_Classes.c/h, USB_Task.c/h", are these source files written by yourself? Please kindly help to clarify. Thanks for your patience!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356457#M11605</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-12-04T07:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356458#M11606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extract souce code from the exemple: Freescale_MQX_4_1\demo\hvac\ . Yes&amp;nbsp; It is a mistake from me, file are .c and .h. (not cpp/hpp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also made a mistake on copying code here. In my &lt;SPAN style="color: #000000;"&gt;TASK_TEMPLATE_STRUCT MQX_template_list[] I realy have the last line "{0, 0,0 ....}"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356458#M11606</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-12-04T07:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356459#M11607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to reproduce your issue, but based on the TWR-K70F120M, I found even for the failed case that you listed, the USB task can work sometimes, and the successful case is very random, everytime it failed, the BTOERR bit was got set, I am not sure if that is the same situation you met, would you please help to clarify?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47940i4D2AFF3920C757AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 09:24:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356459#M11607</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-12-08T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: USB Host (HVAC demo) fail</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356460#M11608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After many try, I can't to reproduce the problem now! It is very strange,&lt;/P&gt;&lt;P&gt;But When I was debug step by step when problem occurs, there was a very strange Address mix in the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s&lt;SPAN style="color: #000080; font-size: 8pt;"&gt;&lt;STRONG&gt;tatic&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;_usb_device_usbfs_service_tk_dne_intr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1418629258058882" jivemacro_uid="_1418629258058882"&gt;
&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG&gt;defined&lt;/STRONG&gt;(KHCICFG_4BYTE_ALIGN_FIX)
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;INTERNAL_DMA_ALIGN)
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 src &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (uint8_t &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;*&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;STRONG&gt;LONG_LE_TO_HOST&lt;/STRONG&gt;(&lt;STRONG&gt;BD_ADDR_RX&lt;/STRONG&gt;(ep_num, state_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;EP_INFO[ep_num]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;rx_buf_odd));
 dst &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;G&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WSTARTADDRESS &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;+&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; xd_ptr&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;G&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WSOFAR;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;(src &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;!=&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; dst) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;STRONG&gt;USB_mem_copy&lt;/STRONG&gt;(src, dst, len);
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;#endif&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;
 &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 07:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USB-Host-HVAC-demo-fail/m-p/356460#M11608</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2014-12-15T07:41:32Z</dc:date>
    </item>
  </channel>
</rss>

