<?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のトピックCDC sample problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569572#M17964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Mon Jan 19 09:55:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Our LPC4370 based system uses the USB CDC API. Occasionally, the host cannot communicate with the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to reproduce the same problem by running usbd_rom_dfu-composite on the Lpc-Link2 board. When&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;running the attached python script in a loop, the LPC stops echoing the data after many iterations. I have only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;seen the problem occur on a linux host. It does not happen on a Windows host using the same communication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script. The usbd_rom_dfu-composite sample includes the artf45032 patch for CDC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen familiar issues in the CDC ROM implementation? Am I missing a patch? I'm using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen V2.12.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337867"&gt;serial.py_.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:55:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:55:36Z</dc:date>
    <item>
      <title>CDC sample problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569572#M17964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Mon Jan 19 09:55:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Our LPC4370 based system uses the USB CDC API. Occasionally, the host cannot communicate with the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to reproduce the same problem by running usbd_rom_dfu-composite on the Lpc-Link2 board. When&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;running the attached python script in a loop, the LPC stops echoing the data after many iterations. I have only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;seen the problem occur on a linux host. It does not happen on a Windows host using the same communication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script. The usbd_rom_dfu-composite sample includes the artf45032 patch for CDC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen familiar issues in the CDC ROM implementation? Am I missing a patch? I'm using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen V2.12.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337867"&gt;serial.py_.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569572#M17964</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: CDC sample problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569573#M17965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Tue Jan 20 03:18:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some more information on this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the LPC stops sending answers, it is always after the first message in the script. An external&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB analyzer shows that the LPC no longer sends data in this case while in the debugger we see&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that WriteEP is still being called successfully. I assume the CDC initialization somehow triggers a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;problem in the LPC USB stack. Indeed the USB analyzer shows a slightly different setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sequence for a Windows host as compared to the same script running on the Linux host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the problem happens, ioctl(USBDEVFS_RESET) makes the communication working OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569573#M17965</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDC sample problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569574#M17966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Thu Feb 12 08:02:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We no longer see this problem after upgrading the linux kernel from 3.12 to 3.13.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The CDC issues appears to be a linux specific problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CDC-sample-problem/m-p/569574#M17966</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:55:37Z</dc:date>
    </item>
  </channel>
</rss>

