How can I disconnect debugger?

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

How can I disconnect debugger?

676 Views
davenadler
Senior Contributor II

Problem:

I need to disconnect the debugger and leave the application running.
Simply yanking out the J-Link's USB cable usually crashes my board.
There is a Disconnect button in the debug tool-bar, but it is grayed out.

How can I just disconnect (gracefully) the debugger (and leave the application running happily)? And hopefully then I can power down the J-Link?

Context:

  • large FreeRTOS application running on imxRT1024.
  • debugger is working absolutely fine
  • MCUXpresso IDE v24.9 [Build 25] [2024-09-26] on Windows 10
  • segger J-Link software version V9.22 (just updated to most recent version)
Labels (1)
0 Kudos
Reply
1 Reply

635 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @davenadler ,

Thanks for your interest in NXP MIMXRT series!

Did your application use semihost? Or did the software reconfigure any SWD-related pins? It's also possible that your hardware caused power supply issues after disconnecting from the debugger. Please help to check this. Alternatively, you can try using serial download mode to directly download the image to the flash memory, then check if it runs correctly.

Because if your debugger correctly programmed the binary file into the flash, it's unlikely that disconnecting from the debugger would cause a crash. 

Best regards,
Gavin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20can%20I%20disconnect%20debugger%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3EProblem%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20need%20to%20disconnect%20the%20debugger%20and%20leave%20the%20application%20running.%3CBR%20%2F%3ESimply%20yanking%20out%20the%20J-Link's%20USB%20cable%20usually%20crashes%20my%20board.%3CBR%20%2F%3EThere%20is%20a%20%3CEM%3E%3CSTRONG%3EDisconnect%3C%2FSTRONG%3E%3C%2FEM%3E%26nbsp%3Bbutton%20in%20the%20debug%20tool-bar%2C%20but%20it%20is%20grayed%20out.%3C%2FP%3E%3CP%3EHow%20can%20I%20just%20disconnect%20(gracefully)%20the%20debugger%20(and%20leave%20the%20application%20running%20happily)%3F%20And%20hopefully%20then%20I%20can%20power%20down%20the%20J-Link%3F%3C%2FP%3E%3CP%3E%3CSTRONG%3EContext%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3Elarge%20FreeRTOS%20application%20running%20on%20imxRT1024.%3C%2FLI%3E%3CLI%3Edebugger%20is%20working%20absolutely%20fine%3C%2FLI%3E%3CLI%3EMCUXpresso%20IDE%20v24.9%20%5BBuild%2025%5D%20%5B2024-09-26%5D%20on%20Windows%2010%3C%2FLI%3E%3CLI%3Esegger%20J-Link%20software%20version%20V9.22%20(just%20updated%20to%20most%20recent%20version)%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2326564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20102x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20can%20I%20disconnect%20debugger%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326756%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%2F132425%22%20target%3D%22_blank%22%3E%40davenadler%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3EDid%20your%20application%20use%20semihost%3F%20Or%20did%20the%20software%20reconfigure%20any%20SWD-related%20pins%3F%20It's%20also%20possible%20that%20your%20hardware%20caused%20power%20supply%20issues%20after%20disconnecting%20from%20the%20debugger.%20Please%20help%20to%20check%20this.%20Alternatively%2C%20you%20can%20try%20using%20serial%20download%20mode%20to%20directly%20download%20the%20image%20to%20the%20flash%20memory%2C%20then%20check%20if%20it%20runs%20correctly.%3C%2FP%3E%0A%3CP%3EBecause%20if%20your%20debugger%20correctly%20programmed%20the%20binary%20file%20into%20the%20flash%2C%20it's%20unlikely%20that%20disconnecting%20from%20the%20debugger%20would%20cause%20a%20crash.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E