MPC5604P code flash read protected

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

MPC5604P code flash read protected

Jump to solution
1,665 Views
Sanddy_TTL
Contributor II

 hello:

         how can i config protected code flash? can not be read code flash, it can protected my code . have example code to read code flash protected config?

0 Kudos
Reply
1 Solution
1,563 Views
Sanddy_TTL
Contributor II
0 Kudos
Reply
5 Replies
1,643 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

To protect the flash you will use Censorship feature.

A password mechanism is designed to grant the legitimate user access to the non-volatile memory.

Please refer to detailed procedure described in Reference manual: 34.7 Censorship

petervlna_0-1753354109120.png

Here is the example for Lauterbach debugger for censoring and uncensoring uC.

Best regards,
Peter

 

0 Kudos
Reply
1,631 Views
Sanddy_TTL
Contributor II
have write Shadow block code example?
*(uint32_t *) 0x00203DD8 = 0xBABADEDA;
*(uint32_t *) 0x00203DDC = 0xAABBCCDD;
*(uint32_t *) 0x00203DE0 = 0x55AA1111;
*(uint32_t *) 0x00203DE4 = 0x55AA1111;
this way can not effect。i can not write in.
0 Kudos
Reply
1,624 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not familiar with your application, but hopefully you are not executing programming routine from flash:

  1. Understand the Shadow Flash Layout:

    • The censorship configuration is stored in Flash Block 0, specifically in the shadow row.
    • This includes the Censor Control Word (CWORD) and Censor Passwords.
  2. Prepare Your Application to Run from RAM:

    • You cannot execute code from flash while modifying flash (including shadow flash).
    • Copy the censorship routine to RAM and execute it from there.
    • Use a linker script to place the function in a .ramfunc section.

Best regards,

Peter

0 Kudos
Reply
1,571 Views
Sanddy_TTL
Contributor II
hello
my code in the ram to run, i don,t know how to write data to shadow block. how to config can write data to shadow block?
0 Kudos
Reply
1,564 Views
Sanddy_TTL
Contributor II
0 Kudos
Reply