xil-se / xildebug_sw

XilDebug is a CMSIS-DAP compliant debugger, UART bridge and power profiler all in one package.
5 stars 1 forks source link

CDC-UART bridge #58

Closed kbeckmann closed 6 years ago

kbeckmann commented 6 years ago

Implement an uart bridge over usb with no data loss, lag or weird behaviour.

Should also support configuring baudrate, stop bits etc.

kbeckmann commented 6 years ago

Started working on it on the kb/cdc_uart_bridge branch

kbeckmann commented 6 years ago

Current status:

CDC -> UART seems to work okay but if you send more than 64 bytes in one go, it will break.

UART -> CDC is in a very bad shape, if you spam it a little bit it dies completely and we don't get any calls to HAL_UART_RxCpltCallback for some reason. Task gets stuck waiting for rx_done_semaphore, but since the callback is never called we never get unblocked.

kbeckmann commented 6 years ago

CDC -> UART has been improved a lot. Seems to work reliably. https://asciinema.org/a/jsNkKsJ90bAJdoN9xgyS9PTP7