- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I normally use this when I want Nios II to access files on my PC: http://www.nioswiki.com/exampledesigns/hostfilesystem?gsa_pos=4&wt.oss_r=1&wt.oss=host%20filing%20system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thans Jakobjones and Badomen. I completely miss the 6-16 Hal host based file system. Iread only about zip host based file system. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page