Forum Discussion
Altera_Forum
Honored Contributor
15 years agouse command prompt ?
Hello
I have a code in c++ .I execute it with command prompt I turn it under NiosII , the compile successful. How I can execute it under Nios II with command prompt? Can someone send me a tutorial or explain how to do? Regards3 Replies
- Altera_Forum
Honored Contributor
Use the Console pane in Nios IDE as the stdin/stdout device. You probably don't need changing anything in your code.
Only make sure your system has the jtag_uart module and this has been selected as the stdin/stdout device in the run options, but these are the default settings if you started from any common reference design. - Altera_Forum
Honored Contributor
--- Quote Start --- [/Use the Console pane in Nios IDE as the stdin/stdout device] I excute my code with script .txt when I write it in the console pane he isn't work can you help me? - Altera_Forum
Honored Contributor
Console functions available through jtag_uart are for example:
printf(..) : print formatted string on the console pan getc() : get input data from console You can't transfer a file from your pc's hd to the Nios, if you mean this. I know there's a way to transfer files but I don't know how to do it. Search the Altera website and forum and you'll probably find it. If you really need the script.txt and this is constant, a simple way to do it is incorporate the file content into your code.