Serial UART in Raspbian

Post Reply
chadders2708
Posts: 1
Joined: Wed Mar 06, 2019 1:34 pm
4kOpen Owner: Yes
Serial UART in Raspbian

Post by chadders2708 » Mon Apr 15, 2019 5:21 pm

Hi

First, please forgive me if this is a dumb question!

I'm trying to port a small C program I originally made for the Raspberry Pi over to the 4K open board as I need something with a bit more horsepower.

The program needs to read in some serial data but I'm struggling to get anything from the on-board UART

I've tried via /dev/tty, /dev/tty0, /dev/tty10 /dev/ttaAS0 .. in fact most of the most likely terminal devices under /dev/ but with no luck.

Can anyone tell me which is the correct one to use? Are there other config changes I need to make elsewhere to enable the UART or get it to work (perhaps its in use by the Linux OS ? )

Many Thanks

Jon

MattMunro
Posts: 13
Joined: Mon Oct 08, 2018 10:49 am
4kOpen Owner: Yes
Re: Serial UART in Raspbian

Post by MattMunro » Tue Apr 16, 2019 4:07 pm

Hi,
Currently the serial console outputs to ttyAS0, this is set up in the uenv.txt for Raspbian.
Along with this, it is possible to change the device tree to enable alternative uart lines (checkout https://www.4kopen.com/wiki/advanced-ti ... -connector for the possible uart pins)
Thanks,
Matt


Post Reply