S32K144 is always reset ,maybe secure

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

S32K144 is always reset ,maybe secure

899 Views
zhangyu1
Contributor I

Hello,

    When I use S32K144_FOTA_Bootloader in AN12323SW, I add one line of code:

 FLASH_DRV_EraseSector(&flashSSDConfig, 0x41000, 4096*62ul);  Then it execute failed, and I cann't connect the mcu through Jlink.

   I find that the RESET pin output high level every 475us, I try to use Jlink commander to unsecure it but fail. What else can I do to unsecure it ?Does it relate to the CSEc in AN12323SW?

  Thank you.

Labels (1)
0 Kudos
1 Reply

824 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello zhangyu@itsac.cn,

You could try using the unlock kinetis command while the MCU is held in reset (reset_b pin drivel low externally) out of power-on-reset.

Unbricking S32K146 

However, if the MCU has been already partitioned for CSEc, you would need to erase the keys first to mass-erase the MCU. Which is not possible once the MCU is secure.

AN12130 Production Flash Programming Best Practices for S32K1xx MCUs

pastedImage_3.png

BR, Daniel

0 Kudos