EasyManua.ls Logo

Segger J-Link - Command SYS_SEEK (0 X0 A)

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
461
19.4.10 Command SYS_SEEK (0x0A)
Moves the filepointer of a file previously opened via SYS_OPEN to a specific position in
the file. Behaves compliant to the ANSI C function fseek().
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
Handle of the file.
Word 1
Position of the filepointer inside the file, to set to.
Return value
Operation result is written to register R0 by the debugger.
19.4.11 Command SYS_FLEN (0x0C)
Retrieves the size of a file, previously opened by SYS_OPEN, in bytes.
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.
Return value
Operation result is written to register R0 by the debugger.
19.4.12 Command SYS_REMOVE (0x0E)
Deletes a file on the host system.
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 null-terminated string that specifies the path + file to be deleted.
Word 1
Length of the string pointed to by word 0.
Return value
Operation result is written to register R0 by the debugger.
19.4.13 Command SYS_RENAME (0x0F)
Renames a file on the host system.
== 0 O.K.
!= 0 Error.
>= 0 File size in bytes
== -1 Error.
== 0 O.K.
!= 0 Error.

Table of Contents

Other manuals for Segger J-Link

Related product manuals