Debugging UART Send and Receive Functions
-
Configure VisionFive
2
Minicom:
sudo minicom -s
-
Select Serial port setup, and configure Minicom as follows:
-
Start VisionFive
2 minicom by
typing the following command on the PC:
minicom -o -D /dev/ttyS1
-
Configure Ubuntu minicom by typing the following:
sudo minicom -s
-
Select Serial port setup, and configure minicom as follows:
Note:
Serial Device can be detected by command
dmesg | grep tty
on Ubuntu -
Start Ubuntu minicom, you can see as follows:
Test UART Send:
-
To test UART send function, you can input characters, such as
hello ubuntu
, on the VisionFive 2 minicom. Then you will see the character are outputted on the Ubuntu minicom as the following:-
Figure on the Left: Ubuntu minicom interface
-
Figure on the Right: VisionFive 2 minicom interface
-
Test UART Receive:
-
To test UART receive, you can input characters, such as
hello visionfive
on the Ubuntu minicom. Then you will see the characters are outputted on the VisionFive 2 minicom:-
Figure on the Left: Ubuntu minicom interface
-
Figure on the Right: VisionFive 2 minicom interface
-