112 CHAPTER 3 J-Link software and documentation package
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
Response
<ReturnValue>
ReturnValue is a 4 Byte signed integer.
Note: ReturnValue is hex-encoded.
Return value 0 is "00000000", return value -1 is "FFFFFFFF".
3.3.4.4 qSeggerSTRACE:read
Syntax
qSeggerSTRACE:read:<NumItems>
Parameter
NumItems: Maximum number of trace data (addresses) to be read. Hexadecimal.
Description
Read the last recently called instruction addresses. The addresses are returned LIFO,
meaning the last recent address is returned first.
Note: For more information please refer to UM08002 (J-Link SDK user guide),
chapter STRACE.
Response
<ReturnValue>[<Item0><Item1>...]
ReturnValue is a 4 Byte signed integer.
ItemN is a 4 Byte unsigned integer.
0x00000000 - 0xFFFFFFFF Address of the executed instruction
Note: ReturnValue and ItemN are hex-encoded.
e.g. 3 Items read: 0x08000010, 0x08000014, 0x08000018
Response will be: 00000003080000100800001408000018
3.3.4.5 qSeggerSWO:start
Syntax
qSeggerSWO:start:<Enc>:<Freq>
Parameter
Enc: Encoding type, only 0 ("UART encoding") is allowed. Hexadecimal.
Freq: The desired interface speed. Hexadecimal.
Description
Starts collecting SWO data with the desired interface speed. The target is not being
touched in any way, therefore you are responsible for doing the necessary target
setup afterwards.
Note: The desired interface speed has to be in a range of 3% more or less of one
of the supported speeds. For more information about calculating the supported
speeds, please refer to qSeggerSWO:GetSpeedInfo.
>= 0 O.K.
< 0 Error.
>= 0 Number of items read.
< 0 Error.