Forum Discussion
Altera_Forum
Honored Contributor
16 years agohow to access the jtag uart in the nios code
Hi, I'm trying to control the jtag uart in my small footprint nios. But I can't get it working. I mix up the instance or I'm missing header files. in my system.h file the jtag uart i...
Altera_Forum
Honored Contributor
16 years agoWhen you say "NIOS small footprint" I assume you mean you are enabling certain options in your BSP or "System Library" settings such as:
"Reduced Device Drivers" "Small C Library" These do have impact on some of the STDIO functions and on the JTAG UART. Specifically, have a look at the section starting on page 6-30 of the following document: http://www.altera.com/literature/hb/nios2/n2sw_nii5v2.pdf This section details methods for reducing code size. Specifically, if you enable "Reduced Device Drivers", the JTAG uart operates in polled mode rather then IRQ mode. Also, if you use the small C library you don't got stdio input functions (like getc() or getchar()). Jake