LPC4088 SWO Tracing with CMSIS-DAP or J-Link

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC4088 SWO Tracing with CMSIS-DAP or J-Link

1,094 次查看
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 项奖励
回复
1 回复

1,079 次查看
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 项奖励
回复