Skip to content

Commit d208bc1

Browse files
committed
Change UART-TSI baudrate
1 parent 10a7bdc commit d208bc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/baremetal-ide/Baremetal IDE Lab.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Let's break down the arguments here
178178
{: .note }
179179
Unfortunately, due to the way Unix handles serial devices, the exact device ID changes every time you unplug and replug your device. The best way of figuring out which serial port is which is unplug the device you are trying to find the id of, run the command `ls /dev/ttyUSB*` to lists out all remaining USB serial ports, plug the device in again, and run the command one last time to find the new serial port. For the lab, UART-TSI is on the usb port hooked directly up to the FPGA, not the one plugged into the FT-LINK.
180180
181-
`+baudrate=<baudrate>` specifies which baudrate the computer should talk to the chip at. This must match whatever the chip was configured for. In our case, this is 921600 baud.
181+
`+baudrate=<baudrate>` specifies which baudrate the computer should talk to the chip at. This must match whatever the chip was configured for. In our case, this is 115200 baud which is the default so we don't need to specify this argument.
182182
183183
`+no_hart0_msip` specifies that we should not send a **M**achine **S**oftware **I**nterrupt to hart0 or core 0. By default, after completing all reads and writes, UART-TSI sets the hart0 msip register to 1 which sends an interrupt to core 0 of the chip which tells the chip that we are done loading in the program and should jump to the address in the boot address register to start executing. Specify this argument if you do not want the core to boot up, such as when you are just doing read/writes.
184184
@@ -194,7 +194,7 @@ Unfortunately, due to the way Unix handles serial devices, the exact device ID c
194194
Putting that all together we get this command to load the blinky binary we just built to the chip.
195195
196196
``` bash
197-
uart_tsi +tty=[YOUR_TTY] +baudrate=921600 build/d01/blinky.elf
197+
uart_tsi +tty=[YOUR_TTY] build/d01/blinky.elf
198198
```
199199
200200
Before running a program with uart_tsi, make sure to hit the reset button. While the read/writes will work just fine, the chip neeeds to be fresh out of the reset state in order to start running the loaded program correctly. If everything worked properly, you should see an LED flashing on the FPGA.

0 commit comments

Comments
 (0)