S32K146 Unsecuring Problem

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

S32K146 Unsecuring Problem

跳至解决方案
1,486 次查看
wane
Contributor I
Hello.
 
Can anyone help for unsecure my board?
I had erased all flash blocks using SDK driver function FLASH_DRV_EraseAllBlock().
After this job, I can't access to MCU resources using JTAG connection.
Hence I tried to mass erase using MDM-AP as follows but I didn't get success.
 
1) MDM-AP Status Read after power on reset
 Two values of 0x34 and 0x36 are repeated. It seems the Flash Memory Ready bit is changing.
2) MDM-AP Status Read after mass erase request
 Two values of 0x35 and 0x37 are repeated. It also seems the Flash Memory Ready bit is changing.
3) Mass Erase Step
- WHILE (Data.Long(EDBG:0x40000100)&0x02)!=0x02 {} // wait flash ready
- Data.Set EDBG:0x40000104 %long 0x1               // mass erase
- WHILE (Data.Long(EDBG:0x40000104)&0x01)==0x01 {} // wait mass erade done
- Data.Set EDBG:0x40000104 %long 0x18              // system reset
4) Test of Mass Erase on normal unsecured board
 I have checked upper 3) Mass Erase Step works well.
 
Best Regards,
J.W.Park
标记 (1)
0 项奖励
回复
1 解答
1,452 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @wane,

The FLASH_DRV_EraseAllBlock() always puts the MCU in the secure state. The flash operation could have failed and it could left the flash in an undefined state with ECC errors.

In case the FlexNVM was partitioned with CSEC keys allocated, the Mass erase will be blocked by the engine regardless of the MDM-AP Status[Flash ready].

Have you tried erasing the MCU while it is in reset? After power-on reset keep PTA5 (reset_b) connected to the ground externaly? If this does not resolve it, I'm afraid there is nothing we can do.

 

Regards,

Daniel

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,437 次查看
wane
Contributor I

Hi Daniel,

 

Thanks for your information.

I'll try again with your suggestion.

 

Regards,

0 项奖励
回复
1,453 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @wane,

The FLASH_DRV_EraseAllBlock() always puts the MCU in the secure state. The flash operation could have failed and it could left the flash in an undefined state with ECC errors.

In case the FlexNVM was partitioned with CSEC keys allocated, the Mass erase will be blocked by the engine regardless of the MDM-AP Status[Flash ready].

Have you tried erasing the MCU while it is in reset? After power-on reset keep PTA5 (reset_b) connected to the ground externaly? If this does not resolve it, I'm afraid there is nothing we can do.

 

Regards,

Daniel

 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2026120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K146%E4%B8%8D%E5%AE%89%E5%85%A8%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%E6%82%A8%E5%A5%BD%E3%80%82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E6%9C%89%E4%BA%BA%E8%83%BD%E5%B8%AE%E6%88%91%E8%A7%A3%E9%99%A4%E6%88%91%E7%9A%84%E4%B8%BB%E6%9D%BF%E5%AE%89%E5%85%A8%E5%90%97%EF%BC%9F%3C%2FDIV%3E%3CDIV%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E4%BD%BF%E7%94%A8%20SDK%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E5%87%BD%E6%95%B0%20FLASH_DRV_EraseAllBlock()%20%E6%93%A6%E9%99%A4%E4%BA%86%E6%89%80%E6%9C%89%E9%97%AA%E5%AD%98%E5%9D%97%E3%80%82%3C%2FDIV%3E%3CDIV%3E%E5%AE%8C%E6%88%90%E8%BF%99%E9%A1%B9%E5%B7%A5%E4%BD%9C%E5%90%8E%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20JTAG%20%E8%BF%9E%E6%8E%A5%E8%AE%BF%E9%97%AE%20MCU%20%E8%B5%84%E6%BA%90%E3%80%82%3C%2FDIV%3E%3CDIV%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%E6%88%91%E5%B0%9D%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%20(Data.Long(EDBG%3A0x40000100)%26amp%3B0x02)!%3D0x02%20%7B%7D%20%2F%2F%E7%AD%89%E5%BE%85%E9%97%AA%E5%AD%98%E5%87%86%E5%A4%87%E5%B0%B1%E7%BB%AA%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20Data.Set%20EDBG%3A0x40000104%20%25long%200x1%20%2F%2F%E6%89%B9%E9%87%8F%E6%93%A6%E9%99%A4%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20WHILE%20(Data.Long(EDBG%3A0x40000104)%26amp%3B0x01)%3D%3D0x01%20%7B%7D%20%2F%2F%E7%AD%89%E5%BE%85%E6%89%B9%E9%87%8F%E6%93%A6%E9%99%A4%E5%AE%8C%E6%88%90%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20Data.Set%20EDBG%3A0x40000104%20%25long%200x18%20%2F%2F%E7%B3%BB%E7%BB%9F%E9%87%8D%E7%BD%AE%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E4%EF%BC%89%E5%9C%A8%E6%99%AE%E9%80%9A%E9%9D%9E%E5%AE%89%E5%85%A8%E6%9D%BF%E4%B8%8A%E8%BF%9B%E8%A1%8C%E6%89%B9%E9%87%8F%E6%93%A6%E9%99%A4%E6%B5%8B%E8%AF%95%3C%2FDIV%3E%3CDIV%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E6%A3%80%E6%9F%A5%E8%BF%87%E4%B8%8A%E9%9D%A2%E7%9A%84%203)%20%E6%89%B9%E9%87%8F%E6%93%A6%E9%99%A4%E6%AD%A5%E9%AA%A4%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FDIV%3E%3CDIV%3EJWPark%3C%2FDIV%3E%3C%2FLINGO-BODY%3E