S32K358 SECURE DEBUG

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

S32K358 SECURE DEBUG

Jump to solution
7,236 Views
abunayeeem
Contributor II

We have designed a custom board using the NXP S32K358 microcontroller. While trying to upload the first code using the S32 Design Studio (S32DS) IDE, we are encountering the following error:

"Secure Debug might be enabled on this device. If so, please unlock the device via PEmicro scripts before attempting to connect again."

We suspect that the MCU’s debug interface is locked, preventing us from uploading code or debugging. Could you please provide a step-by-step guide to unlock the debug interface??

0 Kudos
Reply
1 Solution
6,855 Views
abunayeeem
Contributor II

Hi @VaneB ,

Thank you for your support. We have found the issue. RST_B pin of FS26 was low and it was resetting the MCU which restricted us from debugging the MCU. After isolating the the RST_B from MCU pin, we are now able to debug the MCU.

View solution in original post

0 Kudos
Reply
8 Replies
7,103 Views
abunayeeem
Contributor II

Hi @VaneB ,

We are still unable to debug the MCU.
Our support ticket is closed without any resolution and your feedback is appreciated.

BR, Nayeem

0 Kudos
Reply
7,053 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @abunayeeem 

I have reviewed your previous cases and noticed that you are using an FS26. As mentioned earlier, this issue is typically related to communication problems. It is possible that the SBC is not powering correctly, which could prevent the MCU from being programmed.

Please review the following thread, which contains information that could be useful.

FS26

0 Kudos
Reply
6,995 Views
abunayeeem
Contributor II

Hi @VaneB ,
The FS26 power rails are working fine.
We have checked the voltages of the physical pins of both FS26 and MCU.

We have applied
> VDD_HV_A & VDD_HV_B - (+5V)
> Vcore - (+1.5V)
>Vref - (+5V)
We have also checked V11 and V25 which are also fine. We have used the same board with previous MCUs (P32K358HVS 0P14E CTAB2335A ) which was working just fine.

Current MCU part number is - S32K358GHMPCS 1P14E CTAG2428B

0 Kudos
Reply
6,895 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @abunayeeem 

I have consulted with the internal team regarding your situation. We need your assistance to verify a few details to determine whether the issue is related to the MCU or the software.

Firstly, if possible, could you replace the MCU with the one that previously showed no issues? Does exhibit the same problem, or is it functioning properly?

Also, the part number you initially used has custom firmware for VW. Were the PEMicro scripts you used also customized?

Lastly, did your project include any modifications to the lifecycle?"

0 Kudos
Reply
6,856 Views
abunayeeem
Contributor II

Hi @VaneB ,

Thank you for your support. We have found the issue. RST_B pin of FS26 was low and it was resetting the MCU which restricted us from debugging the MCU. After isolating the the RST_B from MCU pin, we are now able to debug the MCU.

0 Kudos
Reply
6,926 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @abunayeeem 

I am checking the situation with the internal team and will let you know the response as soon as I have an update.

Thank you for your patience.

0 Kudos
Reply
7,184 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @abunayeeem 

When programming the MCU for the first time, secure debug should be disabled, and this error message is usually related to communication issues. Please verify that the chip is powered correctly and that you are using the latest version of the PEMicro plugin. To update, go to Help > Install New Software, then select the PEMicro page.

VaneB_2-1733509225644.png

Additionally, could you provide information about your programming algorithm?

VaneB_3-1733509330416.png

 

BR, VaneB

0 Kudos
Reply
7,158 Views
abunayeeem
Contributor II

Hi @VaneB ,
We have updated the PEmicro plugin and the chip is powered correctly.

Please find attached the flash algorithm information.

BR, Nayeem


