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/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.
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.
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.
Would greatly appreciate for any guidance on how to get the SWO to work.
Thank you,
Dave
解決済! 解決策の投稿を見る。
Please find MIMXRT1170EVKBHUG in our website and check chapter 2.19 Cortex debug + ETM
Hello Lucas,
The workaround mentioned in MIMXRT1170EVKBHUG works.
Appreciate and thank you very much for your assistance.
Best regards,
Dave
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
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