I am using the P&E Cyclone FX programmer to unlock an S32K311 MCU that may be an abnormal part. When executing the script, an error is reported. Sometimes the script executes successfully, but even in those cases, the programmer still shows "Enable Secure" when connecting. Could you please help me investigate the possible cause? The error information is as follows:
Authenticating S32K3xx in Password Mode.
Connecting to debug hardware ... ok.
Requesting Debug Module Power On via SWD ... ok.
Reading SDA AP ID Register ... ok.
Reading/Writing SDA AP KEYRESP0 ... ok.
Reading/Writing SDA AP KEYRESP1 ... ok.
Reading/Writing SDA AP KEYRESP2 ... ok.
Reading/Writing SDA AP KEYRESP3 ... ok.
Writing SDA AP AUTHCTL.HSEAUTHREQ ... ok.
Writing SDA AP DBGENCTRL.GDBGEN and DBGENCTRL.CDBGEN ... ok.
Reading SDA AP ID Register ... ERROR !!!!!!!!!!!!!!!!!!!!! . ( 0xf0e0d0c )