abunayeeem_0-1733577223631.jpeg

 

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2008319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2008319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EWe%20have%20designed%20a%20custom%20board%20using%20the%20NXP%20S32K358%20microcontroller.%20While%20trying%20to%20upload%20the%20first%20code%20using%20the%20S32%20Design%20Studio%20(S32DS)%20IDE%2C%20we%20are%20encountering%20the%20following%20error%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%22Secure%20Debug%20might%20be%20enabled%20on%20this%20device.%20If%20so%2C%20please%20unlock%20the%20device%20via%20PEmicro%20scripts%20before%20attempting%20to%20connect%20again.%22%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20suspect%20that%20the%20MCU%E2%80%99s%20debug%20interface%20is%20locked%2C%20preventing%20us%20from%20uploading%20code%20or%20debugging.%20Could%20you%20please%20provide%20a%20step-by-step%20guide%20to%20unlock%20the%20debug%20interface%3F%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2013020%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2013020%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%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20support.%20We%20have%20found%20the%20issue.%20RST_B%20pin%20of%20FS26%20was%20low%20and%20it%20was%20resetting%20the%20MCU%20which%20restricted%20us%20from%20debugging%20the%20MCU.%20After%20isolating%20the%20the%20RST_B%20from%20MCU%20pin%2C%20we%20are%20now%20able%20to%20debug%20the%20MCU.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012211%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%2F225787%22%20target%3D%22_blank%22%3E%40abunayeeem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20consulted%20with%20the%20internal%20team%20regarding%20your%20situation.%20We%20need%20your%20assistance%20to%20verify%20a%20few%20details%20to%20determine%20whether%20the%20issue%20is%20related%20to%20the%20MCU%20or%20the%20software.%3C%2FP%3E%0A%3CP%3EFirstly%2C%20if%20possible%2C%20could%20you%20replace%20the%20MCU%20with%20the%20one%20that%20previously%20showed%20no%20issues%3F%20Does%20exhibit%20the%20same%20problem%2C%20or%20is%20it%20functioning%20properly%3F%3C%2FP%3E%0A%3CP%3EAlso%2C%20the%20part%20number%20you%20initially%20used%20has%20custom%20firmware%20for%20VW.%20Were%20the%20PEMicro%20scripts%20you%20used%20also%20customized%3F%3C%2FP%3E%0A%3CP%3ELastly%2C%20did%20your%20project%20include%20any%20modifications%20to%20the%20lifecycle%3F%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2011318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2011318%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%2F225787%22%20target%3D%22_blank%22%3E%40abunayeeem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20am%20checking%20the%20situation%20with%20the%20internal%20team%20and%20will%20let%20you%20know%20the%20response%20as%20soon%20as%20I%20have%20an%20update.%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20patience.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EThe%20FS26%20power%20rails%20are%20working%20fine.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWe%20have%20checked%20the%20voltages%20of%20the%20physical%20pins%20of%20both%20FS26%20and%20MCU.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EWe%20have%20applied%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26gt%3B%20VDD_HV_A%20%26amp%3B%20VDD_HV_B%20-%20(%2B5V)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26gt%3B%20Vcore%20-%20(%2B1.5V)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26gt%3BVref%20-%20(%2B5V)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWe%20have%20also%20checked%20V11%20and%20V25%20which%20are%20also%20fine.%20We%20have%20used%20the%20same%20board%20with%20previous%20MCUs%20(P32K358HVS%200P14E%20CTAB2335A%20)%20which%20was%20working%20just%20fine.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3ECurrent%20MCU%20part%20number%20is%20-%20S32K358GHMPCS%201P14E%20CTAG2428B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010486%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010486%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%2F225787%22%20target%3D%22_blank%22%3E%40abunayeeem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20reviewed%20your%20previous%20cases%20and%20noticed%20that%20you%20are%20using%20an%20FS26.%20As%20mentioned%20earlier%2C%20this%20issue%20is%20typically%20related%20to%20communication%20problems.%20It%20is%20possible%20that%20the%20SBC%20is%20not%20powering%20correctly%2C%20which%20could%20prevent%20the%20MCU%20from%20being%20programmed.%3C%2FP%3E%0A%3CP%3EPlease%20review%20the%20following%20thread%2C%20which%20contains%20information%20that%20could%20be%20useful.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FFS26%2Ftd-p%2F1782346%22%20target%3D%22_blank%22%3EFS26%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20are%20still%20unable%20to%20debug%20the%20MCU.%3CBR%20%2F%3EOur%20support%20ticket%20is%20closed%20without%20any%20resolution%20and%26nbsp%3B%3CSPAN%3Eyour%20feedback%20is%20appreciated.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBR%2C%20Nayeem%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2009489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2009489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWe%20have%20updated%20the%20PEmicro%20plugin%20and%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ethe%20chip%20is%20powered%20correctly.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20find%20attached%20the%20flash%20algorithm%20information.%3CBR%20%2F%3E%3CBR%20%2F%3EBR%2C%20Nayeem%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22abunayeeem_0-1733577223631.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22abunayeeem_0-1733577223631.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314660i94382B0C50E6D43C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22abunayeeem_0-1733577223631.jpeg%22%20alt%3D%22abunayeeem_0-1733577223631.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2009312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K358%20SECURE%20DEBUG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2009312%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%2F225787%22%20target%3D%22_blank%22%3E%40abunayeeem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20programming%20the%20MCU%20for%20the%20first%20time%2C%20secure%20debug%20%3CSPAN%3Eshould%20be%20disabled%3C%2FSPAN%3E%2C%20and%20this%20error%20message%20is%20usually%20related%20to%20communication%20issues.%26nbsp%3BPlease%20verify%20that%20the%20chip%20is%20powered%20correctly%20and%20that%20you%20are%20using%20the%20latest%20version%20of%20the%20PEMicro%20plugin.%26nbsp%3BTo%20update%2C%20go%20to%20Help%20%26gt%3B%20Install%20New%20Software%2C%20then%20select%20the%20PEMicro%20page.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_2-1733509225644.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_2-1733509225644.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314600iFF24A6B9FC02CA2C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_2-1733509225644.png%22%20alt%3D%22VaneB_2-1733509225644.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20could%20you%20provide%20information%20about%20your%20programming%20algorithm%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_3-1733509330416.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_3-1733509330416.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F314601i53C32455C069230E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_3-1733509330416.png%22%20alt%3D%22VaneB_3-1733509330416.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E