Skip to content

Commit 486013d

Browse files
committed
[nrf noup] boards: nordic: nrf54h20: Improve ETM
Ozone wants to configure TPIU on v3.38+, so prevent it from doing that. Also enable the lowpower mode to improve debugging through resets. Signed-off-by: Karsten Koenig <[email protected]>
1 parent ff8f0c5 commit 486013d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

boards/nordic/nrf54h20dk/support/nrf54h20_cpuapp.JLinkScript

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ int ConfigTargetSettings(void)
155155
// Adjust trace sample delay to compensate for timing when using 320MHz
156156
JLINK_ExecCommand("TraceSampleAdjust TD = 1000");
157157

158+
JLINK_ExecCommand("CORESIGHT_SetTPIUBaseAddr = 0xBF043000");
159+
160+
return 0;
161+
}
162+
163+
int StartTPIU(void)
164+
{
165+
/* We sort this ourselves in _SetupETMTPIUTrace, don't let JLink touch it */
166+
return 0;
167+
}
168+
169+
int StopTPIU(void)
170+
{
158171
return 0;
159172
}
160173

@@ -169,6 +182,11 @@ int OnTraceStart(void)
169182
return 0;
170183
}
171184

185+
int AfterResetTarget(void)
186+
{
187+
_needCoresightSetup = 1;
188+
return 0;
189+
}
172190

173191
int SetupTarget(void)
174192
{
@@ -179,3 +197,8 @@ int SetupTarget(void)
179197

180198
return 0;
181199
}
200+
201+
int InitEMU(void) {
202+
JLINK_ExecCommand("EnableLowPowerHandlingMode");
203+
return 0;
204+
}

0 commit comments

Comments
 (0)