After speaking to Percepio’s support team, I discovered that they don’t support the debugger I am using (NXP’s MCU-Link).
However, I was able to get NXP’s MCUXpresso’s SWO Tracing tool to work, which is giving me the information I need.
If anyone wants to use MCUXpresso’s SWO Tracing for the RT1176 processor, follow these steps:
Configure the CSTRACE clock in the “Clocks” ConfigTool view:
In the “Pins” ConfigTool view, enable the SWO pin and route it to one of the two given options:
In the “Routing details” view in the “Pins” ConfigTool view, the default setup for the pin is given in italics. Click the dropdown menu for each accessible option and re-select the default value. This will change the setup parameters to normal text (not italics). This ensures that the code is generated for these settings. I have previously found that using these ‘default’ (italics) values as is can cause a pin not to work as expected.
Click “Update Code” in the ConfigTools view.
Start a debugging session
In the “SWO Trace Config” window, configure the “Clock speed” to 132MHz.
Use the various SWO Trace views’ start/stop controls to trace
Update: Although my previous post describes how to get information out of SWO tracing, this information is distorted in some fashion.
More information about the problem can be found in my post on NXP community.
There was a problem in NXP’s MCUXpresso IDE.
After they fixed this bug, the above process worked perfectly (results were no longer distorted).
Note that this process is specifically for the M7 core on the RT1176.
Should you wish to use this for the RT1176’s M4 core, there is no dedicated trace clock (no step 1), and the SWO clock speed should be equal to the core’s clock speed of 392MHz (step 6).
You can use the ‘detect’ clock speed function for this.