<?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>topic Re: SoftConnect not working sometimes in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590874#M29331</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 Mon Dec 03 18:21:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kalfalfa&lt;/STRONG&gt;&lt;BR /&gt;Is this behavior documented anywhere?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeh, it's described in CON bit of "Set Device Status" on UM10375 User manual, as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;10.11.7 Set Device Status&lt;BR /&gt;0 CON&lt;BR /&gt;The Connect bit indicates the current connect status of the device. It controls the CONNECT output pin, used for SoftConnect. Reading the connect bit returns the current connect status. &lt;STRONG&gt;This bit is cleared by hardware when the VBUS status input is LOW for more than 3 ms.&lt;/STRONG&gt; The 3 ms delay filters out temporary dips in the VBUS voltage.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kalfalfa&lt;/STRONG&gt;&lt;BR /&gt;Attaching USB_VBUS to VCC fixes the issue.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't a good fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your board is self-powered, connect MCU USB_VBUS pin to the VBUS (5V) pin of the USB connector over a protection resistor. It makes your board compliant to the USB spec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your board is bus-powered, you may do without this connection. Instead, don't select USB_VBUS at IOCON_PIO0_3.FUNC bit at the initialization. This setting internally provides VDD to the VBUS detection circuitry.&lt;/SPAN&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:25:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:25:06Z</dc:date>
    <item>
      <title>SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590871#M29328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kalfalfa on Fri Nov 30 15:39:01 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 have several boards where the SoftConnect functionality does not work. All using LPC1343. All of our designs use the same proccessor and the same circuit for softconnect for bringing up D+ through a 1.5K resistor, but on some board, sending the DEV_CON message to the SIE does not cause the USB_CONNECT pin to switch. I am forced to drive this pin directly in order to connect to USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question: what is the difference between controlling the USB_CONNECT pin directly and allowing the SIE to control it via the DEV_CON message?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question: why would this functionality not be working on only some boards? Could this be bad LPC1343 chips? All of my prototype debug boards worked fine, and I discovered this problem when we built up some gold boards to go to production.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally: On the board where softconnect does not work, USB Reset also does not work - when the PC sends a reset message, I don't receive an interrupt. The effect of this is that a working board plugged into a computer will stop working after a Reset message and need to be physically unplugged. This happens if the computer is rebooted and power doesn't get turned off to the USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590871#M29328</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590872#M29329</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 Sat Dec 01 08:21:43 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; what is the difference between controlling the USB_CONNECT pin directly and allowing the SIE to control it via the DEV_CON message?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After enabling USB_CONNECT by Set Device Status command - CON bit (DEV_CON message), the SIE watches voltage at USB_VBUS pin. If the VBUS pin is low for 3ms, the SIE drops USB_CONNECT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the USB_VBUS pin connect to the VBUS (5V) pin of the USB connector?&lt;/SPAN&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:25:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590872#M29329</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590873#M29330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kalfalfa on Mon Dec 03 10:58:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this behavior documented anywhere? It looks like a pullup was deleted from the design between prototype -&amp;gt; gold board stages for some reason. Attaching USB_VBUS to VCC fixes the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590873#M29330</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590874#M29331</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 Mon Dec 03 18:21:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kalfalfa&lt;/STRONG&gt;&lt;BR /&gt;Is this behavior documented anywhere?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeh, it's described in CON bit of "Set Device Status" on UM10375 User manual, as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;10.11.7 Set Device Status&lt;BR /&gt;0 CON&lt;BR /&gt;The Connect bit indicates the current connect status of the device. It controls the CONNECT output pin, used for SoftConnect. Reading the connect bit returns the current connect status. &lt;STRONG&gt;This bit is cleared by hardware when the VBUS status input is LOW for more than 3 ms.&lt;/STRONG&gt; The 3 ms delay filters out temporary dips in the VBUS voltage.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: kalfalfa&lt;/STRONG&gt;&lt;BR /&gt;Attaching USB_VBUS to VCC fixes the issue.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't a good fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your board is self-powered, connect MCU USB_VBUS pin to the VBUS (5V) pin of the USB connector over a protection resistor. It makes your board compliant to the USB spec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your board is bus-powered, you may do without this connection. Instead, don't select USB_VBUS at IOCON_PIO0_3.FUNC bit at the initialization. This setting internally provides VDD to the VBUS detection circuitry.&lt;/SPAN&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:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590874#M29331</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590875#M29332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kalfalfa on Tue Dec 04 11:23:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On our design VCC is USB VBUS (+5V) - and we do have a resistor. This part of the circuit just got missed when going to the gold board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm interested in your advise about not having to use USB_VBUS when the board is bus-powered. Our board are bus-powered, and I have tried leaving PIO0_3 configured as GPIO, but in this case USB never connects, so I don't think it provides VDD to the detection circuitry internally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I have noticed that if I enable the USB_VBUS function, and also enable the pin pullup - PIO0_3 = 0xD1 - then it will behave as if it detect USB voltage even if the pin is not connected. Before, I was not using the pull-up, but I noticed that the ROM USB driver configure this pin with a pullup, and that USB stack was working properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think it's safe to rely on the internal pin pullup for VBUS detection, or could this fail sometimes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:25:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590875#M29332</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590876#M29333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kalfalfa on Tue Dec 04 11:33:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On our design VCC is USB VBUS (+5V) - and we do have a resistor. This part of the circuit just got missed when going to the gold board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm interested in your advise about not having to use USB_VBUS when the board is bus-powered. Our board are bus-powered, and I have tried leaving PIO0_3 configured as GPIO, but in this case USB never connects, so I don't think it provides VDD to the detection circuitry internally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I have noticed that if I enable the USB_VBUS function, and also enable the pin pullup - PIO0_3 = 0xD1 - then it will behave as if it detect USB voltage even if the pin is not connected. Before, I was not using the pull-up, but I noticed that the ROM USB driver configures this pin with a pullup, and that USB stack was working properly - it's just my stack which was not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think it's safe to rely on the internal pin pullup for VBUS detection, or could this fail sometimes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590876#M29333</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590877#M29334</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 Dec 04 13:38:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Our board are bus-powered, and I have tried leaving PIO0_3 configured as GPIO, but in this case USB never connects, so I don't think it provides VDD to the detection circuitry internally.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Silicon bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10375 User manual describes this feature clearly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[I]10.8 Pin description&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VBUS: VBUS status input. [B]When this function is not enabled via its corresponding IOCONFIG register, it is driven HIGH internally.[/B][/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The errata of LPC1343 doesn't list up this bug yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But historically, since the age of LPC214x, this feature has often suffered silicon bug ;-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Do you think it's safe to rely on the internal pin pullup for VBUS detection&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;If your board has just short trace from USB_VBUS pin, internal pull-up will do.&lt;/SPAN&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:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590877#M29334</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: SoftConnect not working sometimes</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590878#M29335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kalfalfa on Wed Dec 05 16:22:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the help. All is working properly now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SoftConnect-not-working-sometimes/m-p/590878#M29335</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:25:09Z</dc:date>
    </item>
  </channel>
</rss>

