Flash security in MK10

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

Flash security in MK10

1,145 Views
ssarathkumar916
Contributor II

Hi,

We are using MK10DX256xxx7 controllers. and We use Rowley cross works IDE for programming. 

We want to secure the flash. So We tried to write 0x00 in FSEC register using Knetics_Startup.s file, But it doesn't work. 

kindly let us know the configuration steps.

Thanks,

Sarathkumar S

kinetics_m mk10dx64vlk7‌ #Kinetis Microcontrollers

Labels (1)
7 Replies

883 Views
ssarathkumar916
Contributor II

Hi Kerry,

I have attached the screenshot for verifying the hex after flashing.

pastedImage_1.png

From the screenshot , it seems like hex generated correctly, but the FSEC register write operation is not happened.

Do we have to set any protection register prior to FSEC register write operation.

please look into the screen shot for better clarification. 

Thanks,

Sarathkumar S

0 Kudos

883 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sarathkumar S,

    From your generated hex file, your FSEC area is modified.

    What the debugger you are using?

   Can you use the JLINK to downloaded it to your chip directly?

   But in the JLINK device, you need to select the ChipPartnumber_<Allow secturity>

  Please try it on your side.


Have a great day,
Kerry

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

883 Views
ssarathkumar916
Contributor II

Hi Kerry,

We are using "Rowley cross connect" debugger for flashing. We dont have JLINK debugger.

Is there any way to do flash security with Rowley cross connect ?. Please suggest.

Thanks,

Sarathkumar S

0 Kudos

883 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sarathkumar S,

   I never used the Rowley cross connect debugger, so maybe you need to check this debugger function with the Rowley cross connect debugger side.

   As I know, JLINK, P&E multilink all can secure the kinetis chip.


Have a great day,
Kerry

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

883 Views
ssarathkumar916
Contributor II

Hi Kerry,

Okay, We will check it on debugger side.

Thanks for helping us Kerry.

 

Thanks,

Sarathkumar S

0 Kudos

883 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sarathkumar S,

   Thanks a lot for your understanding.

    If you need any help about the kinetis side, just kindly let me know.


Have a great day,
Kerry

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

883 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sarathkumar S,

   We seldom use Rowley cross works IDE, we normally use the MCUXpresso IDE, IAR or MDK.

   So, we suggest you also use the above three IDE, this is the popular IDE.

    After you modify the FSEC, you can generate the .hex file, then check flash address 0x0_040C, whether it is 0x00 which you defined?

   Just check whether you IDE can generate the correct secured app .HEX file at first.

If you still have question about it, please kindly let me know.
Have a great day,
Kerry

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos