FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE

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

FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE

215 次查看
sidsal
Contributor I

Hello Everyone,

I am currently working with the FRDM-MCXA156 development board and have been facing an issue with SWO (Serial Wire Output) while debugging.

Although the application debugs successfully, I am unable to receive any data in the SWO Trace windows, including:

  • SWO Data
  • SWO Profile
  • SWO Interrupt Trace
  • SWO ITM Console

To troubleshoot the issue, I have already verified the following:

  • The SWO pin has been correctly configured using Config Tools.
  • The TRACE clock is enabled and configured to 96 MHz, matching the MCU core clock (MCXA156 runs at 96 MHz).
  • The project is being debugged using LinkServer with the on-board MCU-Link probe.

Despite these configurations, all the SWO trace windows remain empty during debugging.

For reference, I have attached screenshots of the SWO Trace Configuration, SWO Data, SWO Profile, and other windows, along with the relevant project configuration.

I would greatly appreciate any guidance or suggestions on what might be causing this issue or if there are any additional configuration steps required to enable SWO trace on the FRDM-MCXA156.

Thank you for your time and assistance.

#swo #frdm-mcxa156 

标签 (2)
0 项奖励
回复
5 回复数

131 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sidsal 

For the FRDM-MCXA156 board, resistor R36, which connects the SWO signal to the onboard debugger, is DNP (not populated) by default. Could you please populate R36 and test again?

Alice_Yang_0-1786344510075.png

Thank you.

 

BR

Alice

 

0 项奖励
回复

112 次查看
sidsal
Contributor I

Thank you for pointing this out @Alice_Yang . I checked the FRDM-MCXA156 schematic and confirmed that R36, which connects the P0_2/SWO signal to the onboard MCU-Link debugger, is marked as DNP.

I also noticed that on the FRDM-MCXN947, the equivalent SWO connection (R130) is populated with a 0 Ω resistor. Could you please confirm whether R36 on the FRDM-MCXA156 should also be populated with a 0 Ω resistor to enable SWO tracing through the onboard MCU-Link debugger?

Additionally, could you please clarify why R36 is left unpopulated (DNP) by default on the FRDM-MCXA156? Is there a specific board-design reason or limitation that requires it to remain unpopulated? So I cannot use SWO feature? 

Thank you for your help.

0 项奖励
回复

78 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sidsal 

" Could you please confirm whether R36 on the FRDM-MCXA156 should also be populated with a 0 Ω resistor to enable SWO tracing through the onboard MCU-Link debugger?"

->>Yes. If you want to use the SWO function, you need to install a 0 Ω resistor or solder the connection accordingly.

“Additionally, could you please clarify why R36 is left unpopulated (DNP) by default on the FRDM-MCXA156? ”

->>I think this is because not all users require the SWO function, so the 0 Ω resistor is not populated by default.

 

Thank you.

 

BR

Alice

0 项奖励
回复

69 次查看
sidsal
Contributor I

Thank you for your support @Alice_Yang .

0 项奖励
回复

178 次查看
sidsal
Contributor I

With respect to previous thread,

The screenshot of SWO enable configuration and clocks are attached below.

Thanks

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2403001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-MCXA156%EF%BC%9AMCUXpresso%20IDE%20%E4%B8%AD%E7%9A%84%20SWO%20%E8%B7%9F%E8%B8%AA%EF%BC%88%E6%95%B0%E6%8D%AE%E3%80%81%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%92%8C%E4%B8%AD%E6%96%AD%EF%BC%89%E5%8A%9F%E8%83%BD%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%E5%BC%80%E5%8F%91%E6%9D%BF%EF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C%2FSTRONG%3E%E3%80%81%20%3CSTRONG%3ESWO%20%E6%95%B0%E6%8D%AE%3C%2FSTRONG%3E%E3%80%81%20%3CSTRONG%3ESWO%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%3C%2FSTRONG%3E%E5%92%8C%E5%85%B6%E4%BB%96%E7%AA%97%E5%8F%A3%E7%9A%84%E6%88%AA%E5%9B%BE%EF%BC%8C%E4%BB%A5%E5%8F%8A%E7%9B%B8%E5%85%B3%E7%9A%84%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE%E3%80%82%3C%2FP%3E%3CP%3E%E5%AF%B9%E4%BA%8E%E5%8F%AF%E8%83%BD%E5%AF%BC%E8%87%B4%E6%AD%A4%E9%97%AE%E9%A2%98%E7%9A%84%E5%8E%9F%E5%9B%A0%EF%BC%8C%E6%88%96%E8%80%85%E5%9C%A8%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%E4%B8%8A%E5%90%AF%E7%94%A8%20SWO%20%E8%B7%9F%E8%B8%AA%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E4%BB%BB%E4%BD%95%E9%A2%9D%E5%A4%96%E7%9A%84%E9%85%8D%E7%BD%AE%E6%AD%A5%E9%AA%A4%EF%BC%8C%E6%88%91%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%E6%82%A8%E8%83%BD%E6%8F%90%E4%BE%9B%E4%BB%BB%E4%BD%95%E6%8C%87%E5%AF%BC%E6%88%96%E5%BB%BA%E8%AE%AE%E3%80%82%3C%2FP%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E6%8A%BD%E5%87%BA%E6%97%B6%E9%97%B4%E6%8F%90%E4%BE%9B%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FP%3E%3CP%3E%23swo%20%23frdm-mcxa156%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2403001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E5%BC%80%E5%8F%91%E6%9D%BF%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMCXA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403018%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-MCXA156%3A%20SWO%20Trace%20(Data%2C%20Profile%20%26amp%3B%20Interrupts)%20Not%20Working%20in%20MCUXpresso%20IDE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403018%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%85%B3%E4%BA%8E%E4%B9%8B%E5%89%8D%E7%9A%84%E5%B8%96%E5%AD%90%EF%BC%8C%3C%2FP%3E%3CP%3E%E4%B8%8B%E9%9D%A2%E9%99%84%E4%B8%8A%20SWO%20%E5%90%AF%E7%94%A8%E9%85%8D%E7%BD%AE%E5%92%8C%E6%97%B6%E9%92%9F%E7%9A%84%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%E3%80%82%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E