File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -189,16 +189,10 @@ export class STLinkServerController extends EventEmitter implements GDBServerCon
189
189
const ratio = Math . floor ( cpuFrequency / swoFrequency ) - 1 ;
190
190
191
191
const commands = [
192
- 'EnableITMAccess' ,
193
- `BaseSWOSetup ${ ratio } ` ,
194
- 'SetITMId 1' ,
195
- 'ITMDWTTransferEnable' ,
196
- 'DisableITMPorts 0xFFFFFFFF' ,
197
- `EnableITMPorts ${ portMask } ` ,
198
- 'EnableDWTSync' ,
199
- this . args . swoConfig . profile ? 'EnablePCSample' : 'DisablePCSample' ,
200
- 'ITMSyncEnable' ,
201
- 'ITMGlobalEnable'
192
+ `set $cpuFreq = ${ cpuFrequency } ` ,
193
+ `set $swoFreq = ${ swoFrequency } ` ,
194
+ `set $swoPortMask = ${ portMask } ` ,
195
+ 'SWO_Init'
202
196
] ;
203
197
204
198
return commands . map ( ( c ) => `interpreter-exec console "${ c } "` ) ;
You can’t perform that action at this time.
0 commit comments