Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
nios2-terminal, by itself does not actually download your code. It merely connects to an already running process.... You'd have to do something like the following:
If you have multiple JTAG cables and/or devices, then you'd have to be concerned with specifying those on the command lines as well. It's also possible that your jtag_uart has timed out. Unlike a standard UART, the jtag_uart will timeout if you don't have a host program (such as nios2-terminal) connected to it. That's about all I can think of, given the information you posted. Cheers, - slackernios2-download -g <your_program>.elf && nios2-terminal - Altera_Forum
Honored Contributor
Hello,
1. But where can i find .elf file? just as a "zImage_std_2c35"? I did "nios2-download -g zImage_0818 " and "nios2-terminal". I got into the uclinux. But my programme not a linux app.which is just a windows app and can run well in my vc++6 and nios ide 6. 2.And how long does jtag_uart keep work well? thanks! - Altera_Forum
Honored Contributor
It's a different flow for developing on uCLinux. The binary format is even different: FLT versus ELF. You might want to take a look at the nios wiki (http://nioswiki.jot.com/) for further info.
As far as your situation, you'd have to download your application to the running uCLinux system or, alternately (and better, I might add), you could just copy your executable to an NFS share on your host computer. [EDIT] Or...add your application to your file system. Best of luck. I think there's a sample "Hello World" app. that you can try. Cheers, - slacker P.S.: Though others have stated it here, you ought not to be using Windows to develop a Linux (or in your case) uCLinux application.... If you're going to develop for uCLinux, might as well work on a similar host!