bigtreetech / CB1

OS System image for CB1
354 stars 59 forks source link

Manta M8P, CB1 and PanelDue via UART #74

Open tekknix opened 1 year ago

tekknix commented 1 year ago

Hi,

i would like to connect my 7" PanelDue to one of CB1 UART's.

But i've no idea how to set UART1 TX and RX to be enabled on this Allwinner-Thing.

With a CM4 it works, there i know how to do the Overlay and settings.

The standard UART(0) is used for the communication between the CB1 and Manta. Therefore i'm missing at least an additional UART(1).

Can someone bring some light into the darkness?

Regards MoS

Townie-au commented 3 months ago

Did you end up working this out?

frutabruta commented 2 months ago

The standard UART(0) is used for the communication between the CB1 and Manta

That is not true. CB1 communicates with manta over internal USB. The UART(0) is used for serial access to console.

You can use the serial port for something else, but you have to enable it in BoardEnv.txt, as mentioned on the homepage of this repository:

The default value is console=display, This means that the UART0 of CB1 is used as the debugging port by default. We can use MobaXterm to connect to CB1 by UART0 and debug. If klipper wants to use UART0 to control the motherboard, we need to set it to console=serial, now klippe can use UART0 as /dev/ttyS0.