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
And below is the Flash Memory Organisation window (I have the EEPROM and DFlash configured and working).
Solved! Go to Solution.
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 .
Hope it helps
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
Hi Xiangium Rong
Thank you for your help, that looks like a good workaround if the PE option is not available.
regards
Sean
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 .
Hope it helps
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
Hello Sean,
Yes, you can use the method of Xiangjun Rong mentioned .
Hope it helps
Alice