<?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>LPC MicrocontrollersのトピックLPC2368 - USBHwEPWrite doesn't write on SIE?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-USBHwEPWrite-doesn-t-write-on-SIE/m-p/550723#M14060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cyba on Fri Sep 04 08:32:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I have a problem with a project based on the LPC2368&amp;nbsp; micro and the LPCUSB stack (the same stack used on the CMSIS2 examples for the LPC17xx family too).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project makes a custom USB communiction with a Windows application in the host PC, using 4 Bulk Endpoint (2 IN and 2 Out). Everithing work well with USB2.0 ports on all windows o.s. and different USB mainboard hardware, but with USB3.0 ports the communication hangs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With USB3.0 the device is correctly enumerated, windows load the right driver and the host application starts the communication sending a command to the LPC2368 with a BulkOut endpoint message, I've found that the problem is with a &lt;/SPAN&gt;&lt;STRONG&gt;USBHwEPWrite &lt;/STRONG&gt;&lt;SPAN&gt; function that should answer to this command: the USBHwEPWrite seems to write the data buffer to the SIE but with a USB sniffer I can't see the message (and the host app also crash).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a part of code to explain what I mean ( BULK_CMD_IN_EP 0x82, BULK_CMD_OUT_EP 0x05), the function GetUSBCmd() is called in the BULKOUT handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
void GetUSBCmd(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* here I receive the host command */
iLen = USBHwEPRead(BULK_CMD_OUT_EP, abBulkBuf, sizeof(abBulkBuf));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( .... ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; here I make some controls on the command received from the host
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and If it is correct I reply with a confirmation message that I send here after
*/
&amp;nbsp;&amp;nbsp; iLen = USBHwEPWrite(BULK_CMD_IN_EP, abBulkBuf, 0x10);
}
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to understand what happen I've traced the status of the EP with some debug string messages and i've found that with USB3.0 after the &lt;/SPAN&gt;&lt;STRONG&gt;USBHwEPWrite &lt;/STRONG&gt;&lt;SPAN&gt; instruction the count of transferred bytes iLen seems to be correct but I can't see any message on the usb (checked with a sniffer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I've tryied to analyze the EP status with&amp;nbsp; the instruction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EPStatus = USBHwEPGetStatus(BULK_CMD_IN_EP);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I have some problems with the meaning of the reported answer (maybe I'm just stupid but I can't find this info on LPC2368 manual)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone has any idea or can help me with this issue? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cyba&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:50:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:50:24Z</dc:date>
    <item>
      <title>LPC2368 - USBHwEPWrite doesn't write on SIE?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-USBHwEPWrite-doesn-t-write-on-SIE/m-p/550723#M14060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cyba on Fri Sep 04 08:32:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I have a problem with a project based on the LPC2368&amp;nbsp; micro and the LPCUSB stack (the same stack used on the CMSIS2 examples for the LPC17xx family too).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project makes a custom USB communiction with a Windows application in the host PC, using 4 Bulk Endpoint (2 IN and 2 Out). Everithing work well with USB2.0 ports on all windows o.s. and different USB mainboard hardware, but with USB3.0 ports the communication hangs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With USB3.0 the device is correctly enumerated, windows load the right driver and the host application starts the communication sending a command to the LPC2368 with a BulkOut endpoint message, I've found that the problem is with a &lt;/SPAN&gt;&lt;STRONG&gt;USBHwEPWrite &lt;/STRONG&gt;&lt;SPAN&gt; function that should answer to this command: the USBHwEPWrite seems to write the data buffer to the SIE but with a USB sniffer I can't see the message (and the host app also crash).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a part of code to explain what I mean ( BULK_CMD_IN_EP 0x82, BULK_CMD_OUT_EP 0x05), the function GetUSBCmd() is called in the BULKOUT handler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
void GetUSBCmd(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* here I receive the host command */
iLen = USBHwEPRead(BULK_CMD_OUT_EP, abBulkBuf, sizeof(abBulkBuf));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( .... ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; here I make some controls on the command received from the host
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and If it is correct I reply with a confirmation message that I send here after
*/
&amp;nbsp;&amp;nbsp; iLen = USBHwEPWrite(BULK_CMD_IN_EP, abBulkBuf, 0x10);
}
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to understand what happen I've traced the status of the EP with some debug string messages and i've found that with USB3.0 after the &lt;/SPAN&gt;&lt;STRONG&gt;USBHwEPWrite &lt;/STRONG&gt;&lt;SPAN&gt; instruction the count of transferred bytes iLen seems to be correct but I can't see any message on the usb (checked with a sniffer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I've tryied to analyze the EP status with&amp;nbsp; the instruction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EPStatus = USBHwEPGetStatus(BULK_CMD_IN_EP);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I have some problems with the meaning of the reported answer (maybe I'm just stupid but I can't find this info on LPC2368 manual)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone has any idea or can help me with this issue? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cyba&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-USBHwEPWrite-doesn-t-write-on-SIE/m-p/550723#M14060</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2368 - USBHwEPWrite doesn't write on SIE?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-USBHwEPWrite-doesn-t-write-on-SIE/m-p/550724#M14061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cyba on Mon Sep 21 01:15:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, nobody can help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try with another question: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has anybody experience with LPC23xx micro and the LPCUSB stack (Bulk endpoint transfer) interfacing with USB3.0 host computers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2368-USBHwEPWrite-doesn-t-write-on-SIE/m-p/550724#M14061</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:25Z</dc:date>
    </item>
  </channel>
</rss>

