UART from/to core

For topics which do not fit in other specific forums.
shark800
Core Developer
Posts: 25
Joined: Sun Jan 03, 2021 11:17 am
Has thanked: 3 times
Been thanked: 44 times

UART from/to core

Unread post 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
xolod79
Core Developer
Posts: 38
Joined: Wed May 27, 2020 8:13 pm
Has thanked: 6 times
Been thanked: 35 times

Re: UART from/to core

Unread post 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:
shark800
Core Developer
Posts: 25
Joined: Sun Jan 03, 2021 11:17 am
Has thanked: 3 times
Been thanked: 44 times

Re: UART from/to core

Unread post 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
danielb
Core Developer
Posts: 227
Joined: Thu Jun 04, 2020 1:43 pm
Has thanked: 41 times
Been thanked: 64 times

Re: UART from/to core

Unread post by danielb »

Hello,

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

D.
Post Reply