<?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>Kinetis MicrocontrollersのトピックRe: USB host KL26 problems with CDC-ACM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734117#M44871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matteo Davanzo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My recommendation is to use the latest version of USB stack, it comes with the SDK software that can be downloaded in our page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has resolved some bugs that were found in this old version which now is no longer supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Dec 2017 01:15:25 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2017-12-02T01:15:25Z</dc:date>
    <item>
      <title>USB host KL26 problems with CDC-ACM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734115#M44869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm facing with some problem working with the usb host (stack 4.1.1) on a kl26 microcontroller, interfacing with a cellular module.&lt;/P&gt;&lt;P&gt;I've tried with 2 different series module of the same manufacturer.&lt;/P&gt;&lt;P&gt;With the first one everything works fine, i see the CDC-ACM interfaces, i can choose one and i can send / receive data through USB.&lt;/P&gt;&lt;P&gt;With the same code, on the second module something goes wrong. I can enumerate the device, i see the CDC-ACM interfaces and i'm able to choose one. Problems comes in when i try to send 4 bytes of data. What i've noticed is that something goes wrong with the USB_INTERRUPT_PIPE on endpoint 2. The response is "Bus timeout".&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other module everything works fine and it responds with one data0 code result.&lt;/P&gt;&lt;P&gt;The other different thing is that the first module for the interrupt pipe uses the endpoint 1 and for data (in and out) the endpoint 2, instead the second module uses for interrupt pipe endpoint 2 and for data (in and out) endpoint 1.&lt;/P&gt;&lt;P&gt;I don't think the different numeration of the endpoints could be a problem but i'm really struggeling to understand what is happening without any result at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea could be really appreciated. I attach some debug of the two cases, maybe could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;______________________________________________________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Working module flow:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;usb_hostdev_open pipe ep 1&lt;BR /&gt;pipeptr ep 1 dir 0&lt;BR /&gt;pipe interrupt&lt;BR /&gt;ptr interr_pipe 0x20004EAC&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 0 Class = 2 SubClass = 2&lt;BR /&gt;usb_hostdev_open pipe ep 1&lt;BR /&gt;pipeptr ep 2 dir 0&lt;BR /&gt;pipe bulk&lt;BR /&gt;usb_hostdev_open pipe ep 2&lt;BR /&gt;pipeptr ep 2 dir 1&lt;BR /&gt;pipe bulk&lt;BR /&gt;ptr in_pipe 0x20004EE4&lt;BR /&gt;ptr out_pipe 0x20004F1C&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 1 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 2 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 3 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 4 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 5 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 6 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 7 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 8 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 9 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 10 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 11 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 12 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 13 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int 0 selected -&lt;BR /&gt;- Device installed -&lt;BR /&gt;- CDC data int 1 selected -&lt;/P&gt;&lt;P&gt;epN 0 , pipeType 0&lt;BR /&gt;TR_CTRL epnum 0 , pipe-&amp;gt;bdptr = 0x20004C18, ep_ptr-&amp;gt;tx_bd = 1&lt;BR /&gt;result bd = 0x00080008&lt;BR /&gt;bd switch = 0x02&lt;BR /&gt;epN 0 , pipeType 0&lt;BR /&gt;TR_IN epnum 0 , pipe-&amp;gt;bdptr = 0x20004C08, ep_ptr-&amp;gt;rx_bd = 1&lt;BR /&gt;result bd = 0x00000068&lt;BR /&gt;bd switch = 0x0A&lt;BR /&gt;TR_IN epnum 0 , pipe-&amp;gt;bdptr = 0x20004C00, ep_ptr-&amp;gt;rx_bd = 0&lt;BR /&gt;result bd = 0x0000006C&lt;BR /&gt;bd switch = 0x0B&lt;BR /&gt;epN 1 , pipeType 3&lt;BR /&gt;TR_IN epnum 1 , pipe-&amp;gt;bdptr = 0x20004C08, ep_ptr-&amp;gt;rx_bd = 1&lt;BR /&gt;result bd = 0x000A000C&lt;BR /&gt;bd switch = 0x03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TR_MSG_SEND: remain 4&lt;BR /&gt;epN 2 , pipeType 2&lt;BR /&gt;TR_OUT epnum 2 , pipe-&amp;gt;bdptr = 0x20004C10, ep_ptr-&amp;gt;tx_bd = 0&lt;BR /&gt;result bd = 0x00040008&lt;BR /&gt;bd switch = 0x02&lt;BR /&gt;res 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;______________________________________________________________&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Not working module flow:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;usb_hostdev_open pipe ep 1&lt;BR /&gt;pipeptr ep 2 dir 0&lt;BR /&gt;pipe interrupt&lt;BR /&gt;ptr interr_pipe 0x20004EAC&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 0 Class = 2 SubClass = 2&lt;BR /&gt;usb_hostdev_open pipe ep 1&lt;BR /&gt;pipeptr ep 1 dir 0&lt;BR /&gt;pipe bulk&lt;BR /&gt;usb_hostdev_open pipe ep 2&lt;BR /&gt;pipeptr ep 1 dir 1&lt;BR /&gt;pipe bulk&lt;BR /&gt;ptr in_pipe 0x20004EE4&lt;BR /&gt;ptr out_pipe 0x20004F1C&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 1 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 2 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 3 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 4 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 5 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 6 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 7 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 8 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 9 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int attach Event - State = att Intf N = 10 Class = 2 SubClass = 2&lt;BR /&gt;- CDC data int attach event - State = att Intf N = 11 Class = 10 SubClass = 0&lt;BR /&gt;- CDC ctrl int 0 selected -&lt;BR /&gt;- Device installed -&lt;BR /&gt;- CDC data int 1 selected -&lt;/P&gt;&lt;P&gt;epN 0 , pipeType 0&lt;BR /&gt;TR_CTRL epnum 0 , pipe-&amp;gt;bdptr = 0x20004C18, ep_ptr-&amp;gt;tx_bd = 1&lt;BR /&gt;result bd = 0x00080008&lt;BR /&gt;bd switch = 0x02&lt;BR /&gt;epN 0 , pipeType 0&lt;BR /&gt;TR_IN epnum 0 , pipe-&amp;gt;bdptr = 0x20004C08, ep_ptr-&amp;gt;rx_bd = 1&lt;BR /&gt;result bd = 0x0000006C&lt;BR /&gt;bd switch = 0x0B&lt;BR /&gt;epN 2 , pipeType 3&lt;BR /&gt;TR_IN epnum 2 , pipe-&amp;gt;bdptr = 0x20004C00, ep_ptr-&amp;gt;rx_bd = 0&lt;BR /&gt;result bd = 0x00000040&lt;BR /&gt;bd switch = 0x00&lt;BR /&gt;res = atom_tr_to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TR_MSG_SEND: buf A , remain 4&lt;BR /&gt;epN 1 , pipeType 2&lt;BR /&gt;TR_OUT epnum 1 , pipe-&amp;gt;bdptr = 0x20004C10, ep_ptr-&amp;gt;tx_bd = 0&lt;BR /&gt;result bd = 0x00040000&lt;BR /&gt;bd switch = 0x00&lt;BR /&gt;&lt;SPAN&gt;res =&amp;nbsp;&lt;/SPAN&gt;atom_tr_to&lt;BR /&gt;TR_OUT epnum 1 , pipe-&amp;gt;bdptr = 0x20004C18, ep_ptr-&amp;gt;tx_bd = 1&lt;BR /&gt;result bd = 0x00040000&lt;BR /&gt;bd switch = 0x00&lt;BR /&gt;&lt;SPAN&gt;res =&amp;nbsp;&lt;/SPAN&gt;atom_tr_to&lt;BR /&gt;TR_OUT epnum 1 , pipe-&amp;gt;bdptr = 0x20004C10, ep_ptr-&amp;gt;tx_bd = 0&lt;BR /&gt;result bd = 0x00040000&lt;BR /&gt;bd switch = 0x00&lt;BR /&gt;&lt;SPAN&gt;res =&amp;nbsp;&lt;/SPAN&gt;atom_tr_to&lt;BR /&gt;TR_OUT epnum 1 , pipe-&amp;gt;bdptr = 0x20004C18, ep_ptr-&amp;gt;tx_bd = 1&lt;BR /&gt;result bd = 0x00040000&lt;BR /&gt;bd switch = 0x00&lt;BR /&gt;&lt;SPAN&gt;res =&amp;nbsp;&lt;/SPAN&gt;atom_tr_to&lt;BR /&gt;res -16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;______________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 13:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734115#M44869</guid>
      <dc:creator>matteodavanzo</dc:creator>
      <dc:date>2017-11-23T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: USB host KL26 problems with CDC-ACM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734116#M44870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've discovered something. A strange thing happens.&lt;/P&gt;&lt;P&gt;If i call usb host init and start calling usb_khci_task before the completion of the boot up of the module, everything works fine.&lt;/P&gt;&lt;P&gt;If i wait 20 seconds from the power up of the module and then i call usb host init and usb khci task the same behaviour of the previous message happens, it always give to me "bus timeout".&lt;/P&gt;&lt;P&gt;Any ideas about that?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Matteo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 10:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734116#M44870</guid>
      <dc:creator>matteodavanzo</dc:creator>
      <dc:date>2017-11-24T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: USB host KL26 problems with CDC-ACM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734117#M44871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matteo Davanzo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My recommendation is to use the latest version of USB stack, it comes with the SDK software that can be downloaded in our page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has resolved some bugs that were found in this old version which now is no longer supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 01:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-KL26-problems-with-CDC-ACM/m-p/734117#M44871</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-12-02T01:15:25Z</dc:date>
    </item>
  </channel>
</rss>

