S32K146 Unsecuring Problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K146 Unsecuring Problem

ソリューションへジャンプ
943件の閲覧回数
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 解決策
909件の閲覧回数
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 返答(返信)
894件の閲覧回数
wane
Contributor I

Hi Daniel,

 

Thanks for your information.

I'll try again with your suggestion.

 

Regards,

0 件の賞賛
返信
910件の閲覧回数
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%20%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E8%A7%A3%E9%99%A4%E3%81%AE%E5%95%8F%E9%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E8%AA%B0%E3%81%8B%E3%81%8C%E7%A7%81%E3%81%AE%E3%83%9C%E3%83%BC%E3%83%89%E3%82%92%E5%AE%89%E5%85%A8%E3%81%A7%E3%81%AA%E3%81%84%E3%82%82%E3%81%AE%E3%81%AB%E5%8A%A9%E3%81%91%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FDIV%3E%3CDIV%3ESDK%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E6%A9%9F%E8%83%BDFLASH_DRV_EraseAllBlock%EF%BC%88)%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%82%92%E6%B6%88%E5%8E%BB%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FDIV%3E%3CDIV%3E%E3%81%93%E3%81%AE%E3%82%B8%E3%83%A7%E3%83%96%E3%81%AE%E5%BE%8C%E3%80%81JTAG%E6%8E%A5%E7%B6%9A%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6MCU%E3%83%AA%E3%82%BD%E3%83%BC%E3%82%B9%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FDIV%3E%3CDIV%3E%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%81%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%ABMDM-AP%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E5%A4%A7%E9%87%8F%E6%B6%88%E5%8E%BB%E3%82%92%E8%A9%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E6%88%90%E5%8A%9F%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E1)%E9%9B%BB%E6%BA%90%E6%8A%95%E5%85%A5%E6%99%82%E3%81%AE%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%E5%BE%8C%E3%81%AEMDM-AP%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%3C%2FDIV%3E%3CDIV%3E0x34%20%E3%81%A8%200x36%20%E3%81%AE%202%20%E3%81%A4%E3%81%AE%E5%80%A4%E3%81%8C%E7%B9%B0%E3%82%8A%E8%BF%94%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AE%E3%83%AC%E3%83%87%E3%82%A3%E3%83%93%E3%83%83%E3%83%88%E3%81%8C%E5%A4%89%E6%9B%B4%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82%3C%2FDIV%3E%3CDIV%3E2)%E5%A4%A7%E9%87%8F%E6%B6%88%E5%8E%BB%E8%A6%81%E6%B1%82%E5%BE%8C%E3%81%AEMDM-AP%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%3C%2FDIV%3E%3CDIV%3E0x35%20%E3%81%A8%200x37%20%E3%81%AE%202%20%E3%81%A4%E3%81%AE%E5%80%A4%E3%81%8C%E7%B9%B0%E3%82%8A%E8%BF%94%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%E3%81%BE%E3%81%9F%E3%80%81Flash%20Memory%20Ready%E3%83%93%E3%83%83%E3%83%88%E3%82%82%E5%A4%89%E6%9B%B4%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%80%82%3C%2FDIV%3E%3CDIV%3E3)%E4%B8%80%E6%8B%AC%E6%B6%88%E5%8E%BB%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20WHILE%20(Data.Long(EDBG%3A0x40000100)%26amp%3B0x02)!%3D0x02%20%7B%7D%20%2F%2F%20%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E6%BA%96%E5%82%99%E5%AE%8C%E4%BA%86%E3%82%92%E5%BE%85%E3%81%A4%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20Data.Set%20EDBG%3A0x40000104%20%25long%200x1%20%2F%2F%20%E4%B8%80%E6%8B%AC%E6%B6%88%E5%8E%BB%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%20%E5%A4%A7%E9%87%8F%E6%8A%B9%E6%AE%BA%E5%AE%8C%E4%BA%86%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E-%20Data.Set%20EDBG%3A0x40000104%20%25long%200x18%20%2F%2F%20%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%83%AA%E3%82%BB%E3%83%83%E3%83%88%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E4)%20%E9%80%9A%E5%B8%B8%E3%81%AE%E9%9D%9E%E5%9B%BA%E5%AE%9A%E5%9F%BA%E6%9D%BF%E3%81%A7%E3%81%AE%E5%A4%A7%E9%87%8F%E6%B6%88%E5%8E%BB%E3%81%AE%E3%83%86%E3%82%B9%E3%83%88%3C%2FDIV%3E%3CDIV%3E%E4%B8%8A%E3%81%AE3)%E4%B8%80%E6%8B%AC%E6%B6%88%E5%8E%BB%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%81%8C%E3%81%86%E3%81%BE%E3%81%8F%E6%A9%9F%E8%83%BD%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FDIV%3E%3CDIV%3EJ.W.%E3%83%91%E3%83%BC%E3%82%AF%3C%2FDIV%3E%3C%2FLINGO-BODY%3E