16.5 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.
Related reference
3.15 Using semihosting to access resources on the host computer
3.16 Working with semihosting
11.42 Debug Configurations - Arguments tab
Related information
DS-5 Debugger commands
Non-ConfidentialPDF file icon PDF versionARM DUI0446W
Copyright © 2010-2015 ARM. All rights reserved.