Command Sys_Flen (0X0C); Command Sys_Remove (0X0E); Command Sys_Rename (0X0F) - Segger J-Link User Manual

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

Advertisement

360
18.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.
Value
≥ 0
File size in byte
= -1
Error
18.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.
Value
= 0
O.K.
≠ 0
Error
18.4.13

Command SYS_RENAME (0x0F)

Renames a file on the host system. 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 .
J-Link / J-Trace (UM08001)
CHAPTER 18
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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

J-trace

Table of Contents

Save PDF