You copied the Doc URL to your clipboard.

ARM DS-5 Debugger User Guide : About passing arguments to main()

About passing arguments to main()

ARM® DS-5™ Debugger enables you to pass arguments to the main() function of your application.

You can use one of the following methods:

  • Using the Arguments tab in the Debug Configuration dialog box.

  • On the command-line (or in a script), you can use either:

    • set semihosting args <arguments>

    • run <arguments>.


Semihosting must be active for these to work with bare-metal images.