How to debug

From ESS-WIKI
Revision as of 09:37, 25 March 2019 by Yunjin.jiang (talk | contribs)
Jump to: navigation, search

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