S32K358 SECURE DEBUG

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K358 SECURE DEBUG

跳至解决方案
7,603 次查看
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??

标记 (3)
0 项奖励
回复
1 解答
7,222 次查看
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 项奖励
回复
8 回复数
7,470 次查看
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 项奖励
回复
7,420 次查看
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 项奖励
回复
7,362 次查看
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 项奖励
回复
7,262 次查看
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 项奖励
回复
7,223 次查看
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 项奖励
回复
7,293 次查看
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 项奖励
回复
7,551 次查看
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 项奖励
回复
7,525 次查看
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

 

标记 (1)
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2008319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K358%E5%AE%89%E5%85%A8%E8%B0%83%E8%AF%95%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%3E%E6%88%91%E4%BB%AC%E4%BD%BF%E7%94%A8%20NXP%20S32K358%20%E5%BE%AE%E6%8E%A7%E5%88%B6%E5%99%A8%E8%AE%BE%E8%AE%A1%E4%BA%86%E4%B8%80%E4%B8%AA%E5%AE%9A%E5%88%B6%E6%9D%BF%E3%80%82%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20S32%20Design%20Studio%20(S32DS)%20IDE%20%E4%B8%8A%E4%BC%A0%E7%AC%AC%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81%E6%97%B6%EF%BC%8C%E6%88%91%E4%BB%AC%E9%81%87%E5%88%B0%E4%BB%A5%E4%B8%8B%E9%94%99%E8%AF%AF%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%20%E2%80%9C%E6%AD%A4%E8%AE%BE%E5%A4%87%E5%8F%AF%E8%83%BD%E5%90%AF%E7%94%A8%E4%BA%86%E5%AE%89%E5%85%A8%E8%B0%83%E8%AF%95%E3%80%82%E5%A6%82%E6%9E%9C%E6%98%AF%E8%BF%99%E6%A0%B7%EF%BC%8C%E8%AF%B7%E5%9C%A8%E5%B0%9D%E8%AF%95%E5%86%8D%E6%AC%A1%E8%BF%9E%E6%8E%A5%E4%B9%8B%E5%89%8D%E9%80%9A%E8%BF%87%20PEmicro%20%E8%84%9A%E6%9C%AC%E8%A7%A3%E9%94%81%E8%AE%BE%E5%A4%87%E3%80%82%E2%80%9D%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E6%80%80%E7%96%91%20MCU%20%E7%9A%84%E8%B0%83%E8%AF%95%E6%8E%A5%E5%8F%A3%E8%A2%AB%E9%94%81%E5%AE%9A%EF%BC%8C%E5%AF%BC%E8%87%B4%E6%88%91%E4%BB%AC%E6%97%A0%E6%B3%95%E4%B8%8A%E4%BC%A0%E4%BB%A3%E7%A0%81%E6%88%96%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%E3%80%82%E6%82%A8%E8%83%BD%E5%90%A6%E6%8F%90%E4%BE%9B%E8%A7%A3%E9%94%81%E8%B0%83%E8%AF%95%E7%95%8C%E9%9D%A2%E7%9A%84%E5%88%86%E6%AD%A5%E6%8C%87%E5%8D%97%EF%BC%9F%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K358%E5%AE%89%E5%85%A8%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2013020%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%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%20%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%94%AF%E6%8C%81%E3%80%82%E6%88%91%E4%BB%AC%E5%B7%B2%E7%BB%8F%E5%8F%91%E7%8E%B0%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82FS26%20%E7%9A%84%20RST_B%20%E5%BC%95%E8%84%9A%E5%A4%84%E4%BA%8E%E4%BD%8E%E7%94%B5%E5%B9%B3%EF%BC%8C%E5%AE%83%E6%AD%A3%E5%9C%A8%E9%87%8D%E7%BD%AE%20MCU%EF%BC%8C%E4%BB%8E%E8%80%8C%E9%99%90%E5%88%B6%E6%88%91%E4%BB%AC%E8%B0%83%E8%AF%95%20MCU%E3%80%82%E5%B0%86%20RST_B%20%E4%B8%8E%20MCU%20%E5%BC%95%E8%84%9A%E9%9A%94%E7%A6%BB%E5%90%8E%EF%BC%8C%E6%88%91%E4%BB%AC%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E8%B0%83%E8%AF%95%20MCU%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010901%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K358%E5%AE%89%E5%85%A8%E8%B0%83%E8%AF%95%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%3E%E4%BD%A0%E5%A5%BD%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%20%3CSPAN%3E%EF%BC%8C%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%3EFS26%20%E7%94%B5%E6%BA%90%E8%BD%A8%E5%B7%A5%E4%BD%9C%E6%AD%A3%E5%B8%B8%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%E6%88%91%E4%BB%AC%E6%A3%80%E6%9F%A5%E4%BA%86FS26%E5%92%8CMCU%E7%9A%84%E7%89%A9%E7%90%86%E5%BC%95%E8%84%9A%E7%9A%84%E7%94%B5%E5%8E%8B%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%E6%88%91%E4%BB%AC%E5%B7%B2%E7%BB%8F%E7%94%B3%E8%AF%B7%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26gt%3B%20VDD_HV_A%20%E5%92%8C%20VDD_HV_B%20-%20(%2B5V)%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%3E%26gt%3B%E6%A0%B8%E5%BF%83%E7%94%B5%E5%8E%8B%20-%20%EF%BC%88%2B1.5V%EF%BC%89%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%3E%26gt%3B%E5%8F%82%E8%80%83%E7%94%B5%E5%8E%8B-%EF%BC%88%2B5V%EF%BC%89%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%E6%88%91%E4%BB%AC%E8%BF%98%E6%A3%80%E6%9F%A5%E4%BA%86V11%E5%92%8CV25%EF%BC%8C%E5%AE%83%E4%BB%AC%E4%B9%9F%E9%83%BD%E6%AD%A3%E5%B8%B8%E3%80%82%E6%88%91%E4%BB%AC%E4%B9%8B%E5%89%8D%E7%94%A8%E8%BF%87%E5%90%8C%E6%A0%B7%E7%9A%84%E7%94%B5%E8%B7%AF%E6%9D%BF%EF%BC%8C%E4%B9%8B%E5%89%8D%E7%94%A8%E8%BF%87MCU%EF%BC%88P32K358HVS%200P14E%20CTAB2335A%EF%BC%89%EF%BC%8C%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%E5%BD%93%E5%89%8D%20MCU%20%E9%83%A8%E4%BB%B6%E7%BC%96%E5%8F%B7%E4%B8%BA%20-%20S32K358GHMPCS%201P14E%20CTAG2428B%3C%2FSPAN%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K358%E5%AE%89%E5%85%A8%E8%B0%83%E8%AF%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%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%20%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E4%BB%8D%E7%84%B6%E6%97%A0%E6%B3%95%E8%B0%83%E8%AF%95%20MCU%E3%80%82%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E7%9A%84%E6%94%AF%E6%8C%81%E7%A5%A8%E5%B7%B2%E5%85%B3%E9%97%AD%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%8C%3CSPAN%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%8F%8D%E9%A6%88%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBR%EF%BC%8C%E7%BA%B3%E4%BC%8A%E5%A7%86%3C%2FP%3E%3C%2FLINGO-BODY%3E