How to pass multi arguments to main() in Arm Development Studio?

我想将配置文本作为 argv[1] 传递给 main() 函数,并且已经尝试过命令行。set semihosting args "config txt" ,but it seems like the config txt is argv[0] not argv[1],so how to pass multi arguments to main()?

Parents
  • I tried to launch the FVP model with e.g. "-C cluster.cpu0.semihosting-enable=0" in the Model Parameters field, _and_ have "set semihosting args 1 2 3" in the .ds script.When connected it shows that semihosting breakpoint address has not be specified. By the way,I wanna ask why diable_sve_traps is necessary  in sve examples but not necessary in hardware device like mobile phones.

Reply
  • I tried to launch the FVP model with e.g. "-C cluster.cpu0.semihosting-enable=0" in the Model Parameters field, _and_ have "set semihosting args 1 2 3" in the .ds script.When connected it shows that semihosting breakpoint address has not be specified. By the way,I wanna ask why diable_sve_traps is necessary  in sve examples but not necessary in hardware device like mobile phones.

Children
No data