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
  • Thanks,the .ds script using 

    set semihosting vector ADDR EL3:0x00000200
    set semihosting enabled on
    set semihosting args 1 2 3

    it works successfuly when using AEM vAx1 FVP model,

    but crashed in NeoverN2x1 FVP model, the disassembly code wrote: EL3:0x0000000000000200  DEADDEAD DCI 0xdeaddead,

    seems like semihosting vector ADDR not right.

    Is there documents than can find the different FVP models semihosting settings?

Reply
  • Thanks,the .ds script using 

    set semihosting vector ADDR EL3:0x00000200
    set semihosting enabled on
    set semihosting args 1 2 3

    it works successfuly when using AEM vAx1 FVP model,

    but crashed in NeoverN2x1 FVP model, the disassembly code wrote: EL3:0x0000000000000200  DEADDEAD DCI 0xdeaddead,

    seems like semihosting vector ADDR not right.

    Is there documents than can find the different FVP models semihosting settings?

Children
No data