Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Jtag uart output to a file?

Altera_Forum
Honored Contributor II
1,548 Views

Hi all, 

 

Is it possible to print or write the output of a jtag uart to a text file in pc? I had read that altera zip read only host system require flash memory but I dont want to use flash. My main problem is trying to write a data from memory to a text file to read because using printf to view it is deem inefficient according to other threads. So I am thinking of using jtag uart mount point to divert the output to a text file. Or are there any way to define mount point in pc instead of flash?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
566 Views
0 Kudos
Altera_Forum
Honored Contributor II
566 Views

One obvious solution is to launch the nios2-terminal and redirect it's standard output to a file. 

 

I do wonder what you'll be gaining with a filesystem as far as efficiency. It sounds like you'll still be using printf statements so you'll suffer the overhead of that function regardless. You'll still be using the jtag uart to pass the data to the PC which is inherently slow.  

 

You can always use Altera host-based filesystem which creates a filesystem accessible to the NIOS via JTAG if that's what you're looking for. See page 6-15 of the following: 

http://www.altera.com/literature/hb/nios2/n2sw_nii5v2_02.pdf 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
566 Views

Thans Jakobjones and Badomen. I completely miss the 6-16 Hal host based file system. Iread only about zip host based file system. Thanks.

0 Kudos
Altera_Forum
Honored Contributor II
566 Views

You are welcome. I recommend checking out system console as well, it might be useful for what you are trying to do: http://www.altera.com/literature/ug/ug_system_console.pdf

0 Kudos
Reply