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.
== 0
O.K.
!= 0
Error.
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.
>= 0
File size in bytes
== -1
Error.
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.
== 0
O.K.
!= 0
Error.
19.4.13 Command SYS_RENAME (0x0F)
Renames a file on the host system.
J-Link / J-Trace (UM08001)
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
461
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers