Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Hi Dave! Thanks for a really good tutorial. Would it be possible to move the jtag server logic into C in a Nios II processor. I'd like to remove the need to run a tcl script. Thanks! --- Quote End --- If you're going to use a NIOS II processor, then I would advise you to use a regular UART connected to GPIO pins. There is a JTAG UART component, but I am not sure that it is easy to write C/C++ code to interact with since it is not visible as a COM port or /dev/tty port. There are several FTDI cables that allow you to connect a USB-to-serial UART to your PC, and then you can connect that cable to GPIO headers on your development board. The FTDI devices can be used in synchronous modes too, and can achieve much higher performance. Check out the FTDI documentation I've written here: https://www.ovro.caltech.edu/~dwh/correlator/cobra_docs.html This describes the SPI-like modes you can use (MPSSE mode is the best) https://www.ovro.caltech.edu/~dwh/correlator/pdf/ftdi_spi.pdf This has some more advanced uses of the FIFO interface https://www.ovro.caltech.edu/~dwh/correlator/pdf/ftdi.pdf In your case, start with a UART, and just connect the pins from a cable like this ... http://www.ftdichip.com/products/cables/usbmpsse.htm http://www.digikey.com/product-detail/en/ftdi-future-technology-devices-international-ltd/c232hm-ddhsl-0/768-1106-nd/2714139 Cheers, Dave