Hi there.
My name is Fonseca and I have some doubts about USB Real-Time library. Would anyone clear up my doubts please? I´ve a development kit based on LPC1857 microcontroller. This microcontroller has two USBs (both are available in my kit), and I want to use both as Device USBS, working as CDC (I mean, I want to use these two USBs as two Virtual COM Ports). I have spent some time reading and practicing about RL-USB library, and I coudn´t find a way to connect, disconnect, get data and put data in USBs individually, what seems that two USB management aren´t possible using RL-USB library. Is this true? If yes, is there another library for working with two USBs as Virtual COM ports?
Best Regards.
Take a look at existing VirtualCOM examples in device family packs found here: http://www.keil.com/dd2/pack/
There are a number of devices that have two USB ports and the following examples show how to use two USB Device CDC connections:
LPC1800 Device family pack \Pack\Keil\LPC1800_DFP\2.2.0\Boards\Keil\MCB1800\Middleware\USB\Device\VirtualCOM
LPC4300 Device family pack \Pack\Keil\LPC4300_DFP\2.2.2\Boards\Keil\MCB4300\Middleware\USB\Device\VirtualCOM
STM32F2 Device family pack \Pack\Keil\STM32F2xx_DFP\2.1.0\MDK\Boards\Keil\MCBSTM32F200\Middleware\USB\Device\VirtualCOM
STM32F4 Device family pack \Pack\Keil\STM32F4xx_DFP\2.3.0\MDK\Boards\Keil\MCBSTM32F400\Middleware\USB\Device\VirtualCOM
Robert and Georg, thank you very much!!