Difference between revisions of "How to debug"

From ESS-WIKI
Jump to: navigation, search
Line 61: Line 61:
 
[[File:RK3288 Debian Debug Port Number.png|800x572px|RK3288 Debian Debug Port Number.png]]
 
[[File:RK3288 Debian Debug Port Number.png|800x572px|RK3288 Debian Debug Port Number.png]]
  
Putty is very populate tool. [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Download putty here.]
+
Putty is very populate tool on Windows. [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Download putty here.]
  
 
Run PUTTY.exe, select Connection type of "Serial" , input COM port found in Device Manager.
 
Run PUTTY.exe, select Connection type of "Serial" , input COM port found in Device Manager.
Line 70: Line 70:
  
 
Then Click "Open" to start debug console.
 
Then Click "Open" to start debug console.
 +
 +
 +
 +
= Debug on Ubuntu =
 +
 +
"Kermit" and "MiniCom" are very famous tools on Ubuntu.
 +
 +
 +
 +
== Kermit ==
 +
 +
'''Install Kermit : '''
 +
<pre>sudo apt-get update
 +
sudo apt-get install ckermit
 +
</pre>
 +
 +
'''Config Kermit :&nbsp;'''
 +
<pre>vi $HOME/.kermrc&nbsp;
 +
</pre>
 +
 +
Input the following content :&nbsp;
 +
<pre>set line /dev/ttyUSB0&nbsp;
 +
set speed 115200&nbsp;
 +
set carrier-watch off&nbsp;
 +
set handshake none&nbsp;
 +
set flow-control none&nbsp;
 +
robust&nbsp;
 +
set file type bin&nbsp;
 +
set file name lit&nbsp;
 +
set rec &nbsp;pack 1000&nbsp;
 +
set send pack 1000&nbsp;
 +
set window 5&nbsp;
 +
 +
</pre>

Revision as of 09:37, 25 March 2019

USB2UART Bridge

There are plenty types of usb to uart bridge in the market . Most of them use the following chip :



Hardware PIN define

RSB4680 debug port pin define : 

PIN PIN Name
1 NC
2 TX
3 RX
4 GND

RSB4680 Debug port.jpg

Note : 

Please connect device's TX to usb2uart adapter's RX and device's RX to usb2uart adapter's TX .




UART parameter

  • BaudRate:115200
  • DataBits  :8
  • StopBits  :1
  • Parity      :None
  • FlowControl:None or XON/XOFF


Debug on windows

Install usb2uart adapter's driver. Connect adapter to PC , you will find COM port like :

RK3288 Debian Debug Port Number.png

Putty is very populate tool on Windows. Download putty here.

Run PUTTY.exe, select Connection type of "Serial" , input COM port found in Device Manager.

Set Parameter like :

RTENOTITLE

Then Click "Open" to start debug console.


Debug on Ubuntu

"Kermit" and "MiniCom" are very famous tools on Ubuntu.


Kermit

Install Kermit : 

sudo apt-get update
sudo apt-get install ckermit

Config Kermit : 

vi $HOME/.kermrc 

Input the following content : 

set line /dev/ttyUSB0 
set speed 115200 
set carrier-watch off 
set handshake none 
set flow-control none 
robust 
set file type bin 
set file name lit 
set rec  pack 1000 
set send pack 1000 
set window 5