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

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

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

204 Views
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 

Labels (2)
0 Kudos
Reply
5 Replies

120 Views
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 Kudos
Reply

101 Views
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 Kudos
Reply

67 Views
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 Kudos
Reply

58 Views
sidsal
Contributor I

Thank you for your support @Alice_Yang .

0 Kudos
Reply

167 Views
sidsal
Contributor I

With respect to previous thread,

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

Thanks

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2403001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-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-2403001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3EHello%20Everyone%2C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20am%20currently%20working%20with%20the%20%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E%20development%20board%20and%20have%20been%20facing%20an%20issue%20with%20%3CSTRONG%3ESWO%20(Serial%20Wire%20Output)%3C%2FSTRONG%3E%20while%20debugging.%3C%2FP%3E%3CP%3EAlthough%20the%20application%20debugs%20successfully%2C%20I%20am%20unable%20to%20receive%20any%20data%20in%20the%20%3CSTRONG%3ESWO%20Trace%20windows%3C%2FSTRONG%3E%2C%20including%3A%3C%2FP%3E%3CUL%3E%3CLI%3ESWO%20Data%3C%2FLI%3E%3CLI%3ESWO%20Profile%3C%2FLI%3E%3CLI%3ESWO%20Interrupt%20Trace%3C%2FLI%3E%3CLI%3ESWO%20ITM%20Console%3C%2FLI%3E%3C%2FUL%3E%3CP%3ETo%20troubleshoot%20the%20issue%2C%20I%20have%20already%20verified%20the%20following%3A%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20%3CSTRONG%3ESWO%20pin%3C%2FSTRONG%3E%20has%20been%20correctly%20configured%20using%20%3CSTRONG%3EConfig%20Tools%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3EThe%20%3CSTRONG%3ETRACE%20clock%3C%2FSTRONG%3E%20is%20enabled%20and%20configured%20to%20%3CSTRONG%3E96%20MHz%3C%2FSTRONG%3E%2C%20matching%20the%20MCU%20core%20clock%20(MCXA156%20runs%20at%2096%20MHz).%3C%2FLI%3E%3CLI%3EThe%20project%20is%20being%20debugged%20using%20%3CSTRONG%3ELinkServer%3C%2FSTRONG%3E%20with%20the%20on-board%20%3CSTRONG%3EMCU-Link%3C%2FSTRONG%3E%20probe.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EDespite%20these%20configurations%2C%20all%20the%20SWO%20trace%20windows%20remain%20empty%20during%20debugging.%3C%2FP%3E%3CP%3EFor%20reference%2C%20I%20have%20attached%20screenshots%20of%20the%20%3CSTRONG%3ESWO%20Trace%20Configuration%3C%2FSTRONG%3E%2C%20%3CSTRONG%3ESWO%20Data%3C%2FSTRONG%3E%2C%20%3CSTRONG%3ESWO%20Profile%3C%2FSTRONG%3E%2C%20and%26nbsp%3Bother%20windows%2C%20along%20with%20the%20relevant%20project%20configuration.%3C%2FP%3E%3CP%3EI%20would%20greatly%20appreciate%20any%20guidance%20or%20suggestions%20on%20what%20might%20be%20causing%20this%20issue%20or%20if%20there%20are%20any%20additional%20configuration%20steps%20required%20to%20enable%20SWO%20trace%20on%20the%20%3CSTRONG%3EFRDM-MCXA156%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%20and%20assistance.%3C%2FP%3E%3CP%3E%23swo%20%23frdm-mcxa156%26nbsp%3B%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%3EDevelopment%20Board%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%3EWith%20respect%20to%20previous%20thread%2C%3C%2FP%3E%3CP%3EThe%20screenshot%20of%20SWO%20enable%20configuration%20and%20clocks%20are%20attached%20below.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403179%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-2403179%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F265424%22%20target%3D%22_blank%22%3E%40sidsal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EFor%20the%20FRDM-MCXA156%20board%2C%20resistor%20R36%2C%20which%20connects%20the%20SWO%20signal%20to%20the%20onboard%20debugger%2C%20is%20DNP%20(not%20populated)%20by%20default.%20Could%20you%20please%20populate%20R36%20and%20test%20again%3F%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1786344510075.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1786344510075.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1786344510075.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1786344510075.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1786344510075.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F394056i2D75DA315A5F0B4A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1786344510075.png%22%20alt%3D%22Alice_Yang_0-1786344510075.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403333%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-2403333%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EThank%20you%20for%20pointing%20this%20out%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F27788%22%20target%3D%22_blank%22%3E%40Alice_Yang%3C%2FA%3E%26nbsp%3B.%20I%20checked%20the%20FRDM-MCXA156%20schematic%20and%20confirmed%20that%20R36%2C%20which%20connects%20the%20P0_2%2FSWO%20signal%20to%20the%20onboard%20MCU-Link%20debugger%2C%20is%20marked%20as%20DNP.%3C%2FP%3E%3CP%3EI%20also%20noticed%20that%20on%20the%20FRDM-MCXN947%2C%20the%20equivalent%20SWO%20connection%20(R130)%20is%20populated%20with%20a%200%20%CE%A9%20resistor.%20Could%20you%20please%20confirm%20whether%20R36%20on%20the%20FRDM-MCXA156%20should%20also%20be%20populated%20with%20a%200%20%CE%A9%20resistor%20to%20enable%20SWO%20tracing%20through%20the%20onboard%20MCU-Link%20debugger%3F%3C%2FP%3E%3CP%3E%3CSTRONG%3EAdditionally%2C%20could%20you%20please%20clarify%20why%20R36%20is%20left%20unpopulated%20(DNP)%20by%20default%20on%20the%20FRDM-MCXA156%3F%3C%2FSTRONG%3E%20Is%20there%20a%20specific%20board-design%20reason%20or%20limitation%20that%20requires%20it%20to%20remain%20unpopulated%3F%20So%20I%20cannot%20use%20SWO%20feature%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403990%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-2403990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F265424%22%20target%3D%22_blank%22%3E%40sidsal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%22%26nbsp%3BC%3CSPAN%3Eould%20you%20please%20confirm%20whether%20R36%20on%20the%20FRDM-MCXA156%20should%20also%20be%20populated%20with%20a%200%20%CE%A9%20resistor%20to%20enable%20SWO%20tracing%20through%20the%20onboard%20MCU-Link%20debugger%3F%3C%2FSPAN%3E%22%3C%2FP%3E%0A%3CP%3E-%26gt%3B%26gt%3BYes.%20If%20you%20want%20to%20use%20the%20SWO%20function%2C%20you%20need%20to%20install%20a%200%20%CE%A9%20resistor%20or%20solder%20the%20connection%20accordingly.%3C%2FP%3E%0A%3CP%3E%E2%80%9CAdditionally%2C%20could%20you%20please%20clarify%20why%20R36%20is%20left%20unpopulated%20(DNP)%20by%20default%20on%20the%20FRDM-MCXA156%3F%26nbsp%3B%E2%80%9D%3C%2FP%3E%0A%3CP%3E-%26gt%3B%26gt%3BI%20think%20this%20is%20because%20not%20all%20users%20require%20the%20SWO%20function%2C%20so%20the%200%20%CE%A9%20resistor%20is%20not%20populated%20by%20default.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2404218%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-2404218%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20support%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F27788%22%20target%3D%22_blank%22%3E%40Alice_Yang%3C%2FA%3E%26nbsp%3B.%3C%2FP%3E%3C%2FLINGO-BODY%3E