LPC4088 SWO Tracing with CMSIS-DAP or J-Link

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC4088 SWO Tracing with CMSIS-DAP or J-Link

1,095件の閲覧回数
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,080件の閲覧回数
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 件の賞賛
返信