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++
12686 Discussions

Passing command line arguments to NIOS using IDE

Altera_Forum
Honored Contributor II
1,109 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
414 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
414 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
414 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
414 Views

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

0 Kudos
Reply