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

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

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

207件の閲覧回数
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 返答(返信)

123件の閲覧回数
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 件の賞賛
返信

104件の閲覧回数
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 件の賞賛
返信

70件の閲覧回数
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 件の賞賛
返信

61件の閲覧回数
sidsal
Contributor I

Thank you for your support @Alice_Yang .

0 件の賞賛
返信

170件の閲覧回数
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%3AMCUXpresso%20IDE%E3%81%A7SWO%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9(%E3%83%87%E3%83%BC%E3%82%BF%E3%80%81%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%80%81%E5%89%B2%E3%82%8A%E8%BE%BC%E3%81%BF)%E3%81%8C%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%AA%E3%81%84%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%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E3%81%BF%E3%82%93%E3%81%AA%E3%80%81%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%E7%8F%BE%E5%9C%A8%E3%80%81%20%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%20%E3%81%AE%E9%96%8B%E7%99%BA%E3%83%9C%E3%83%BC%E3%83%89%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%84%E3%81%A6%E3%80%81%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E4%B8%AD%E3%81%AB%20%3CSTRONG%3ESWO(%E3%82%B7%E3%83%AA%E3%82%A2%E3%83%AB%E3%83%AF%E3%82%A4%E3%83%A4%E3%83%BC%E5%87%BA%E5%8A%9B)%3C%2FSTRONG%3E%20%E3%81%A7%E5%95%8F%E9%A1%8C%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AF%E6%AD%A3%E5%B8%B8%E3%81%AB%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%20%3CSTRONG%3ESWO%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%3C%2FSTRONG%3E%E3%81%AB%E3%81%AF%E4%BB%A5%E4%B8%8B%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E3%81%8C%E4%B8%80%E5%88%87%E5%B1%8A%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CUL%3E%3CLI%3ESWO%E3%83%87%E3%83%BC%E3%82%BF%3C%2FLI%3E%3CLI%3ESWO%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%3C%2FLI%3E%3CLI%3ESWO%E5%89%B2%E3%82%8A%E8%BE%BC%E3%81%BF%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9%3C%2FLI%3E%3CLI%3ESWO%20ITM%E3%82%B3%E3%83%B3%E3%82%BD%E3%83%BC%E3%83%AB%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%E5%95%8F%E9%A1%8C%E3%81%AE%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%AE%E3%81%9F%E3%82%81%E3%80%81%E4%BB%A5%E4%B8%8B%E3%81%AE%E7%82%B9%E3%82%92%E6%97%A2%E3%81%AB%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3ESWO%E3%83%94%E3%83%B3%E3%81%AF%3C%2FSTRONG%3E%3CSTRONG%3EConfig%20Tools%3C%2FSTRONG%3E%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E6%AD%A3%E3%81%97%E3%81%8F%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FLI%3E%3CLI%3E%3CSTRONG%3ETRACE%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%3C%2FSTRONG%3E%E3%81%AF%E6%9C%89%E5%8A%B9%E5%8C%96%E3%81%95%E3%82%8C%E3%80%81%3CSTRONG%3E96%20MHz%3C%2FSTRONG%3E%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81MCU%E3%82%B3%E3%82%A2%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF(MCXA156%2096%20MHz%E3%81%A7%E5%8B%95%E4%BD%9C)%E3%81%A8%E4%B8%80%E8%87%B4%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%3CLI%3E%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AF%E3%80%81%E3%82%AA%E3%83%B3%E3%83%9C%E3%83%BC%E3%83%89%E3%81%AE%3CSTRONG%3EMCU-Link%3C%2FSTRONG%3E%E3%83%97%E3%83%AD%E3%83%BC%E3%83%96%E3%82%92%E6%90%AD%E8%BC%89%E3%81%97%E3%81%9F%3CSTRONG%3ELinkServer%3C%2FSTRONG%3E%E3%82%92%E7%94%A8%E3%81%84%E3%81%A6%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%E3%81%93%E3%82%8C%E3%82%89%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%82%82%E3%81%8B%E3%81%8B%E3%82%8F%E3%82%89%E3%81%9A%E3%80%81%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E4%B8%AD%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AESWO%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%8C%E7%A9%BA%E3%81%AE%E3%81%BE%E3%81%BE%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E5%8F%82%E8%80%83%E3%81%BE%E3%81%A7%E3%81%AB%E3%80%81%20%3CSTRONG%3ESWO%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9%E6%A7%8B%E6%88%90%3C%2FSTRONG%3E%E3%80%81%20%3CSTRONG%3ESWO%E3%83%87%E3%83%BC%E3%82%BF%3C%2FSTRONG%3E%E3%80%81%20%3CSTRONG%3ESWO%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%3C%2FSTRONG%3E%E3%80%81%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%E3%81%A8%E3%80%81%E9%96%A2%E9%80%A3%E3%81%99%E3%82%8B%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E6%A7%8B%E6%88%90%E3%82%92%E6%B7%BB%E4%BB%98%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%AE%E5%8E%9F%E5%9B%A0%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%80%81%E3%81%BE%E3%81%9F%E3%81%AF%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%E3%81%A7SWO%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B9%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E5%BF%85%E8%A6%81%E3%81%AA%E8%BF%BD%E5%8A%A0%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%89%8B%E9%A0%86%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%80%81%E3%81%94%E5%8A%A9%E8%A8%80%E3%82%84%E3%81%94%E6%8F%90%E6%A1%88%E3%82%92%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%82%8C%E3%81%B0%E5%A4%A7%E5%A4%89%E3%81%82%E3%82%8A%E3%81%8C%E3%81%9F%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%8A%E6%99%82%E9%96%93%E3%81%A8%E3%81%94%E5%8D%94%E5%8A%9B%E3%81%AB%E6%84%9F%E8%AC%9D%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%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%E9%96%8B%E7%99%BA%E3%83%9C%E3%83%BC%E3%83%89%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%89%8D%E3%81%AE%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81%3C%2FP%3E%3CP%3ESWO%E6%9C%89%E5%8A%B9%E5%8C%96%E8%A8%AD%E5%AE%9A%E3%81%A8%E3%82%AF%E3%83%AD%E3%83%83%E3%82%AF%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%E3%82%92%E4%BB%A5%E4%B8%8B%E3%81%AB%E6%B7%BB%E4%BB%98%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E