Command Sys_Get_Cmdline (0X15); Command Sys_Exit (0X18) - Segger J-Link User Manual

Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

361
Return value
Operation result is written to register R0 by the debugger.
Value
= 0
O.K.
≠ 0
Error
18.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.
Value
= 0
O.K.
≠ 0
Error
18.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:
Exit code
Application exited normally.
0x20026
Application exited with error.
0x20023
Return value
None.
J-Link / J-Trace (UM08001)
CHAPTER 18
Meaning
Meaning
Meaning
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Communication protocol

Advertisement

Table of Contents

Troubleshooting

loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

J-trace

Table of Contents

Save PDF