
Nu-Link2-Pro Debugger and Programmer
Mar. 13, 2020
Page
49
of 77
Rev 1.00
NU
-LINK
2
-P
RO
D
E
B
UG
G
E
R
a
nd
P
RO
G
RA
MM
E
R U
S
E
R
M
A
NUA
L
Ma
k
er Nu
-m
be
d
NUC
47
2
Us
er Man
ua
l
Figure 5.2-19 Debug Message on Serial Port Terminal Windows
ETM Settings
To start Embedded Trace Macrocell (ETM) tracing on Nuvoton Cortex
®
-M4/M23 devices, please
connect to the device using the Nu-Link2-Pro with 20-pin connector and follow the steps below.
(9) Open the
Template.uvproj
in M480 BSP, as shown in Figure 5.2-20.
Figure 5.2-20
Open M480 project
(10) Configure the NuTrace.
As shown in Figure 5.2-21, In debug setting dialog, select the
“
Trace
” tab.
In
“
Trace Port
” select
Sync Trace Port with 4 bit data
. It is possible to use other bit sizes
but best to use the largest to increase the bandwidth.
In
Capture Mode
,
specify whether trace data is collected before or after a trigger.
Trace After:
Capture the trace information after the trigger point and stop
capturing when trace buffer is full.
Trace Before:
Capture the most recent trace information before CPU is
stopped.