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
  • The same settings in a simple hello_world project works suceessfully, But failed when the project using sve intrinsics, the command line error info is:

    Semihosting stack/heap configured using values:
    Stack: 0x800185A0 ~ 0x80017DA0
    Heap: 0x800085A0 ~ 0x80017D9C
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001B4)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001DC)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001E4)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001E8)
    ERROR(TAD11-NAL23):
    ! Failed to write 49 bytes to address EL3:0xDEADDEADDEADDEB5
    ! Memory write at address 0xDEADDEADDEADDEB5 failed with error code E_error_memory_abort (this error code also occurred at other addresses)
    Execution stopped in EL3h mode at breakpoint -1: EL3:0x0000000000000200

    This error occurs using .ds script pass arguments.

    When choosing another method pass arguments like FVP model parameter "semihosgin-cmd_line="1 2 3"", no error occurs.

Reply
  • The same settings in a simple hello_world project works suceessfully, But failed when the project using sve intrinsics, the command line error info is:

    Semihosting stack/heap configured using values:
    Stack: 0x800185A0 ~ 0x80017DA0
    Heap: 0x800085A0 ~ 0x80017D9C
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001B4)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001DC)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001E4)
    WARNING(TAB186): Unknown semihosting operation 0x800085A0 (returning to EL3:0x00000000800001E8)
    ERROR(TAD11-NAL23):
    ! Failed to write 49 bytes to address EL3:0xDEADDEADDEADDEB5
    ! Memory write at address 0xDEADDEADDEADDEB5 failed with error code E_error_memory_abort (this error code also occurred at other addresses)
    Execution stopped in EL3h mode at breakpoint -1: EL3:0x0000000000000200

    This error occurs using .ds script pass arguments.

    When choosing another method pass arguments like FVP model parameter "semihosgin-cmd_line="1 2 3"", no error occurs.

Children
No data