Script to manage the 18-349 testbench.
- Python >= 2.7
- An environment set up to run 18-349's testbench. See the Lab 0 handout, Appendix A for detailed setup instructions.
(todo: improve)
Option 1: add script location to PATH
Option 2: save it somewhere easy to access, so you can specify the path when you run it from anywhere the 349 repo tree
This script can be run from anywhere in the 349-f16 repository.
usage: run_tb.py [-h] [-l LOGFILE]
[-p {kernel,kernel_blink,kernel_optimization}]
[-u {tuner,fft_demo}]
Run the testbench for 18-349's RPi/JTAG setup.
optional arguments:
-h, --help show this help message and exit
-l, --logfile LOGFILE Unimplemented: Write ftditerm output to file.
-p, --project {kernel,kernel_blink,kernel_optimization}
specify PROJECT variable to make
-u, --user-proj {tuner,fft_demo}
specify USER_PROJ variable to make
Running the script will create new terminal windows for FTDITerm and GDB. OpenOCD's output is visible in the same window from which the script was invoked.
In order to close all the windows, simply exit the script. This can be
safely done with ^C while the original window which ran the
script is in focus. This is the same window that shows OpenOCD's
output. Alternatively, each window may be closed individually.
NOTE: This has not been tested in the VM, but because of how
OpenOCD is run, sending a ^C to the original window can
effectively close OpenOCD.
Finally, the script contains a global mapping called USER_CONFIG
containing some parameters which may (rarely) need changing.
Please do not delete any entries from this mapping; simply edit
the values as necessary.
See the block comment labeled Internal config in the source.
In order to run FTDITerm and GDB in an alternative terminal emulator,
edit TBRunner.FORK_SHELL accordingly.