Using serial debug port to communicate

From IGEP - ISEE Wiki

Revision as of 13:12, 5 July 2011 by Eballetbo (talk | contribs) (Created page with 'The simplest way to set up your IGEP board is with a console session, using your laptop or PC as the terminal. = Setting up your serial debug session using putty = '''PuTTY''' …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The simplest way to set up your IGEP board is with a console session, using your laptop or PC as the terminal.

Setting up your serial debug session using putty

PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers.
You can download it from: www.putty.org

  1. Open PuTTy.
  2. Choose Serial line. If you are running PuTTy on Windows, the Serial line will be like (COM1 or COM2 or COM3, etc.). If you are running PuTTy on Ubuntu, the Serial line will be like (/dev/ttyS0 or /dev/ttyS1 or /dev/ttyS3, etc.). [Note: if you are using a USB->Serial converter, the Serial line will be like /dev/ttyUSB0]
  3. Configure Speed to 115200
  4. Select Serial Connection type
  5. Press on Open button

You will successfully started the console.

Setting up your serial debug session using kermit

Start kermit on your host machine in configuration mode:

kermit -l /dev/ttyUSB0
C-Kermit>set flow-control none
C-Kermit>set carrier-watch off 
C-Kermit>set speed 115200 /dev/ttyUSB0
C-Kermit>connect 
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.

Hint: Create a .kermrc configuration file in your home directory with these contents to set these options each time you connect:

set line /dev/ttyUSB0
set flow-control none
set carrier-watch off
set speed 115200
connect

Setting up your serial debug session using screen

To quickly connect to a board using Gnu Screen, execute the following:

screen /dev/ttyS0 115200

See: http://www.gnu.org/software/screen/manual/screen.html

Setting up your serial debug session using minicom

Start minicom on your host machine in configuration mode. As root:

minicom -o -s -w
  1. A menu of configuration should appear. Use the Down-arrow key to scroll down and select the Serial port setup option, and press Enter.
  2. Verify that the listed serial port is the same one that is connected to the target board. If it is not, press A, and enter the correct device. This is /dev/ttyS0 on most Linux distributions.
  3. Set the Bps/Par/Bits option by pressing the letter E and using the next menu to set the appropriate values. You press the key that corresponds to the value 115200, then press Enter.
  4. Set Hardware flow control to No using the F key.
  5. Set Software flow control to No using the G key.
  6. Press Enter to return to the main configuration menu, and then press Esc to exit this menu.
  7. Reset the board, and wait for a moment. If you do not see output from the board, press Enter several times until you see the prompt. If you do not see any output from the board, and have verified that the serial terminal connection is setup correctly, contact your board vendor.