<?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>LPCXpresso IDE中的主题 Re: USB VCOM works only in debug mode</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539839#M6669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marian99 on Thu Dec 06 13:07:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;From memory, that example uses semihosted output (printf calls), thus will only function as provided with the debugger attached.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/WhatIsSemiHosting&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ#CLibrary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;CodeRedSupport&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!!! This has been very helpful. Do you know how to send a string instead of a unique char?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:52:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:52:36Z</dc:date>
    <item>
      <title>USB VCOM works only in debug mode</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539835#M6665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tdqw on Mon Aug 06 09:12:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPC1769 LPCXpresso Board with example RDB1768cmsis2_usb_serial. The example works fine in debug mode. When i use Terminate button and replug (or not) usb cable i still see virtual com in my system but it doesn't respond. After power reset system on my PC cannot detect even VCOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to use VBUS (J6-19) in this example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thans for any help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tdqw&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539835#M6665</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB VCOM works only in debug mode</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539836#M6666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Aug 07 03:05:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From memory, that example uses semihosted output (printf calls), thus will only function as provided with the debugger attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/WhatIsSemiHosting&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ#CLibrary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539836#M6666</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: USB VCOM works only in debug mode</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539837#M6667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Tue Aug 07 05:16:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;From memory, that example uses semihosted output (printf calls), thus will only function as provided with the debugger attached.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A couple of "semihosted" printf are used in main_serial.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tdqw&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do I need to use VBUS (J6-19) in this example?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example enable VBUS sense function at P1.30, but it leaves PINMODE of this port as the default, on-chip pull-up. Therefore, even when this pin is open, "connection" is detected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To make it actually work as VBUS sense pin, set it to pull-down using PINMODE3 register.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;\RDB1768cmsis2_usbstack\src\usbhw_lpc.c
BOOL USBHwInit(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; // P1.18 -&amp;gt; USB_UP_LED
&amp;nbsp;&amp;nbsp;&amp;nbsp; // P1.30 -&amp;gt; VBUS
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 &amp;amp;= ~0x30000030;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL3 |= 0x20000010;
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // add this line
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINMODE3 |= 0x30000000;&amp;nbsp;&amp;nbsp;&amp;nbsp; // set VBUS pin (P1.30) to pull-down&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539837#M6667</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: USB VCOM works only in debug mode</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539838#M6668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tdqw on Tue Aug 07 08:42:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Without printf everything works properly! Nice feeling after two days trying to solve this problem;) Thank you Tsuneo for explaining VBUS issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks everyone &amp;amp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tdqw&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539838#M6668</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: USB VCOM works only in debug mode</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539839#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marian99 on Thu Dec 06 13:07:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;From memory, that example uses semihosted output (printf calls), thus will only function as provided with the debugger attached.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/WhatIsSemiHosting&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ#CLibrary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;CodeRedSupport&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!!! This has been very helpful. Do you know how to send a string instead of a unique char?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-VCOM-works-only-in-debug-mode/m-p/539839#M6669</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:36Z</dc:date>
    </item>
  </channel>
</rss>

