KDS/SDK/PE  Flash Configuration Field  greyed out

cancel
Showing results for 
Search instead for 
Did you mean: 

KDS/SDK/PE  Flash Configuration Field  greyed out

Jump to solution
679 Views
Contributor III

Hi NXP

 

I am using KDS 3.0.0 with SDK 1.3.0 and Processor Expert on Windows 10 for MK20DX256VLK10 processor.

 

I am now trying to set the protection and security functions for this device but in the PE window the button to enable the Flash Configuration Field  is always greyed out so I cannot enable or configure protection or security.

 

See screengrab below.

 

Is there something else I need to do in order to be able to set the security options with the KDS environment?

 

Thank you

 

regards

 

Sean

 

144344_144344.pngpastedImage_0.png

 

And below is the Flash Memory Organisation window  (I have the EEPROM and DFlash configured and working).

 

144345_144345.pngpastedImage_1.png

Labels (1)
0 Kudos
1 Solution
26 Views
NXP TechSupport
NXP TechSupport

Hello Sean,

This configuration option is for the PE project without KSDK, so when

we create one KSDK+ PE project , it is grey , you can create one PE project without KSDK

to have a test .

And in the KSDK PE project , you can use this methods under the fsl_flash component to

set the protection and so on .

pastedImage_0.png

Hope it helps

View solution in original post

5 Replies
26 Views
NXP TechSupport
NXP TechSupport

Hi, Sean,

I have created a project, Flash Configuration Field  is greyed, I cannot enable or configure protection or security either, maybe this is PE issue.

As a workaround, I think you can write the the Flash Configuration in the startup_MK20D10.S file.

this is the original code, which set the chip in unsecurity mode:

/* Flash Configuration */

    .section .FlashConfig, "a"

    .long 0xFFFFFFFF

    .long 0xFFFFFFFF

    .long 0xFFFFFFFF

    .long 0xFFFFFFFE

You can change it to :

/* Flash Configuration */

    .section .FlashConfig, "a"

    .long 0xFFFFFFFF

    .long 0xFFFFFFFF

    .long 0xFFFFFFFF

    .long 0xFFFFFFFF

You change the last word from0xFFFFFFFE to 0xFFFFFFFF. the last byte is copied to the FTFA_FSEC register after Reset.

Hope it can help you

BR

Xiangjun Rong

26 Views
Contributor III

Hi Xiangium Rong

Thank you for your help, that looks like a good workaround if the PE option is not available.

regards


Sean

0 Kudos
27 Views
NXP TechSupport
NXP TechSupport

Hello Sean,

This configuration option is for the PE project without KSDK, so when

we create one KSDK+ PE project , it is grey , you can create one PE project without KSDK

to have a test .

And in the KSDK PE project , you can use this methods under the fsl_flash component to

set the protection and so on .

pastedImage_0.png

Hope it helps

View solution in original post

26 Views
Contributor III

Hi Alice

Thank you for that advice, that is helpful.

I have had look at the methods available in the fsl_flash module.  I can see the SetProtection methods but I don't see anything for setting the security mode.  Is there a method/function for this or is the only way via configuration in source code as described by Xiangium Rong below.

regards
Sean

0 Kudos
26 Views
NXP TechSupport
NXP TechSupport

Hello Sean,

Yes,  you can use the method of Xiangjun Rong mentioned .

Hope it helps

Alice

0 Kudos