when i use JLINK tool connet to NXP S32K146 chip with JTAG port,it reported an error in the below.
could you give me some advice or resolution?
Have you partitioned the MCU for CSEc?
Because if CSEc keys are allocated, Mass Erase is not possible.
Please refer to AN12130 Production Flash Programming Best Practices for S32K1xx MCUs
184.108.40.206 Mass erase and CSEc considerations
Thanks for you reply.
Yes.I had partitioned the MCU for CSEC. According to AN12130 Production Flash Programming Best Practices for S32K1xx MCUs,When CSEC is enable,user must be do something otherwise the mass erase command will not work. i don't know how to run the flow below in Jlink Commander tool ,duo to i can not connect to mcu now, cause i have this problem. How can i finish the complete flow below to return to the state of chip that can be debugged ?
I'm sorry for the delayed response.
Based on the description of this case, I'm afraid the MCU cannot be unlocked anymore.
When the MCU is secure, it can be unlocked by the debugger through Mass Erase or temporarily by the application using Backdoor Key.
Mass Erase is not an option because CSEc keys are allocated.
And if I understand, the application loaded in the MCU does not use the Backdoor key feature and it can't erase the CSEc keys to enable Mass Erase.
This should be taken into consideration when CSEc is used.