Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use UART1 #342

Open
KLUSEK opened this issue Feb 21, 2025 · 2 comments
Open

Unable to use UART1 #342

KLUSEK opened this issue Feb 21, 2025 · 2 comments

Comments

@KLUSEK
Copy link

KLUSEK commented Feb 21, 2025

Hi eveyrone
I just got my Nano and for a project I planned to used I wanted to make use of UART1 to communicate.

So, for testing purposes I used one of those USB to TTL converters and my laptop.

Following below pinout I've connected to UART1 RX, TX and Ground, double checking that I'm connecting it in TX<->RX manner.
image

But nothing really happens.
What I tried:
WebUI and /dev/ttyS1 and /dev/ttyS2, but I though maybe I don't know how to use picocom.
so I logged in into shell and tried to send some data to my laptop using python and shell like that:


ser = serial.Serial('/dev/ttyS1', 115200)
ser.write(b'Hello')
ser.close()

stty -F /dev/ttyS1 115200 cs8 -cstopb -parenb
echo "Test" > /dev/ttyS1

But it remained silent.
Then I tried to connect to UART0, which supposed to be system log printout and it worked right away.
Then I connected to UART2 and it started to work also.

At the final attempt I connected osciloscope to UART1 TX pin, but could not registed any signals.

Do you know why my UART1 does not working properly?
Or how to debug that problem?

@azbesthu
Copy link

azbesthu commented Feb 23, 2025

Did you connected pins correctly? I just asking, because S1 and S2 are not in the same order.
I have two nanoKVM lite. One of them configured to use S1 and the other one uses S2 with python scripts.
They are working fine for me (1.3.0 base image + updated application).
Which image version do you have?

Wait a minute.... where did you find that image of the pinout?
The main github page has a similar image and that has different pinout for S1
https://github.com/sipeed/NanoKVM

Image

Hmm.. it seems the wiki page hase two different pinout for the english and chinese pages :)
https://wiki.sipeed.com/hardware/zh/lichee/RV_Nano/1_intro.html

@KLUSEK
Copy link
Author

KLUSEK commented Feb 23, 2025

😶‍🌫️

That's a good catch! I can't remember where I got pinout image exactly, but this is interesting.
I'm abroad now, but on next weekend I will confirm if that was it.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants