Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

save the values from nios 2 console

hi

hi,i am able to print a set of values to nios 2 consolehttp://www.edaboard.com/attachment.php?attachmentid=140600&d=1502960114&thumb=1 (http://www.edaboard.com/attachment.php?attachmentid=140600&d=1502960114)

the values are too large . so need to save the data for further evaluation. how can i do that ? i need to see it i nios 2 console also, is there any options like enable a log file or something ?

http://www.edaboard.com/attachment.php?attachmentid=140601&d=1502960320&thumb=1 (http://www.edaboard.com/attachment.php?attachmentid=140601&d=1502960320) like above i can do that , but then its not possible to see it in terminal, when i tried at the same time , the first error came and i stopped nios 2 terminal, then its saving to a text file.

and when i try to do it in run configuration,http://www.edaboard.com/attachment.php?attachmentid=140602&d=1502960670&thumb=1 (http://www.edaboard.com/attachment.php?attachmentid=140602&d=1502960670)

its not the nios 2 console is saving to the text file, its console is saving to the text file like below.

using cable "cv sockit [usb-1]", device 1, instance 0x00

pausing target processor: ok

initializing cpu cache (if present)

ok

downloading 00020000 ( 0%)

downloading 000316a8 (90%)

downloaded 70kb in 0.1s

verifying 00020000 ( 0%)

verifying 000316a8 (90%)

verified ok

starting processor at address 0x00020230

is there any way that print it in nios 2 console and at the same time it will save from nios 2 console?

update:: i am using windows 7

thanks and regards

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you want to copy from the Nios II Console and then past to a text editor , you can try this to see if it works...

    save printf output from nios ii console:

    • Currently using Eclipse from Quartus Prime 17.0. Not sure if this works in other versions.

    • I have not found this documented anywhere, just found it by trial and error.

    • Prior to clicking the run button, kill the Nios II Console window if it is open. It will re-open when it starts running.

    • During/after run has executed, select text in Nios II Console window.

    • Select Ctrl-Insert key combination. It should now be copied to the clipboard.

    • Paste with Ctrl-v.

    • This only seems to work once. Must kill window and re-run to do another copy/paste.