LPCOpen USB Virtual Serial ROM Driver Project Not Working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCOpen USB Virtual Serial ROM Driver Project Not Working

1,046 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sarangkalbande on Tue Aug 27 06:13:55 MST 2013
Hi all,
I am working on LPC 11U37 uc and tried USB project from LPCOpen(Virtual serial ).
I am using ROM USB Drivers from the project.

the main logic is like

int main(void)
{
SetupHardware();

for (;; ) {
#if defined(USB_DEVICE_ROM_DRIVER)
UsbdCdc_IO_Buffer_Sync_Task();
#endif

#if (CDC_TASK_SELECT == ECHO_CHARACTER_TASK)
EchoCharacter();
#else
CDC_Bridge_Task();
#endif

}
}


Now here PC detects USB as a COM Port but echo character function is not working?
even I have tried sending data directly using UsbdCdc_SendData(UsbBuff,4); this function
but same result.

what could be the problem?
Labels (1)
0 Kudos
5 Replies

781 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by liaochengyi on Mon Nov 18 23:03:01 MST 2013
I have the same problem with USB_CDC using ROM Driver.

It has the error code "USB Error Device Cannot Start (Code 10)"
Where is the correct driver when I used the USB_CDC sample code?

I can work with lpcopen examples using lpcopen_examples_windows_usb_drivers_v1_00.
It work fine.

But the USB_CDC sample code didn't work.

0 Kudos

781 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sarangkalbande on Thu Aug 29 22:39:11 MST 2013
thanks..can you please confirm whether the below example for USB_CDC ROM is working one

There are also working examples USB ROM here: http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0
in the folder: LPC11Uxx Keil examples New release V1.05-LPCware\USBROMDriver\USB_CDC\

because product development time is very important we don't want to waste our time in debugging the libraries.
Even using FTDI is not a good solution if the feature is available inside LPC.

I must say NXP has very bad documentation and support

good USB Support is available for STM32 and other controllers.
0 Kudos

781 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drs on Thu Aug 29 17:19:10 MST 2013
The VirtualSerial example for the LPC1347 LPCOpen Platform v1.03 using the USB ROM drivers appears to be buggy and in need of attention. We will attempt to address this problem in the near future.

Until then you may want to reference the same example in nxpUSBlib (http://www.lpcware.com/content/project/nxpusblib) which I have confirmed work properly when using the USB ROM drivers.
0 Kudos

781 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sarangkalbande on Thu Aug 29 04:30:01 MST 2013
Hi,
Thanks for the reply.
I have tried flashing your hex file 11uxx.hex and even replaced the .inf file.
the project works fine,It detects the device and echoes the character even I have tried
this with the firmware in my workspace,It works fine too but the problem is when I select ROM USB Driver,
It do not work.It detects the device but echo this do not work for USB ROM
0 Kudos

781 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by usb10185 on Wed Aug 28 10:06:30 MST 2013
Hi,

To verify your hardware, maybe try flashing the HEX files in this zip: http://www.lpcware.com/content/blog/usb-cdcacm-drivers-windows
There is an associated inf file in the zip.

There are also working examples USB ROM here: http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0
in the folder: LPC11Uxx Keil examples New release V1.05-LPCware\USBROMDriver\USB_CDC\

Thanks,
Ken


0 Kudos