<?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: LPC1769 USB Virtual Com Port build Problems in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619452#M24239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Thore,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be better if you could migrate the code to use the LPCOpen 16/32-bit Timer drivers,&amp;nbsp; the periph_timer project could help you get familiar with them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 17:49:34 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2017-01-18T17:49:34Z</dc:date>
    <item>
      <title>LPC1769 USB Virtual Com Port build Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619449#M24236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the LPC1769 to communicate over a usb as a virtual com port.&lt;/P&gt;&lt;P&gt;I dowload the CMSIS libary from:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/scottellis/lpc17xx.cmsis.driver.library/tree/master/Examples/USBDEV/USBCDC" title="https://github.com/scottellis/lpc17xx.cmsis.driver.library/tree/master/Examples/USBDEV/USBCDC"&gt;lpc17xx.cmsis.driver.library/Examples/USBDEV/USBCDC at master · scottellis/lpc17xx.cmsis.driver.library · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get some include erros: I include the lpc_chip_175x_6x libary&lt;/P&gt;&lt;P&gt;Then I get: fatal error: usbd.h: No such file or directory&amp;nbsp;&amp;nbsp; &amp;nbsp;usbcore.c&amp;nbsp;&amp;nbsp; &amp;nbsp;/usb_test/src&amp;nbsp;&amp;nbsp; &amp;nbsp;line 32&amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;BR /&gt;I include the usbd folder from the lpc_chip. After I get a lot of conflict type erros (see the sceenshot below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error_usbd.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13585i20B91EA3FF4AD9B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="error_usbd.JPG" alt="error_usbd.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I seems there is a conflict between usb.h and usbd.h. I didn't understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I try to install the driver for the virtual com port: But the driver cannot used for my x64 based system. I fond a driver in windows 10, but there is an error (see the sceenshot below). Can I used this driver from windows 10.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="usb vcom error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13669i851E58970B66BDDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="usb vcom error.JPG" alt="usb vcom error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope somebody can help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 14:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619449#M24236</guid>
      <dc:creator>thoret</dc:creator>
      <dc:date>2017-01-16T14:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 USB Virtual Com Port build Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619450#M24237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would highly recommended you to use the LPCOpen packages for development work instead of the CMSIS code packages, you can download the latest LPCOpen package from this page:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;You could use the usbd_lib_cdc or usbd_lib_cdc_uart projects as base for your application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:49:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619450#M24237</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-01-17T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 USB Virtual Com Port build Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619451#M24238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. The usb_lib_cdc project works.&lt;/P&gt;&lt;P&gt;But I build all my stuff my cmsis: A pwm signal and a timer.&lt;/P&gt;&lt;P&gt;Can I change it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PWM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;PCONP |= 1 &amp;lt;&amp;lt; 6; //&amp;nbsp; Power up the PWM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;PCLKSEL0 |= 1 &amp;lt;&amp;lt; 12; // PWM clock = microcontroller clock i.e the prescaler value is 1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL4 = (1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;4);&amp;nbsp;&amp;nbsp; &amp;nbsp;// Configure pin p2_0 for pwm modep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //LPC_PWM1-&amp;gt;CTCR =0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;PR = 0x0; /* No Prescalar */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;MCR = (1 &amp;lt;&amp;lt; 19); // Reset timer on Match0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;MR0 = 2000000; // PWM freq = 50 Hz = 20 ms&amp;nbsp; 2000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;MR1 = 150000;&amp;nbsp; // Duty Cycle of 1 ms&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;MR2 = 150000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;MR3 = 150000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;LER = (1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;PCR = (1&amp;lt;&amp;lt;9)|(1&amp;lt;&amp;lt;10)|(1&amp;lt;&amp;lt;11);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_PWM1-&amp;gt;TCR |= (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 3); &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Enable Counters,PWM module */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Timer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;PCONP |= 1 &amp;lt;&amp;lt; 1; //Power up Timer 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //LPC_SC-&amp;gt;PCLKSEL0 |= 1 &amp;lt;&amp;lt; 2; // Clock for timer = CCLK/2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;PCLKSEL0 |= 1&amp;lt;&amp;lt;1; //100 MHz&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_TIM0-&amp;gt;MR0 = 100000; // Give a value suitable for the LED blinking frequency based on the clock frequency // Bei 1000000 == 1s Takt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_TIM0-&amp;gt;MCR |= 1 &amp;lt;&amp;lt; 0; // Interrupt on Match0 compare&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_TIM0-&amp;gt;MCR |= 1 &amp;lt;&amp;lt; 1; // Reset timer on Match 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_TIM0-&amp;gt;TCR |= 1 &amp;lt;&amp;lt; 1; // Reset Timer0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(TIMER0_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_TIM0-&amp;gt;TCR = 1; // Start timer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void TIMER0_IRQHandler (void)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if((LPC_TIM0-&amp;gt;IR &amp;amp; 0x01) == 0x01) // if MR0 interrupt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&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;LPC_TIM0-&amp;gt;IR = 1; // Clear MR0 interrupt flag&lt;BR /&gt;{&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 22:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619451#M24238</guid>
      <dc:creator>thoret</dc:creator>
      <dc:date>2017-01-17T22:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 USB Virtual Com Port build Problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619452#M24239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Thore,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be better if you could migrate the code to use the LPCOpen 16/32-bit Timer drivers,&amp;nbsp; the periph_timer project could help you get familiar with them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-USB-Virtual-Com-Port-build-Problems/m-p/619452#M24239</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-01-18T17:49:34Z</dc:date>
    </item>
  </channel>
</rss>

