Erase all blocks

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

Erase all blocks

3,857件の閲覧回数
814420552
Contributor III

hello

         I have three questions:

         <1>

         The following command description is conflict 

         The first picture description:secure byte is erase , MCU is security

         but the second picture description: release MCU security

         which  one is wrong?

         thanks in advance.

pastedImage_2.png

pastedImage_1.png

        <2>

         when MEEN=10, mass erase can't be erase, is it right?  but  why the follwing command can't be supported?

         pastedImage_3.png

       <3> I didn't understand when the order would be used, for example Erase all block & erase all block unsecure? when execute  the code is erased,   MCU is not working, so what is the necessity of these two commands?

0 件の賞賛
返信
7 返答(返信)

3,801件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Kui Wu,

1.

I don't see any conflict.

Erase All Block Command only releases the security in the FSEC[SEC] register.

Whereas

Erase All Block Unsecure Command programs the SEC bits in the Flash Configuration field to the unsecure state (0b10).

2.

This is the mass erase command

pastedImage_4.png

pastedImage_5.png

3.

It allows either erasing the whole memory including flash configuration field (SEC = 0b11) or erasing the whole memory and program the flash configuration field to unsecure state (SEC = 0b10).

Regards,

Daniel 

0 件の賞賛
返信

3,801件の閲覧回数
814420552
Contributor III

hello Daniel,

   Erase all blocks unsecure command is the same command with Debugger's  mass erase?

0 件の賞賛
返信

3,801件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Kui Wu,

Please take a look at AN12130 Production Flash Programming Best Practices for S32K1xx MCUs

pastedImage_1.png

BR, Daniel

0 件の賞賛
返信

3,801件の閲覧回数
814420552
Contributor III

Dear Daniel,

  So Erase all blocks unsecure command  and debugger mass erase command is the same command?  because their

  action are the same.

0 件の賞賛
返信

3,801件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Kui Wu,

The difference is that Erase All Blocks Unsecure is available internally whereas Mass Erase is available externally but they both do the same.

Regards,

Daniel

0 件の賞賛
返信

3,798件の閲覧回数
814420552
Contributor III

hello,

when  MEEN = 10, it means  mass erase will execute fail but why  Erase All Blocks Unsecure command  also will execute fail?

 

 

0 件の賞賛
返信

3,726件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

I'm sorry for the delay.

When MEEN = 0b10, Mass erase is disabled.

So yes, it will fail.

danielmartynek_0-1599562326118.png

 

Regards,

Daniel

0 件の賞賛
返信