S32K396-BGA-DC1 OpenSDA only enumerates as CDC Serial Port, cannot debug with S32DS

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

S32K396-BGA-DC1 OpenSDA only enumerates as CDC Serial Port, cannot debug with S32DS

344 Views
Jesusear18
Contributor I

Hello community,

I am experiencing an issue with a new S32K396-BGA-DC1 evaluation board when trying to debug using S32 Design Studio for S32 Platform 3.5 and the on-board OpenSDA debugger.

I cannot debugger my code on the board.

Problem description

The board enumerates in Windows only as a CDC Serial Port:

  • “OpenSDA – CDC Serial Port”

It never enumerates as a PEMicro Multilink device, and therefore S32DS cannot establish a debug connection.
Debug attempts always fail with:

“PEMicro GDB Launch Failure: The GDB Server was not able to establish a connection to the target processor.”

Jesusear18_1-1767951588996.png

What has been verified

  • Board is new, straight from factory

  • S32 Design Studio 3.5 installed correctly

  • Example projects (e.g. Dio_Example_S32K396) build successfully

  • GNU ARM PEMicro Interface Debugging Support is installed in S32DS

  • PEMicro Windows drivers installed

  • Debug jumpers J16/J17/J18/J19 set correctly for OpenSDA (1-2)

  • SWD selected, low speed, connect-under-reset enabled

  • Windows never shows PEMicro USB Multilink, only CDC

  • No OpenSDA boot/reset button or maintenance jumper is available on this board

  • No documented OpenSDA recovery procedure found for S32K396-BGA-DC1

Question

  • Is there an official procedure to recover or reflash the OpenSDA firmware on the S32K396-BGA-DC1?

  • If not, should this be considered a defective OpenSDA unit, and is board replacement (RMA) the recommended action?

  • Is the on-board OpenSDA officially supported for debugging on this board, or is an external debugger (PEMicro / Lauterbach / J-Link) required?

Any guidance or official confirmation would be greatly appreciated.

Best regards,
Jesus ASCENCIO

0 Kudos
Reply
1 Reply

288 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Jesusear18,

Is there an official procedure to recover or reflash the OpenSDA firmware on the S32K396-BGA-DC1?

Here you have some information related to the K20 version. There is not much difference with the K65 version. I believe K65 doesn't support drag&drop firmware updated:

Do you have a Cyclon/Multilink programmer that you can use to re-flash it? If not, then you won't be able to re-flash it and it would be better to use the FX directly on the K3.

I understand you have confirmed software, jumpers and connections. I assume you have followed Getting Started With S32K396-BGA-DC1 Evaluation Board, correct? Please confirm if the board is correctly supplied with 12V, and the jumper is set correctly for this input (J3 1-2).

Could you please share your installation details for S32DS? Specifically, S32K3xx development package must be installed:

Julin_AragnM_0-1767996284741.png

If not, should this be considered a defective OpenSDA unit, and is board replacement (RMA) the recommended action? Is the on-board OpenSDA officially supported for debugging on this board, or is an external debugger (PEMicro / Lauterbach / J-Link) required?

Yes, the S32K396 can be debugged through the OpenSDA port. To rule out other root causes, could you try using an external debugger on the MCU? 

