<?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のトピックRe: LPC11U68 &amp;amp; USB CDC: why doesn't it send a message until it recevies one?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1434425#M48337</link>
    <description>&lt;P&gt;Yeah, it seems the USB wasn't fully enumerated, or whatever.&lt;/P&gt;&lt;P&gt;Since my code didn't do a connection check, the string just went into a buffer and never came out till it got "bumped" with a new character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a delay fixed the glitch.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Mar 2022 22:42:31 GMT</pubDate>
    <dc:creator>chrispflieger</dc:creator>
    <dc:date>2022-03-26T22:42:31Z</dc:date>
    <item>
      <title>LPC11U68 &amp; USB CDC: why doesn't it send a message until it recevies one?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1432361#M48304</link>
      <description>&lt;P&gt;I'm using the CDC / VCOM example for USB ROM and I modified it a bit to be interrupt driven.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to write "hello world" on startup, and I call USBD_API-&amp;gt;hw-&amp;gt;WriteEP(), but it doesn't show up on the terminal until I type a character on the terminal; it's like it wait for something first. After the first, it seemingly work OK, but it's really odd. Is there something I'm missing?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 04:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1432361#M48304</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2022-03-23T04:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 &amp; USB CDC: why doesn't it send a message until it recevies one?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1433335#M48327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you use the vcom_write("Hello World!!\r\n", 15);? If is the same as you call the USBD_API-&amp;gt;hw-&amp;gt;WriteEP(),but the status is checked before it is called.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Virtual com port write routine*/&lt;BR /&gt;uint32_t vcom_write(uint8_t *pBuf, uint32_t len)&lt;BR /&gt;{&lt;BR /&gt;VCOM_DATA_T *pVcom = &amp;amp;g_vCOM;&lt;BR /&gt;uint32_t ret = 0;&lt;/P&gt;
&lt;P&gt;if ( (pVcom-&amp;gt;tx_flags &amp;amp; VCOM_TX_CONNECTED) &amp;amp;&amp;amp; ((pVcom-&amp;gt;tx_flags &amp;amp; VCOM_TX_BUSY) == 0) ) {&lt;BR /&gt;pVcom-&amp;gt;tx_flags |= VCOM_TX_BUSY;&lt;/P&gt;
&lt;P&gt;/* enter critical section */&lt;BR /&gt;NVIC_DisableIRQ(USB0_IRQn);&lt;BR /&gt;ret = USBD_API-&amp;gt;hw-&amp;gt;WriteEP(pVcom-&amp;gt;hUsb, USB_CDC_IN_EP, pBuf, len);&lt;BR /&gt;/* exit critical section */&lt;BR /&gt;NVIC_EnableIRQ(USB0_IRQn);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return ret;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 09:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1433335#M48327</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-24T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 &amp; USB CDC: why doesn't it send a message until it recevies one?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1434425#M48337</link>
      <description>&lt;P&gt;Yeah, it seems the USB wasn't fully enumerated, or whatever.&lt;/P&gt;&lt;P&gt;Since my code didn't do a connection check, the string just went into a buffer and never came out till it got "bumped" with a new character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a delay fixed the glitch.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 22:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-amp-USB-CDC-why-doesn-t-it-send-a-message-until-it/m-p/1434425#M48337</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2022-03-26T22:42:31Z</dc:date>
    </item>
  </channel>
</rss>

