Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Passing command line arguments to NIOS using IDE

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

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

    Paolo
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.