Post Go back to editing

User input arguments to QEMU

Category: Software
Product Number: ADSP-SC594
Software Version: CCES 2.12.0

Hello,

I'm using QEMU via command line to run an A5 bare-metal executable that I built with CCES 2.12.0. I'm able to run the executable as per the instructions in the Appendix A - Simulation Environment Selection for Different Purposes:

qemu-system-arm -semihosting -cpu adsp-sc589 -kernel armprogram

What I'm currently not able to do is to pass user arguments to the ARM program. Appending those arguments via the -append option or just attaching them to the command above don't seem to help and I always get argc=0 in my main() function..
I've also tried to read the /proc/cmdline file and read the environment variables, none of which have helped.

Is it possible to achieved that somehow?

Thanks in advance!