LPC4088 SWO Tracing with CMSIS-DAP or J-Link

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

LPC4088 SWO Tracing with CMSIS-DAP or J-Link

1,316 Views
tux19
Contributor I

I am trying to get SWO tracing inside MCUXpresso working. I have an LPC4088 QSB with the onboard CMSIS-DAP LPC-Link2 debugger and an external SEGGER J-Link probe.

I can debug successfully with both probes, but when I start SWO tracing windows, its not possible to configure the SWO correctly.

swo_config.png

 

What steps am I missing to get this to work with both probes?

0 Kudos
Reply
1 Reply

1,301 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Christian,

If you use SWO, you have to use SWD protocol(includinf SWDIO, SWCLK, SWO(optional)), the SWO pin of LPC4088 must be connected in the onboard CMSIS-DAP LPC-Link2 debugger and an external SEGGER J-Link probe.

secondly, you have to use PRINTF() function in application code so that message in PRINT() function can output via SWO.

I attach a doc which demos how to use SWO.

Regarding the question where the PRINTF() function will output, it is dependent on the tools, the PRINT() function can output to console, uart, ITM.

 

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply