eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
555 stars 129 forks source link

How to pass program parameters via semihosting? #377

Closed cdwilson closed 4 years ago

cdwilson commented 4 years ago

The blinky example dumps the args passed to main:

int
main(int argc, char* argv[])
{
  // Show the program parameters (passed via semihosting).
  // Output is via the semihosting output channel.
  trace_dump_args(argc, argv);

However, I can't find any documentation that describes how to actually pass custom parameters. Can you describe how to pass custom parameters via semihosting?

ilg-ul commented 4 years ago

https://xpack.github.io/qemu-arm/options/

ilg-ul commented 4 years ago

For questions and support, please use the project forum.