Freescale keaz flash security

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

Freescale keaz flash security

720 Views
vitaliharudka
Contributor II

Hello. I made device using keazn64 uC on board. I need to lock any action via swd(reading flash image). I tried to edit flashConfig section in stratup file but it doesn't help. I use segger j-link for debugging. How should i do it?

Best regards, Vitaly G.

Labels (1)
0 Kudos
3 Replies

587 Views
nxf58474
NXP Employee
NXP Employee

Hi Vitaly,

 

Hope you are doing well. Could you please clarify what your main objective is? From my understanding , it seems to me that you would like to implement flash security. Is this correct?

 In the section 8.3.1 of the Reference Manual, it says that when flash security is active, the SWD port cannot access the memory resources of the MCU, this may be causing you isses. However, what can be done, is a mass erase.

 

If you have any questions please don't hesitate to ask.

 

Best Regards,

Ricardo

0 Kudos

587 Views
vitaliharudka
Contributor II

Hi Ricardo,
Yes, i need to turn on flash security. But how to it?

0 Kudos

587 Views
nxf58474
NXP Employee
NXP Employee

Hi Vitaly,

 

In the section 18.4.2 of the Reference Manual, you can see the register and bits associated with the security of the MCU. You need to write the Flash security byte in the Flash configuration field, so after the reset sequence, the FSEC register is loaded with the contents of this byte.

 

 Flash configuration field.png

 

Let me know if you have further questions.

 

Best Regards,

Ricardo

0 Kudos