RT1050 EVK SWO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1050 EVK SWO

229 Views
otsl
Contributor III

Using the Hello World SWO project, I am still unable to get SWO (or ITM console) to work.

-MCUXpresso v24.9

- R428 installed (EVKB)

- EVK has LPCLink2 firmware flashed

- launch file and sdk manifest both have has_swo to true (not sure why recent SDKs do not have this set to true by default?). SDK version 2.16

I'm still missing something though, as things are not working.

I believe the processor is configured properly, as I see activity on the SWO pin (confirming that pins and clocks are set properly). There is no output on ITM Console. Therefore I believe I'm missing some setting in the the IDE/debugger.

The SWO Trace Config tab lets me change the clock speed. Before selecting the 'Change' button, the SWO and Trace Console shows the below (so far, so good):

Generic ROM base address: 0xE00FD000

 

***---------- Identify CoreSight Components ----------***

Unchecked ROM Table class 15 at address E0043000

Identified component Address 0xE0040000 CID1 = 144 PID0 = 169 PID1 = 185 PID2 = 11 PID3 = 0 DEVARCH = 0x0 Revision = 0

Identified component Address 0xE0041000 CID1 = 144 PID0 = 117 PID1 = 185 PID2 = 27 PID3 = 0 DEVARCH = 0x47704A13 Revision = 1

Identified component Address 0xE0042000 CID1 = 144 PID0 = 6 PID1 = 185 PID2 = 75 PID3 = 0 DEVARCH = 0x0 Revision = 4

Identified component Address 0xE000E000 CID1 = 224 PID0 = 12 PID1 = 176 PID2 = 11 PID3 = 0 Revision = 0

Identified component Address 0xE0001000 CID1 = 224 PID0 = 2 PID1 = 176 PID2 = 11 PID3 = 0 Revision = 0

Identified component Address 0xE0002000 CID1 = 224 PID0 = 14 PID1 = 176 PID2 = 11 PID3 = 0 Revision = 0

Identified component Address 0xE0000000 CID1 = 224 PID0 = 1 PID1 = 176 PID2 = 11 PID3 = 0 Revision = 0

 

otsl_1-1733170687860.png

Clicking the Change button presents me with the dialog to set clock speeds. Detect does not work. When I add the two clock speeds (Core: 600MHz and Trace 132MHz), with SWO configured by IDE, I see the following messages in the SWO and Trace Console:

***---------- Considered CoreSight Components ----------***

Error creating CoreSight component CS_DWT at address 0xE0001000

Error creating CoreSight component CM7_ITM at address 0xE0000000

Error creating CoreSight component CM7F_TPIU at address 0xE0040000

Error creating CoreSight component CM7_MIMXRT_ETM at address 0xE0041000

 

otsl_0-1733170359493.png
 
Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

178 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @otsl ,

Thanks for your interest in NXP MIMXRT series!

SWO is dependent on the debugger. Simply using the on-board debugger is not an option.

Gavin_Jia_0-1733470299810.png

 

Please kindly refer to the AN13234 How to Enable SWO Trace for i.MX RT10xx Series. It is more recommended to use an external JLink debugger.

Best regards,
Gavin

0 Kudos
Reply

172 Views
otsl
Contributor III

The on-board debugger is detected as: "Probe Firmware: LPC-LINK2 CMSIS-DAP V5.460 (NXP Semiconductors)". The application note (which I have read) says LinkServer LPC-Link2 is supported. The EVK has SWO routed to the on-board debugger as "TDO_SWO".

I can't see why it is not supported in the configuration I have. Are you saying that despite meeting the above requirements, it is not supported?

 

 

0 Kudos
Reply

114 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @otsl.

The LPC-Link2 mentioned in the AN is an external standalone debugger. Just flashing the firmware with the on-board debugger does not fulfil the condition.

 

0 Kudos
Reply