Forum Discussion
Altera_Forum
Honored Contributor
16 years agoPrint Nios II Console
I am outputing a large amount of debug data to he NIOS II console and need to be able to check this . Is there a way of saving the contents of the console to a file or print it out.
All help would be appreciated3 Replies
- Altera_Forum
Honored Contributor
you can try nios2-terminal > log.txt
- Altera_Forum
Honored Contributor
It is fine, i need to log some data from my board.
And was it possible to make some script, which can to log the data from jtag uart to one file every maybe 5 minutes ? I mean every 5 minutes it creates one file ... log0905.txt at 9:05, log0910.txt at 9:10 ...etc. - Altera_Forum
Honored Contributor
Hi all,
my colegue make this script, which work (every 10 minutes save one log file) ------------------------- # !/bin/sh x=0 while [ 1 ] ; do echo 'begin save data...' nios2-terminal > ukladam$x.csv & sleep 600 echo 'end saving data...' # kill nios2-terminal ps -ef | grep "nios2-terminal" | awk '{print $2}' | xargs kill # increment variable x=$(($x+1)) done ---------------------- Now it works ! :) Jan Naceradsky