Page 1 of 1

NanoPi M4 Serial Connection problem

Posted: Sun Dec 02, 2018 10:41 pm
by inxpc
I'm trying to use the debug UART of the Nano Pi M4.
I connect via PuTTy. I set correct COM number, speed 1500000, but all I see is garbage.
I was expecting the log of the system boot and be able to issue some commands after boot sequence is complete.
I installed latest FriendlyDesktop on SD card.

I'm not using the counterfeit Prolific USB-to-serial, the chip on my converter is PL2303TA (Windows 10 drivers work with this one with no need to downgrade).

What else can I do?

When I tried to change the speed to e.g. 1100000, I could type in all of the numbers 1-9, and top keyboard row letters (with occasional garbage).

Re: NanoPi M4 Serial Connection problem

Posted: Mon Dec 03, 2018 8:59 am
by guidol
inxpc wrote:
I'm trying to use the debug UART of the Nano Pi M4.
I connect via PuTTy. I set correct COM number, speed 1500000, but all I see is garbage.

When I tried to change the speed to e.g. 1100000, I could type in all of the numbers 1-9, and top keyboard row letters (with occasional garbage).


Where did you get the information about the speed of 1.500.000 or 1.100.000 Baud for the serial port?
I couldnt find the baudrate at http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4

Normally - the NanoPi and other boards Board I know - does use 115.200 Baud for the serial port.
The only other board was a Orane Pi i96 with 921.600 Baud (strange).

So - first try 115200 Baud and maybe XON/XOFF has handshake.

Re: NanoPi M4 Serial Connection problem

Posted: Mon Dec 03, 2018 9:38 pm
by inxpc
1.100.000 was just my experimenting.
the 1.500.000 is right on the page you put a link to:
It says:
Debug: one Debug UART, 4 Pin 2.54mm header, 3V level, 1500000bps

Re: NanoPi M4 Serial Connection problem

Posted: Tue Dec 04, 2018 10:29 am
by guidol
inxpc wrote:
1.100.000 was just my experimenting.
the 1.500.000 is right on the page you put a link to:
It says:
Debug: one Debug UART, 4 Pin 2.54mm header, 3V level, 1500000bps

OK - I didnt searched for DEBUG - only for "serial" :)

1.500.000 is a very high Baudrate and I also got problem with the most TTL-USB adapters with 921.600 Baud at the Orange Pi i96.

The only TTL-USB adapter I did get to work at this rate was a CP2102.

The original FriendlyARM adpater does use a CH340T which didnt workes on the i96 ;(

Re: NanoPi M4 Serial Connection problem

Posted: Tue Dec 25, 2018 6:29 pm
by pavelectric
I tried to work with the M4 board through the DEBUG connector.
Everything works, but only at a speed of 1,500,000 bps. It is quite high and not ordinary speed.
What is used as a USB-TTL adapter:
Image
1. - CH340G USB To TTL (UP in picture)
2. - CP2102 MICRO USB to TTL (DOWN in picture)
All adapters are ordered in China (Ali ...).
In general, I would like to reduce the speed to 115 200, since I think everyone will have adapters for these speeds.
What are the options for reducing the speed of the built-in TTL port for debugging?