Forum Discussion
Altera_Forum
Honored Contributor
17 years agoTrying to use JTAG UART
Hiya
I'm trying to use the JTAG UART, and the obvious thing that needs to be done is to add "C:\altera\72sp3\ip\sopc_builder_ip\altera_avalon_jtag_uart" to the list of include paths. However, it seems to be difficult to add a new include path! Everything I've tried so far hasn't worked! This would take me 5 seconds in Visual C++. What procedure do I need to follow?2 Replies
- Altera_Forum
Honored Contributor
Hello,
I can add the line: # include <altera_avalon_jtag_uart.h> to a source file and it compiles, without having to add a search path. I assume the IDE automatically searches the correct paths for the hardware you have defined. In a different project with no JTAG UART defined in the hardware, the# include line fails to compile. Have you added a JTAG UART to your SOPC component? Cheers - Altera_Forum
Honored Contributor
Ahaa......
OK, added the JTAG UART to the system, I can now compile and run the system with the JTAG UART. The UART appears to send characters, however they don't appear on the "console" window in the IDE. However, if I do Run-Debug, and select "jtag_uart" under "Target Connection", I now get an error dialog saying "The NIOS II Terminal communication device 'jtag_uart' does not exist in the current SOPC Builder system file". Closed and restarted the NIOS IDE, then in the debug dialog, I used "Load JDI File". That seemed to overcome the previous problem, now on the console the following appears: nios2-terminal: There are no JTAG UARTs available which match the --device and nios2-terminal: --instance options you provided. Hmmmm.