This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:putty [2020/05/26 13:52] ee220ta |
tutorials:putty [2020/06/04 12:37] (current) nelson |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== PuTTY Setup ===== | ===== PuTTY Setup ===== | ||
- | PuTTY is a serial console, it's a computer program that can listen for and display characters sent over a serial link. | + | PuTTY is a serial console, a computer program that can listen for and display characters sent over a serial link. |
This is used in the UART labs so the NEXYS4 and the lab computer can communicate with each other over USB serial communication. | This is used in the UART labs so the NEXYS4 and the lab computer can communicate with each other over USB serial communication. | ||
- | ==== Windows Setup === | + | ==== Find Serial Port ==== |
- | === Find Serial Port === | + | |
- | First you must find out which COM port the USB Serial port is using on your lab computer. Complete the following to do this: | + | First you must find out which serial port the USB Serial port is using on your lab computer. Complete the following to do this: |
+ | ===Windows=== | ||
+ | |||
+ | - Plug in your FPGA board and power it on - this is required for there to be a voltage on the serial port on your computer so the steps below will work. | ||
- Open your computer's Device Manager. | - Open your computer's Device Manager. | ||
- Open the Start menu, type in Device Manager to find it. | - Open the Start menu, type in Device Manager to find it. | ||
Line 18: | Line 20: | ||
* {{:tutorials:putty:serial_port.png?nolink|}} | * {{:tutorials:putty:serial_port.png?nolink|}} | ||
- | === Setup PuTTY === | + | === Linux === |
+ | From a command terminal, run: "sudo dmesg | grep tty". This will print out a list of system messages related to active TTY (serial line) ports. Usually you will see entries for ttyUSB0 and ttyUSB1. Port ttyUSB1 usually seems to be the one that the board is connected to - if that fails to work then try ttyUSB0. If it fails you will get a failed to connect error when you first open it. And, remember that when you run putty you have to run it as ''sudo putty'' or you will get a permissions error. | ||
+ | |||
+ | ==== Setup PuTTY ==== | ||
- Open PuTTY | - Open PuTTY | ||
- | * There should be a shortcut for it on your desktop | + | * If you are on windows, there should be a shortcut for it on your desktop. If you are on Linux, execute "sudo putty" from a command line. |
* {{:tutorials:putty:putty_icon.png?nolink|}} | * {{:tutorials:putty:putty_icon.png?nolink|}} | ||
- | - Open the "Serial" window under "Connection" | + | - Open the "Serial" window under "Category->Connection" on the left side of screen at the very bottom. |
* {{:tutorials:putty:putty_serial_window.png?nolink|}} | * {{:tutorials:putty:putty_serial_window.png?nolink|}} | ||
- | - Set "Serial line to connect to" to the COM port from earlier in this tutorial (in this example it is COM5) | + | - Set "Serial line to connect to" to the serial port from earlier in this tutorial. In this example it is COM5 but it may be other ports on Windows. For Linux it will be of the form: /dev/ttyUSB1 (the /dev part is important). |
- Set "Speed (baud)" to "19200" | - Set "Speed (baud)" to "19200" | ||
- Set "Data bits" to 8 | - Set "Data bits" to 8 | ||
Line 36: | Line 41: | ||
- Your earlier saved values should now be visible. | - Your earlier saved values should now be visible. | ||
- Click Open | - Click Open | ||
+ |