Segger J-Link User Manual page 108

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

Advertisement

108
3.3.3.28 SWO DisableTarget
Syntax
SWO DisableTarget <PortMask[0x01-0xFFFFFFFF]>
Description
Disables the output of SWO data on the target (Undoes changes from SWO Enable-
Target) and stops J-Link to capture it.
Example
#Disable captureing SWO from stimulus ports 0 and 1
> monitor SWO DisableTarget 3
< SWO disabled succesfully.
3.3.3.29 SWO EnableTarget
Syntax
SWO EnableTarget <CPUFreq[Hz]> <SWOFreq[Hz]> <PortMask[0x01-0xFFFFFFFF]
<Mode[0]>
Description
Configures the target to be able to output SWO data and starts J-Link to capture it.
CPU and SWO frequency can be 0 for auto-detection.
If CPUFreq is 0, J-Link will measure the current CPU speed.
If SWOFreq is 0, J-Link will use the highest available SWO speed for the selected /
measured CPU speed.
Note:
CPUFreq has to be the speed at which the target will be running when
doing SWO.
If the speed is different from the current speed when issuing CPU speed auto-detec-
tion, getting SWO data might fail.
SWOFreq has to be a quotient of the CPU and SWO speeds and their prescalers. To
get available speed, use SWO GetSpeedInfo.
PortMask can be a decimal or hexadecimal Value. Values starting with the Prefix "0x"
are handled hexadecimal.
Example
#Configure SWO for stimulus port 0, measure CPU frequency and calculate SWO frequency
> monitor SWO EnableTarget 0 0 1 0
< SWO enabled succesfully.
#Configure SWO for stimulus ports 0-2, fixed SWO frequency and measure CPU frequency
> monitor SWO EnableTarget 0 1200000 5 0
< SWO enabled succesfully.
#Configure SWO for stimulus ports 0-255, fixed CPU and SWO frequency
> monitor SWO EnableTarget 72000000 6000000 0xFF 0
< SWO enabled succesfully.
3.3.3.30 SWO GetMaxSpeed
Syntax
SWO GetMaxSpeed <CPUFrequency [Hz]>
Description
Prints the maximum
target CPU frequency.
Example
#Get SWO speed for 72MHz CPU speed
> monitor SWO GetMaxSpeed 72000000
< Maximum supported SWO speed is 6000000 Hz.
J-Link / J-Trace (UM08001)
CHAPTER 3
SWO speed supported by and matching both, J-Link and the
J-Link software and documentation package
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

This manual is also suitable for:

J-trace

Table of Contents

Save PDF