USB-Serial bridging with LPC5x / any generic projects avail?

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

USB-Serial bridging with LPC5x / any generic projects avail?

733 Views
dav1
Contributor V

I've been looking for a generic implementation that implements a run-time (by the host) configurable serial bridge that is completely driverless.

The closest thing would be this part: CY7C65215 (https://www.cypress.com/file/129956/download)
it has 2x CDC UART's (compliant so driverless on mac, linux as opposed to FTDI), 2x SPI and 2x I2C.

Performance should not be worse than the peripheral on the MCU it runs on. I believe python with asyncio + libusb would do well on the host-side to keep it generic.

Anyone seen something like this or do NXP happen to have some CDC bridging examples for LPC or i.MXRT series that comes with a side-channel (or additional cdc endpoint) to configure baud-rate, flow-control, etc.!?

Labels (3)
0 Kudos
4 Replies

687 Views
belmontbob59
Contributor IV

For Windows 10 you no longer need to worry about providing kernel driver support for CDC; It is already included in the OS as a class driver. i.e. plug and play.

belmontbob59_0-1609871615496.png

https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/supported-usb-classes.

 

0 Kudos

725 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, David,

The LPC55xx supports CDC class as device as you expected, in CDC class, it has two channel based on CDC class protocol, one channel is controlling channel, with which the host side can set up baud rate, data format, data width..., another channel is data channel, with which data can be transferred.

In SDK package, we have implemented the usb stack including CDC, and we have developed a lot of examples.

https://mcuxpresso.nxp.com/en/welcome

With the CDC class, you can transmit and receive data via USB, with the data, you can transfer them via SPI, uart, I2C, I think it is so-called bridge.

Hope it can help you

BR

XiangJun Rong

0 Kudos

715 Views
dav1
Contributor V

Hi XiangJun and thanks for replying

- Does NXP provide any host code to interact with the custom "configuration CDC channel"?

- For I2C, SPI etc, we can of course add this ourselves, was just curious if there are some nxp-provided libraries similar to what Cypress has for their KitProg3's, and Serial Bridge IC's that cover all scenarios incl. the Host side.

- Is there a way to access this code without installing the full tool-chain? i.e. is the CDC driver and example code available in a git repository somewhere?

 

0 Kudos

703 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, David,

Unfortunately, I have not idea how to develop the USB project on PC side based on Windows.

BR

XiangJun Rong

0 Kudos