Unable to get SWO to work on RT1170 EVKB using Keil + J-Link

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unable to get SWO to work on RT1170 EVKB using Keil + J-Link

跳至解决方案
1,232 次查看
Dave7
Contributor II

Hi,

I have been trying to get the SWO to work on RT1170 EVKB using Keil with external J-Link but so far failed. I used to be able to make the SWO work easily but so lost with the RT1170.

 

I have checked the following discussion.

https://mcuoneclipse.com/2019/06/03/swo-with-nxp-i-mx-rt1064-evk-board

https://community.nxp.com/t5/Blog/Overview-of-using-the-MIMXRT1170-EVK-with-MCUXpresso-IDE/ba-p/1241...

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-J-Link-with-MIMXRT1170-EVKB/ta-p/1715138

 

Tried the following combination using below tools:

Keil MDK V5.38a

McuXpresso V11.8.0

J-Link DLL V7.92e

Updated CMSIS-DAP to V3.122.

RT1170 EVKB SDK V2.14

 

1. Keil + CMSIS-DAP

When entering debug, an error occurred.

Dave7_0-1695100599951.png

 

2. Keil + (Onboard) J-Link firmware

No output on the trace window

 

3. Keil + External J-Link Ultra+

No output on the trace window

 

4. McuXpresso + External J-Link Ultra+

https://community.nxp.com/t5/i-MX-RT/How-using-SWO-on-RT1170-and-MIMXRT1170-EVK-board/td-p/1494634

Followed the steps as described by Kerry. It is able to recognize the SWO clock. However, this is as far as I go because after the "Change" clock, the debugger will hang. By removing the breakpoint at SystemCoreClockUpdate() and skip the "Change" clock step, the debug will continue to run but the ITM will not be enabled.

Dave7_0-1695102834936.png

 

I have also check the signal on the SWO pin. The signal is forever low throughout all the testing be it using Keil / McuXpresso with onboard or external debugger..

 

The GPIO_LPSR_11 pin is confirmed working by setting it to GPIO and output pulses. The pulses can be captured on the oscilloscope.

 

I'm confused with the Errata ERR050708. Do I need to configure the Funnel / TPIU through PPB 0xE004_4000 - 0xE004_8000? Tried the code posted by ConstYu but it didn't work either.

https://community.nxp.com/t5/MCUXpresso-IDE/What-the-IDE-will-do-when-i-check-SWO-init-by-IDE-for-RT...

 

Would greatly appreciate for any guidance on how to get the SWO to work.

Thank you,

Dave

 

0 项奖励
回复
1 解答
1,143 次查看
lucas_cao
NXP Employee
NXP Employee

Please find MIMXRT1170EVKBHUG in our website and check chapter 2.19 Cortex debug + ETM

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,144 次查看
lucas_cao
NXP Employee
NXP Employee

Please find MIMXRT1170EVKBHUG in our website and check chapter 2.19 Cortex debug + ETM

0 项奖励
回复
1,129 次查看
Dave7
Contributor II

Hello Lucas,

The workaround mentioned in MIMXRT1170EVKBHUG works. 

Appreciate and thank you very much for your assistance.

Best regards,

Dave

0 项奖励
回复
1,138 次查看
Dave7
Contributor II

Hello Lucas and Pavel,

Thank you for your kind assistance.

I'll try the workaround mentioned in 2.19 and will post the result.

Thank you and best regards,

Dave

0 项奖励
回复
1,162 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, let me get into your case and when I have more information, I will contact you.

Best regards,
Pavel

0 项奖励
回复