This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (57 sloc) 1.85 KB

Setup Serial Debugging Tool


  • A Serial Debugging Tool, what we used in the guidance is an USB to TTL Convertor.


Follow the steps to do the connections:

  • Connect all the to GPIOs, and check the Tx / Rx Pins and ensure
    • Tool Pin GND: <---> Pin17 of Vim's GPIO
    • Tool Pin TXD: <---> Pin18 of Vim's GPIO(Linux_Rx)
    • Tool Pin RXD: <---> Pin19 of Vim's GPIO(Linux_Tx)
    • Tool Pin VCC: <---> Pin20 of Vim's GPIO
  • Insert the USB to your PC. The connections would be like this:

Image of SerialConnections

Setup the Kermit Protocol(C-Kermit)

Install the c-kermit:

$ sudo apt-get install ckermit

Add the access permission

$ sudo usermod -a -G dialout gouwa

Tips: replace the gouwa with your real username.

Add the following contents into ~/.kermrc to finish the setup:

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

Run command kermit to launch C-Kermit

Ensure that you have done the right connection, and if everything goes fine, printing would be like this:

$ kermit
Connecting to /dev/ttyUSB0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
TE: 116640


Tips: If the printing contain following line, you might need to check the step Add the access permission above.

/dev/ttyUSB0: Permission denied

See Also: