LPCXpresso LPC1769 USBCDC example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCXpresso LPC1769 USBCDC example

1,940件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ernesto1960 on Fri Jan 17 14:26:35 MST 2014
-Using the lpc1769 expresso board and having problems with the VCOMDEMO.
-Have connected the D+ D- gnd and Vbus to the USB cable ,powering the expresso board thru the LPCLink usb port.
-Windows is not recognizing the usb device after adding the inf file provided in the vcomdemo src directory.

Are my connections ok ?
What's is the best example to test the USB CDC?

Thanks
EB
0 件の賞賛
返信
7 返答(返信)

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ndjekic on Fri May 27 04:21:59 MST 2016
Thank you for answering, but I found problem. I'm using PuTTy tel, and there was problem with Putty. When I wanted to send something, it just overwritten current value. I didn't notice that local echo function was on auto scale, on PuTTy, so that made most of problems. But thank you one more time, this post generally was really helpful.  :)
0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 26 04:28:02 MST 2016

Quote: ndjekic
I can't figure out which functions are used to send chars from PC to LPC1769. I'm trying to figure it out.



:quest:

This sample is the LPC176x code, so obviously you need a terminal program for your PC to open the COM port and receive / transmit data  :O

Something like TeraTerm...
0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ndjekic on Thu May 26 01:01:03 MST 2016
I can't figure out which functions are used to send chars from PC to LPC1769. I'm trying to figure it out.
0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 26 00:42:10 MST 2016

Quote: ndjekic
Anything that is helpful is welcome.



So what's wrong with usbd_lib_cdc  :quest:  :~  :O 


Quote:
Virtual Comm port example

Example description
The example shows how to us USBD LIB stack to creates a virtual comm port.

0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ndjekic on Wed May 25 06:29:11 MST 2016
Hey,

Does any1 know , how can I send data from PC to LPC1769 wiht USB cable. I have USB CDC lib, and I figure out how to send from controller to PC some value, but now I want to send something from PC to controller. Does any1 have example for this or anything? Anything that is helpful is welcome.

Thank you.
0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mister_T on Mon May 23 10:31:15 MST 2016
I can confirm that this fixes it. Change function Board_USBD_Init() in board.c. Only new line is the one commented as USB CONNECT. New function is as follows:

void Board_USBD_Init(uint32_t port)
{
/* VBUS is not connected on the NXP LPCXpresso LPC1769, so leave the pin at default setting. */
/*Chip_IOCON_PinMux(LPC_IOCON, 1, 30, IOCON_MODE_INACT, IOCON_FUNC2);*/ /* USB VBUS */

Chip_IOCON_PinMux(LPC_IOCON, 2, 9, IOCON_MODE_INACT, IOCON_FUNC1); //USB connect
Chip_IOCON_PinMux(LPC_IOCON, 0, 29, IOCON_MODE_INACT, IOCON_FUNC1);/* P0.29 D1+, P0.30 D1- */
Chip_IOCON_PinMux(LPC_IOCON, 0, 30, IOCON_MODE_INACT, IOCON_FUNC1);

LPC_USB->USBClkCtrl = 0x12;                /* Dev, AHB clock enable */
while ((LPC_USB->USBClkSt & 0x12) != 0x12);
}
0 件の賞賛
返信

1,772件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Mon Jan 20 05:10:33 MST 2014
Do you activate P2.9 (USB connect)? Because without a pullup on D+ the pc will not recognize your USB connection. D+ should be pulled high when connecting if you want the pc to enumerate the USB connection.
0 件の賞賛
返信