EasyManua.ls Logo

Segger J-Link - Command SYS_CLOSE (0 X02)

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...
J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
459
19.4.3 Command SYS_CLOSE (0x02)
Closes a file on the host system.
Register R1 holds a pointer to an address on the target, that specifies a 1-word (32-
bit each) buffer where additional information for the command can be found.
Word 0
Handle of the file retrieved on SYS_OPEN
Return value
Operation result is written to register R0 by the debugger.
19.4.4 Command SYS_WRITEC (0x03)
Writes a single character to the debug channel on the host system (stdout in most
cases).
Register R1 holds a pointer to an address on the target, that specifies a 1-word (32-
bit each) buffer where additional information for the command can be found.
Word 0
Pointer to the character to the written.
Return value
None
19.4.5 Command SYS_WRITE0 (0x04)
Writes a null-terminated string (excluding the null character) to the debug channel
on the host system.
Register R1 holds a pointer to the string that shall be written.
Return value
None
19.4.6 Command SYS_WRITE (0x05)
Writes a given number of bytes to a file that has been previously opened via
SYS_OPEN. Exceptions: Handle 0-2 which specify stdin, stdout, stderr (in this order)
do not require to be opened with
SYS_OPEN before used. This command behaves com-
patible to the ANSI C function fwrite() meaning that writing is started at the last
position of the write pointer on the host.
Register R1 holds a pointer to an address on the target, that specifies a 3-word (32-
bit each) buffer where additional information for the command can be found.
Word 0
Handle of the file to be written.
Word 1
Pointer to the data on the target, to be written.
Word 2
Number of bytes to write
== 0 O.K.
== -1 Error

Table of Contents

Other manuals for Segger J-Link

Related product manuals