When connecting to USB Header J15, is the LED D30 (green) ON? Is the debugger U34 (K65) physically on the board?

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K396-BGA-DC1%20OpenSDA%20only%20enumerates%20as%20CDC%20Serial%20Port%2C%20cannot%20debug%20with%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20community%2C%3C%2FP%3E%3CP%3EI%20am%20experiencing%20an%20issue%20with%20a%20%3CSTRONG%3Enew%20S32K396-BGA-DC1%20evaluation%20board%3C%2FSTRONG%3E%20when%20trying%20to%20debug%20using%20%3CSTRONG%3ES32%20Design%20Studio%20for%20S32%20Platform%203.5%3C%2FSTRONG%3E%20and%20the%20%3CSTRONG%3Eon-board%20OpenSDA%20debugger%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EI%20cannot%20debugger%20my%20code%20on%20the%20board.%3C%2FP%3E%3CH3%20id%3D%22toc-hId-2006001894%22%20id%3D%22toc-hId-2006025977%22%3EProblem%20description%3C%2FH3%3E%3CP%3EThe%20board%20enumerates%20in%20Windows%20%3CSTRONG%3Eonly%20as%20a%20CDC%20Serial%20Port%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CEM%3E%E2%80%9COpenSDA%20%E2%80%93%20CDC%20Serial%20Port%E2%80%9D%3C%2FEM%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIt%20%3CSTRONG%3Enever%20enumerates%20as%20a%20PEMicro%20Multilink%20device%3C%2FSTRONG%3E%2C%20and%20therefore%20S32DS%20cannot%20establish%20a%20debug%20connection.%3CBR%20%2F%3EDebug%20attempts%20always%20fail%20with%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E%3CEM%3E%E2%80%9CPEMicro%20GDB%20Launch%20Failure%3A%20The%20GDB%20Server%20was%20not%20able%20to%20establish%20a%20connection%20to%20the%20target%20processor.%E2%80%9D%3C%2FEM%3E%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jesusear18_1-1767951588996.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jesusear18_1-1767951588996.png%22%20style%3D%22width%3A%20383px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372302iDA8144362EA6F3AF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jesusear18_1-1767951588996.png%22%20alt%3D%22Jesusear18_1-1767951588996.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FBLOCKQUOTE%3E%3CH3%20id%3D%22toc-hId-198547431%22%20id%3D%22toc-hId-198571514%22%3EWhat%20has%20been%20verified%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%3EBoard%20is%20%3CSTRONG%3Enew%2C%20straight%20from%20factory%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ES32%20Design%20Studio%203.5%20installed%20correctly%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EExample%20projects%20(e.g.%20Dio_Example_S32K396)%20build%20successfully%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EGNU%20ARM%20PEMicro%20Interface%20Debugging%20Support%3C%2FSTRONG%3E%20is%20installed%20in%20S32DS%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPEMicro%20Windows%20drivers%20installed%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EDebug%20jumpers%20%3CSTRONG%3EJ16%2FJ17%2FJ18%2FJ19%3C%2FSTRONG%3E%20set%20correctly%20for%20OpenSDA%20(1-2)%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ESWD%20selected%2C%20low%20speed%2C%20connect-under-reset%20enabled%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EWindows%20%3CSTRONG%3Enever%20shows%20PEMicro%20USB%20Multilink%3C%2FSTRONG%3E%2C%20only%20CDC%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ENo%20OpenSDA%20boot%2Freset%20button%20or%20maintenance%20jumper%20is%20available%20on%20this%20board%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ENo%20documented%20OpenSDA%20recovery%20procedure%20found%20for%20S32K396-BGA-DC1%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CH3%20id%3D%22toc-hId--1608907032%22%20id%3D%22toc-hId--1608882949%22%3EQuestion%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%3EIs%20there%20an%20%3CSTRONG%3Eofficial%20procedure%20to%20recover%20or%20reflash%20the%20OpenSDA%20firmware%3C%2FSTRONG%3E%20on%20the%20S32K396-BGA-DC1%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIf%20not%2C%20should%20this%20be%20considered%20a%20%3CSTRONG%3Edefective%20OpenSDA%20unit%3C%2FSTRONG%3E%2C%20and%20is%20%3CSTRONG%3Eboard%20replacement%20(RMA)%3C%2FSTRONG%3E%20the%20recommended%20action%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIs%20the%20%3CSTRONG%3Eon-board%20OpenSDA%20officially%20supported%20for%20debugging%3C%2FSTRONG%3E%20on%20this%20board%2C%20or%20is%20an%20%3CSTRONG%3Eexternal%20debugger%20(PEMicro%20%2F%20Lauterbach%20%2F%20J-Link)%3C%2FSTRONG%3E%20required%3F%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAny%20guidance%20or%20official%20confirmation%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJesus%20ASCENCIO%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291166%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K396-BGA-DC1%20OpenSDA%20only%20enumerates%20as%20CDC%20Serial%20Port%2C%20cannot%20debug%20with%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291166%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258634%22%20target%3D%22_blank%22%3E%40Jesusear18%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIs%20there%20an%26nbsp%3Bofficial%20procedure%20to%20recover%20or%20reflash%20the%20OpenSDA%20firmware%26nbsp%3Bon%20the%20S32K396-BGA-DC1%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EHere%20you%20have%20some%20information%20related%20to%20the%20K20%20version.%20There%20is%20not%20much%20difference%20with%20the%20K65%20version.%20I%20believe%20K65%20doesn't%20support%20drag%26amp%3Bdrop%20firmware%20updated%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FKinetis-Microcontrollers%2FOpenSDAv2%2Fta-p%2F1121569%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FKinetis-Microcontrollers%2FOpenSDAv2%2Fta-p%2F1121569.%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2FOPENSDA%23TWR-K65F180M%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EOpenSDA%20Serial%20and%20Debug%20Adapter%20%7C%20NXP%20Semiconductors%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EDo%20you%20have%20a%20Cyclon%2FMultilink%20programmer%20that%20you%20can%20use%20to%20re-flash%20it%3F%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EIf%20not%2C%20then%20you%20won't%20be%20able%20to%20re-flash%20it%20and%20it%20would%20be%20better%20to%20use%20the%20FX%20directly%20on%20the%20K3.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20understand%20you%20have%20confirmed%20software%2C%20jumpers%20and%20connections.%20I%20assume%20you%20have%20followed%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-s32k396-bga-dc1-evaluation-board%3AGS-S32K396-BGA-DC1%3Fsection%3Dout-of-the-box%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EGetting%20Started%20With%20S32K396-BGA-DC1%20Evaluation%20Board%3C%2FA%3E%2C%20correct%3F%20Please%20confirm%20if%20the%20board%20is%20correctly%20supplied%20with%2012V%2C%20and%20the%20jumper%20is%20set%20correctly%20for%20this%20input%20(J3%201-2).%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20your%20installation%20details%20for%20S32DS%3F%20Specifically%2C%20S32K3xx%20development%20package%20must%20be%20installed%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_0-1767996284741.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_0-1767996284741.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372368i619294E6B02FD061%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_0-1767996284741.png%22%20alt%3D%22Julin_AragnM_0-1767996284741.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIf%20not%2C%20should%20this%20be%20considered%20a%26nbsp%3Bdefective%20OpenSDA%20unit%2C%20and%20is%26nbsp%3Bboard%20replacement%20(RMA)%26nbsp%3Bthe%20recommended%20action%3F%26nbsp%3BIs%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon-board%20OpenSDA%20officially%20supported%20for%20debugging%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon%20this%20board%2C%20or%20is%20an%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eexternal%20debugger%20(PEMicro%20%2F%20Lauterbach%20%2F%20J-Link)%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erequired%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20the%20S32K396%26nbsp%3B%3CSTRONG%3Ecan%3C%2FSTRONG%3E%20be%20debugged%20through%20the%20OpenSDA%20port.%20To%20rule%20out%20other%20root%20causes%2C%20could%20you%20try%20using%20an%20external%20debugger%20on%20the%20MCU%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20connecting%20to%20USB%20Header%20J15%2C%20is%20the%20LED%20D30%20(green)%20ON%3F%20Is%20the%20debugger%20U34%20(K65)%20physically%20on%20the%20board%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E