glip icon indicating copy to clipboard operation
glip copied to clipboard

Auto-detect UART

Open wallento opened this issue 9 years ago • 2 comments
trafficstars

We should start the UART transfers with a training sequence and auto-detect the baud speed with it.

wallento avatar Jul 09 '16 14:07 wallento

@wallento that's done, isn't it?

imphil avatar Aug 17 '16 20:08 imphil

currently auto-detect seems to be broken, connecting with speed=12000000 works for our standard OpTiMSoC design, without the speed option I get this:

$ opensocdebugd uart device=/dev/ttyUSB1
Open SoC Debug Daemon
Backend: uart
glip: gb_uart_open: Given speed 115200 did not work with device. Try autodetect..
glip: gb_uart_open: Could not autodetect baud rate.
glip: glip_open: Cannot open backend
glip: glip_write_b: No connection; you need to call glip_open() first!
glip: glip_read_b: No connection; you need to call glip_open() first!
opensocdebugd: /home/no56hud/src/optimsoc/external/opensocdebug/software/src/connection-standalone.c:67: receiver_thread_function: Assertion `rv == 0' failed.
Aborted

imphil avatar Sep 01 '16 18:09 imphil