Power & Source of Big Ideas

Enable multiple UARTs

Moderators: chensy, FATechsupport

Hi,

I noticed that npi-config makes it possible to enable 4 different UARTs.
In the wiki (http://wiki.friendlyarm.com/wiki/index. ... _Dimension) only pins for UART0 (debug), UART1 and UART3 are documented, so I am wondering which pins are used for UART2 ?

I want to connect at least 3 devices via UART to the NanoPi Duo.

In case there is no UART2 how do I disable the serial console at UART0 ?
lupi wrote:
Hi,

I noticed that npi-config makes it possible to enable 4 different UARTs.
In the wiki (http://wiki.friendlyarm.com/wiki/index. ... _Dimension) only pins for UART0 (debug), UART1 and UART3 are documented, so I am wondering which pins are used for UART2 ?

I want to connect at least 3 devices via UART to the NanoPi Duo.

In case there is no UART2 how do I disable the serial console at UART0 ?


For sure you need to poke u-boot. Chech those threads, but I haven't done it yet:
https://forum.armbian.com/topic/2697-ho ... via-uart0/
https://forum.armbian.com/topic/5932-di ... ro/?page=2
I successfully disabled the serial console at UART 0 by setting console=tty1 instead of the previous ttyS0 inside /boot/boot.cmd . After that mkimage needs to be executed as shown in the comments.

So right now I have two UARTs (ttyS0 and ttyS1) which can be used.

Unfortunately I couldn't enable another UART. When enabling all serial ports in npi-config (and also disabling SPI which uses the same pins) communication via the documented pins in http://wiki.friendlyarm.com/wiki/index. ... _Dimension is still not possible. I also tried all ttyS0 until ttyS7 .

How is it possible to enable the UART3 which is documented in the wiki?

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 59 on Thu Aug 30, 2018 2:59 pm

Users browsing this forum: No registered users and 1 guest