unsecuring flash memory

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

unsecuring flash memory

ソリューションへジャンプ
1,257件の閲覧回数
bobmke
Contributor II

Programming a KE06 part with FRDM board. The FRDM seems to secure flash memory which I use in my application to store config data. How can I unsecure it without all the backdoor password stuff or prevent the FRDM board from securing it?

0 件の賞賛
返信
1 解決策
1,131件の閲覧回数
bobmke
Contributor II

The link file is already set up to located the config bytes at address 0x0400.

What I was trying to figure out was how to add the code to my software.

I finally figured it out.

Here's what I had to add:

unsigned int flashProtectionField[] __attribute__ ((section(".cfmconfig"))) = {

    0x01020304,

    0x05060708,

    0xffffffff,

    0xffbeffff

};

the first two lines can be anything as they are the passkey code values.

The last line is the most critical as it sets the protection level for flash memory.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,131件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

To provide the fastest possible support I want to point you to a

similar question which has been answered on our NXP community.

Please refer to https://mcuoneclipse.com/2012/10/26/unsecuring-the-kl25z-freedom-board/

to view the details.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,132件の閲覧回数
bobmke
Contributor II

The link file is already set up to located the config bytes at address 0x0400.

What I was trying to figure out was how to add the code to my software.

I finally figured it out.

Here's what I had to add:

unsigned int flashProtectionField[] __attribute__ ((section(".cfmconfig"))) = {

    0x01020304,

    0x05060708,

    0xffffffff,

    0xffbeffff

};

the first two lines can be anything as they are the passkey code values.

The last line is the most critical as it sets the protection level for flash memory.

0 件の賞賛
返信