Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHow to save Nios II console contents.
In the NIOS EDS environment I need to save the contents of the NIOS console which displays the output of the printf statements. I have tried to copy from the window and paste into another pro...
Altera_Forum
Honored Contributor
9 years agoI'm not sure but I do this a lot from the command line by downloading my code using nios2-download -g -r <elf file> and then I fire up a terminal with nios2-terminal. If you have a board with multiple devices on the JTAG chain, or multiple Nios/UARTs, or cables then there are more arguments to pass in so check out the help commands for those two to figure that out.
If you want to dump the terminal to a file then it's just nios2-terminal >> my_file.txt which dumps the outputs to the file. >> is a standard linux command so you can google around to find out more about it.