EasyManua.ls Logo

Segger J-Link - Command SYS_GET_CMDLINE (0 X15)

Segger J-Link
480 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
462 CHAPTER 19 Semihosting
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
Register R1 holds a pointer to an address on the target, that specifies a 4-word (32-
bit each) buffer where additional information for the command can be found.
Word 0
Pointer to a null-terminated string that specifies the old name of the file.
Word 1
Length of the string (without terminating null-character) pointed to by word 0.
Word 2
Pointer to a null-terminated string that specifies the new name of the file.
Word 3
Length of the string (without terminating null-character) pointed to by word 2.
Return value
Operation result is written to register R0 by the debugger.
19.4.14 Command SYS_GET_CMDLINE (0x15)
Gets the command line (argc, argv) from the process on the host system as a single
string. argv elements will be separated by spaces.
Register R1 holds a pointer to an address on the target, that specifies a 2-word (32-
bit each) buffer where additional information for the command can be found.
Word 0
Pointer to a buffer on the target system to store the command line to.
Word 1
Size of the buffer in bytes.
Return value
After the operation, word 1 will hold the length of the command line string.
Operation result is written to register R0 by the debugger.
19.4.15 Command SYS_EXIT (0x18)
Used to tell the debugger if an application exited/completed with success or error.
Usually, this also ends the debug session automatically.
Register R1 is one of the following values:
Return value
None.
== 0 O.K.
!= 0 Error.
== 0 O.K.
!= 0 Error.
Exit code Meaning
0x20026 Application exited normally.
0x20023 Application exited with error.
Table 19.2: SYS_EXIT exit codes

Table of Contents

Other manuals for Segger J-Link

Related product manuals