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
UART from/to core
-
- Core Developer
- Posts: 39
- Joined: Wed May 27, 2020 8:13 pm
- Has thanked: 6 times
- Been thanked: 41 times
Re: UART from/to core
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:
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:
-
- Core Developer
- Posts: 25
- Joined: Sun Jan 03, 2021 11:17 am
- Has thanked: 3 times
- Been thanked: 46 times
Re: UART from/to core
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
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