S32K312 Mini-EVB - Unable to enter debug mode, GDB Server connection failure

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

S32K312 Mini-EVB - Unable to enter debug mode, GDB Server connection failure

534 Views
autouser
Junior Contributor I

Problem Description:

The S32K312 Mini-EVB was previously debugging correctly, but now it fails to enter debug mode. The GDB Server is
unable to establish a connection to the target processor.

Error Message:
"Launching PortSciNet Debug_FLASH has encountered a problem - Error in services launch sequence"

"The GDB Server was not able to establish a connection to the target processor. Please check your connections and
power, verify that the launch configuration settings including the Debug Configuration are accurate."

---
Troubleshooting Steps Already Attempted:

1. Checked PEmicro Connection Assistant:
- Board is detected: Multilink Universal Rev A on USB1
- Selected "Auto" connection speed
- Enabled "Delay after Reset and before communicating to target"
- Build completes successfully with 0 errors, 0 warnings

2. Attempted Firmware Update using Universal Multilink Firmware Update Utility (v9.90.00.00):
- Hardware Type: Multilink Universal - Low cost Debug Interface
- Device: Multilink Universal Rev C (PEM647663) (ARM Configuration)
- Architecture: ARM
- Firmware File: usbmlfsufarmens.1152 (Automatic selection)
- Result: Last Result = Success (Firmware update completed successfully)

3. Used PEmicro JTAG/ARM Recovery Utility (within S32DS):
- Detected interface hardware with old firmware:
- Required Firmware: 200.240
- Original Firmware: 7.95
- Update Firmware: 9.10
- Existing INCT Firmware "option" block...
- Result: Flash Erase Failed, Result > 5000: Firmware update failed. Retry?

4. Used P&E Kinetis Recovery Utility (v0.02):
- Interface Libraries Version: 1.06.00.00
- Detected: USB1: Multilink Universal Rev C (PEM647663)
- Communication: SWD
- Cable Version: 341
- Status: "Continuously attempting to halt processor. Please try power cycling your board until this operation is
successful"
- Power cycling the board did not resolve the issue

---
Observations:

- The debugger hardware (Multilink Universal) is detected by the PC
- Build process completes without errors
- Firmware update via P&E Utility shows "Success" but the recovery utility shows firmware mismatch (Required:
200.240 vs Original: 7.95)
- The processor cannot be halted even after multiple power cycles
- The board was working correctly before this issue started

---
Questions:

1. Why is the Kinetis Recovery Utility unable to halt the processor despite successful firmware updates?
2. Is there a specific sequence to recover the S32K312 MCU when it's in this state?
3. Could there be a firmware version conflict between the Multilink debugger and S32K312 target?
4. Are there any additional recovery procedures or tools recommended for this situation?

0 Kudos
Reply
1 Reply

