Content originally posted in LPCWare by hetii on Mon Sep 29 17:19:30 MST 2014
HI there.
I have LpcXpresso board with LPC1769 mcu, Rev C.
Acording to the datasheet I connect PC(usb) to pin J6-36, J6-37.
For example i upload usbd_lib_cdc_uart project from lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip
After that i don`t see (under dmesg) that my pc try enumerate my board. Nothing changes...
After digging I notice that I don`t see that port p2.9 is set as output and pullup D+ line.
So in: void Board_USBD_Init(uint32_t port){} of board.c file I add:
Chip_IOCON_PinMux(LPC_IOCON, 2, 9, IOCON_MODE_INACT, IOCON_FUNC0);
Chip_GPIO_WriteDirBit(LPC_GPIO, 2, 9, true);
Chip_GPIO_WritePortBit(LPC_GPIO, 2, 9, false);
After that dmesg show:
Sep 30 02:13:22 LG kernel: [124726.373152] usb 3-3: new full-speed USB device number 64 using xhci_hcd
Sep 30 02:13:22 LG kernel: [124726.390340] usb 3-3: New USB device found, idVendor=1fc9, idProduct=0083
Sep 30 02:13:22 LG kernel: [124726.390346] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 30 02:13:22 LG kernel: [124726.390349] usb 3-3: Product: VCOM Port
Sep 30 02:13:22 LG kernel: [124726.390351] usb 3-3: Manufacturer: NXP
Sep 30 02:13:22 LG kernel: [124726.390353] usb 3-3: SerialNumber: NXP-77
Sep 30 02:13:22 LG kernel: [124726.392073] cdc_acm 3-3:1.0: This device cannot do calls on its own. It is not a modem.
Sep 30 02:13:22 LG kernel: [124726.392119] cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Sep 30 02:13:22 LG mtp-probe: checking bus 3, device 64: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Sep 30 02:13:22 LG mtp-probe: bus: 3, device: 64 was not an MTP device
Sep 30 02:13:38 LG ModemManager[777]: <info> Creating modem with plugin 'Generic' and '1' ports
Sep 30 02:13:38 LG ModemManager[777]: <warn> Could not grab port (tty/ttyACM0): 'Cannot add port 'tty/ttyACM0', unhandled serial type'
Sep 30 02:13:38 LG ModemManager[777]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3': Failed to find primary AT port
Regards.