Serial wire Treace

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

Serial wire Treace

1,030 Views
TEMCEFF
Contributor IV

To use Tracing with J-Tag initialization file is required. In the same way initialization file is required for serial wire trace output. I'm using LPC1769 controller with ulink pro.

Labels (4)
0 Kudos
Reply
3 Replies

929 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Avinash

I recommend you read this file

https://community.nxp.com/message/630730 

Hope this helps,

Jun Zhang

0 Kudos
Reply

929 Views
TEMCEFF
Contributor IV

I'm using Keil IDE.

0 Kudos
Reply

929 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI Avinash

From the article I recommended, "SWO Trace is supported by LPCXpresso IDE for all NXP LPC MCUs based on Cortex-M3/M4 cpus, including LPC1300, LPC1500, LPC1700, LPC1800, LPC407x_8x, LPC4300 (M4 only) and LPC5410x."

But "instruction trace is not supported with LPC17xx MCUs (which do not implement an ETB)"

ETB hardware is not implemented in LPC17xx. The ETB (when implemented) directs the trace stream to on-chip SRAM, which can then be read out (typically via a debugger) and decoded.

 

The LPC17xx does generate a trace stream, and this is directed to the trace pins on the chip. You then need specialist hardware (such a Segger JTrace) to capture this stream and then decode it. The trace stream is generated at the same frequency as the CPU core.

For the usage of Keil, as it is not NXP product, please consult MDK.

Thanks,

Jun Zhang

0 Kudos
Reply