Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Passing command line arguments to NIOS using IDE

Altera_Forum
Honored Contributor II
1,287 Views

Hi folks, 

 

I'm wondering if there is a way to pass command line arguments to the main progam running on a NIOS II through the IDE. I have been browsing the documention but found no information regarding this possibility. Does anybody knows about this ? 

 

thanks in advance, 

 

Regards 

 

Steven
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
592 Views

I do not think you can do that using the Altera HAL. If you use ucLinux then probably you can use Uboot... 

 

Paolo
0 Kudos
Altera_Forum
Honored Contributor II
592 Views

Did any one find a solution for this..? 

 

I am using Micro C OS and Nios II IDE.....please let me know how to pass arguments to C main function....
0 Kudos
Altera_Forum
Honored Contributor II
592 Views

Where do you think the arguments are going to come from? 

You are writing code for an embedded system! not an application for an interactive OS.
0 Kudos
Altera_Forum
Honored Contributor II
592 Views

^^^ makes sense...thanks for the reply...

0 Kudos
Reply