This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to pass arguments as argc, argv in ARM RealView Compiler

How to pass input data file as argument in main(argc, argv) standard C style. I'm using RealView compiler toolchain for ARM. Is there any tutorial for doing this exercise?

Thanking you for reading and replying in advance.

Parents
  • Sorry, but I don't understand you there.

    You can't pass any parameters to main() for an embedded project.
    And there are no command line allowing redirection of input/output streams.

    If you want your program to read data, you must decide what peripherial interface to use.

    Then you need to write code that handles this hardware.

    Finally, you can decide if you should use your new code directly, or if you should map your code so printf() et al can emit and scanf() et al can read.

    Have you looked at all the samples you got installed together with the compiler?
    And the manuals for the tools?

Reply
  • Sorry, but I don't understand you there.

    You can't pass any parameters to main() for an embedded project.
    And there are no command line allowing redirection of input/output streams.

    If you want your program to read data, you must decide what peripherial interface to use.

    Then you need to write code that handles this hardware.

    Finally, you can decide if you should use your new code directly, or if you should map your code so printf() et al can emit and scanf() et al can read.

    Have you looked at all the samples you got installed together with the compiler?
    And the manuals for the tools?

Children
No data