462
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.
== 0
O.K.
!= 0
Error.
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.
== 0
O.K.
!= 0
Error.
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:
0x20026
0x20023
Table 19.2: SYS_EXIT exit codes
Return value
None.
J-Link / J-Trace (UM08001)
CHAPTER 19
Exit code
Meaning
Application exited normally.
Application exited with error.
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Semihosting
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers