Difference between revisions of "How to debug"
From ESS-WIKI
Yunjin.jiang (talk | contribs) |
Yunjin.jiang (talk | contribs) |
||
| 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 : ''' | ||
| + | <pre>vi $HOME/.kermrc | ||
| + | </pre> | ||
| + | |||
| + | Input the following content : | ||
| + | <pre>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 | ||
| + | |||
| + | </pre> | ||
Revision as of 09:37, 25 March 2019
Contents
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 |
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 :
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 :
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