423 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2349359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%20Mini-EVB%20-%20Unable%20to%20enter%20debug%20mode%2C%20GDB%20Server%20connection%20failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2349359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EProblem%20Description%3A%3C%2FP%3E%3CP%3EThe%20S32K312%20Mini-EVB%20was%20previously%20debugging%20correctly%2C%20but%20now%20it%20fails%20to%20enter%20debug%20mode.%20The%20GDB%20Server%20is%3CBR%20%2F%3Eunable%20to%20establish%20a%20connection%20to%20the%20target%20processor.%3C%2FP%3E%3CP%3EError%20Message%3A%3CBR%20%2F%3E%22Launching%20PortSciNet%20Debug_FLASH%20has%20encountered%20a%20problem%20-%20Error%20in%20services%20launch%20sequence%22%3C%2FP%3E%3CP%3E%22The%20GDB%20Server%20was%20not%20able%20to%20establish%20a%20connection%20to%20the%20target%20processor.%20Please%20check%20your%20connections%20and%3CBR%20%2F%3Epower%2C%20verify%20that%20the%20launch%20configuration%20settings%20including%20the%20Debug%20Configuration%20are%20accurate.%22%3C%2FP%3E%3CP%3E---%3CBR%20%2F%3ETroubleshooting%20Steps%20Already%20Attempted%3A%3C%2FP%3E%3CP%3E1.%20Checked%20PEmicro%20Connection%20Assistant%3A%3CBR%20%2F%3E-%20Board%20is%20detected%3A%20Multilink%20Universal%20Rev%20A%20on%20USB1%3CBR%20%2F%3E-%20Selected%20%22Auto%22%20connection%20speed%3CBR%20%2F%3E-%20Enabled%20%22Delay%20after%20Reset%20and%20before%20communicating%20to%20target%22%3CBR%20%2F%3E-%20Build%20completes%20successfully%20with%200%20errors%2C%200%20warnings%3C%2FP%3E%3CP%3E2.%20Attempted%20Firmware%20Update%20using%20Universal%20Multilink%20Firmware%20Update%20Utility%20(v9.90.00.00)%3A%3CBR%20%2F%3E-%20Hardware%20Type%3A%20Multilink%20Universal%20-%20Low%20cost%20Debug%20Interface%3CBR%20%2F%3E-%20Device%3A%20Multilink%20Universal%20Rev%20C%20(PEM647663)%20(ARM%20Configuration)%3CBR%20%2F%3E-%20Architecture%3A%20ARM%3CBR%20%2F%3E-%20Firmware%20File%3A%20usbmlfsufarmens.1152%20(Automatic%20selection)%3CBR%20%2F%3E-%20Result%3A%20Last%20Result%20%3D%20Success%20(Firmware%20update%20completed%20successfully)%3C%2FP%3E%3CP%3E3.%20Used%20PEmicro%20JTAG%2FARM%20Recovery%20Utility%20(within%20S32DS)%3A%3CBR%20%2F%3E-%20Detected%20interface%20hardware%20with%20old%20firmware%3A%3CBR%20%2F%3E-%20Required%20Firmware%3A%20200.240%3CBR%20%2F%3E-%20Original%20Firmware%3A%207.95%3CBR%20%2F%3E-%20Update%20Firmware%3A%209.10%3CBR%20%2F%3E-%20Existing%20INCT%20Firmware%20%22option%22%20block...%3CBR%20%2F%3E-%20Result%3A%20Flash%20Erase%20Failed%2C%20Result%20%26gt%3B%205000%3A%20Firmware%20update%20failed.%20Retry%3F%3C%2FP%3E%3CP%3E4.%20Used%20P%26amp%3BE%20Kinetis%20Recovery%20Utility%20(v0.02)%3A%3CBR%20%2F%3E-%20Interface%20Libraries%20Version%3A%201.06.00.00%3CBR%20%2F%3E-%20Detected%3A%20USB1%3A%20Multilink%20Universal%20Rev%20C%20(PEM647663)%3CBR%20%2F%3E-%20Communication%3A%20SWD%3CBR%20%2F%3E-%20Cable%20Version%3A%20341%3CBR%20%2F%3E-%20Status%3A%20%22Continuously%20attempting%20to%20halt%20processor.%20Please%20try%20power%20cycling%20your%20board%20until%20this%20operation%20is%3CBR%20%2F%3Esuccessful%22%3CBR%20%2F%3E-%20Power%20cycling%20the%20board%20did%20not%20resolve%20the%20issue%3C%2FP%3E%3CP%3E---%3CBR%20%2F%3EObservations%3A%3C%2FP%3E%3CP%3E-%20The%20debugger%20hardware%20(Multilink%20Universal)%20is%20detected%20by%20the%20PC%3CBR%20%2F%3E-%20Build%20process%20completes%20without%20errors%3CBR%20%2F%3E-%20Firmware%20update%20via%20P%26amp%3BE%20Utility%20shows%20%22Success%22%20but%20the%20recovery%20utility%20shows%20firmware%20mismatch%20(Required%3A%3CBR%20%2F%3E200.240%20vs%20Original%3A%207.95)%3CBR%20%2F%3E-%20The%20processor%20cannot%20be%20halted%20even%20after%20multiple%20power%20cycles%3CBR%20%2F%3E-%20The%20board%20was%20working%20correctly%20before%20this%20issue%20started%3C%2FP%3E%3CP%3E---%3CBR%20%2F%3EQuestions%3A%3C%2FP%3E%3CP%3E1.%20Why%20is%20the%20Kinetis%20Recovery%20Utility%20unable%20to%20halt%20the%20processor%20despite%20successful%20firmware%20updates%3F%3CBR%20%2F%3E2.%20Is%20there%20a%20specific%20sequence%20to%20recover%20the%20S32K312%20MCU%20when%20it's%20in%20this%20state%3F%3CBR%20%2F%3E3.%20Could%20there%20be%20a%20firmware%20version%20conflict%20between%20the%20Multilink%20debugger%20and%20S32K312%20target%3F%3CBR%20%2F%3E4.%20Are%20there%20any%20additional%20recovery%20procedures%20or%20tools%20recommended%20for%20this%20situation%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2350595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K312%20Mini-EVB%20-%20Unable%20to%20enter%20debug%20mode%2C%20GDB%20Server%20connection%20failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2350595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20answered%20here%2C%20I%20believe%20it%20is%20the%20same%20topic%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312MINI-EVB-Unable-to-enter-debug-mode-Cannot-halt-processor%2Fm-p%2F2349362%2Fhighlight%2Ffalse%23M57862%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312MINI-EVB-Unable-to-enter-debug-mode-Cannot-halt-processor%2Fm-p%2F2349362%2Fhighlight%2Ffalse%23M57862%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E