Page 1 of 1

UART from/to core

Posted: Wed Jun 02, 2021 2:52 pm
by shark800
Hi all,

I'd like to let user communicate with my core via serial line. I mentioned signals UART_RXD and UART_TXD but unfortunately even I'm writing to it inside core nothing happens on USB UART.

I've seen notice about mysterious item uart_mode in hps_io and when I set it to recommended value I see on USB UART MISTer linux. :(

Could you help me to understand what I do need to setup to get it working, please?

Thank you
Petr

Re: UART from/to core

Posted: Thu Jun 03, 2021 8:10 pm
by xolod79
Hello, Petr.
UART ports are connected to uart in Linux :
ttyS0 and ttyS1
You can see their status in the Linux Mister console

# cat /proc/tty/driver/serial

there is also a script
# /usr/sbin/uartmode
that controls different modes of operation, these are PPP, MIDI ..

If
# cat /dev/ttyS1
cat: /dev/ttyS1: Resource temporarily unavailable

simple run
# uartmode 0

Also you can user: minicom, nanocom to serial communication program on linux side.

and for example AO486 core Ms-dos on other side:
C:> copy yourfile.txt COM1:

Re: UART from/to core

Posted: Fri Jun 04, 2021 7:22 am
by shark800
Thank you for answer! I'll try to read it in Linux later today. But is there some way how I could expose "core UART" to Nano-DE10 USB com port? I'd like to have a chance to communicate with core from outside world (PC).

And could to tell me what bits in uart_mode in hps_io do mean, please? I tried to find some wiki page or doc but haven't found anything. I even tried to read cpp files but I'm not skilled in C++ and I haven't found anything that would explain.

Thank you
Petr

Re: UART from/to core

Posted: Wed Aug 11, 2021 2:58 pm
by danielb
Hello,

I'm bumping this because I would also very much like to know the meaning of .uart_mode.

D.