Trouble configuring SWO on RT1176

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

Trouble configuring SWO on RT1176

373 Views
guowa
Contributor I

Hi everyone, 

I'm trying to get the statistical profiling tool from MCUXpresso to work with my RT1176-based board but I can't get through the SWO Trace Configuration. 

Procedure to reproduce: 

  1. take any example or custom project for RT1176
  2. configure SWO pin (GPIO_LPSR_11) as SWO (output, software input on, no init in pull up/down)
  3. run the program in debug with a probe of your choosing (I have problems with integrated probe on the eval and with JLINK and PE with the custom board) 
  4. pause the program after a while to make sure clocks and pins are initialized 
  5. go to SWO Trace Configuration and invoke the clock config window 
  6. click 'detect' to get the core clock and set trace clock to 20 kHz 
  7. click 'OK'
  8. resume the program


The issue has different symptoms on my eval and custom boards but for the moment, I would be happy to get any of them to work.

Symptoms on MIMXRT1170-EVKB board (evkbmimxrt1170_lvgl_demo_benchmark_cm7 example):

  • the board will crash on step 8). The IDE remains responsive but the board remains frozen and will not respond to the debug probe until I cycle its power. 
  • the error message I get is: "Target reported errors. Reason: 15: Target error from register access.       Wire ACK Fault in DAP access"

 

Symptoms on my custom board with the same MCU, just in the industrial version limited to 800 MHz:

  • the IDE freezes on step 7). It remains unresponsive indefinitely and must be killed from the task manager. 

 

Questions:

  1. did anyone experience this problem? Do you have any suggestions how to get this to work to run the statistical profiler? 
  2. can anyone point me to a relevant example or documentation? All examples, ANs and discussions I could find are for other MCU families (RT1160 or 1150) which seem to have completely different debugging facilities and clock tree architecture. Their trace clocks just don't exist on the RT1170 platform. 

 

0 Kudos
Reply
1 Reply

326 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @guowa ,

Thanks for your interest in NXP MIMXRT series!

Here is a detailed guide case on how to use RT1170-EVK + JLink for SWO tracking. You can refer to this link: https://community.nxp.com/t5/i-MX-RT/How-using-SWO-on-RT1170-and-MIMXRT1170-EVK-board/td-p/1494634.

Also, I have tested it and put this demo in an attachment for your perusal.

Gavin_Jia_0-1709884211061.png

In addition, an AN and another useful reference document are provided.
1. https://www.nxp.com/docs/en/application-note/AN14071.pdf : Trace Implementation on i.MX RT1170;
2. https://community.nxp.com/t5/Blog/Overview-of-using-the-MIMXRT1170-EVK-with-MCUXpresso-IDE/ba-p/1241... Chapter11: Project Modifications required to enable SWO Trace

Best regards,
Gavin

0 Kudos
Reply