AnsweredAssumed Answered

Enable security using Eclipse and KSDK

Question asked by Wesley Hunter on Nov 12, 2015
Latest reply on Nov 14, 2015 by Wesley Hunter

I am using a FRDM K64F board. I have tried securing using either the built in Open SDA segger J-Link driver or an external J-Link probe. Basically the steps I have tried so far are:

 

* I set the flash protection values in the flash configuration section of the startup code/file, i.e. in the startup_{board}.s just after .”section .FlashConfig, “a” I change the Last value from 0xFFFFFFFE to 0xFFFFFFFD.

* In the Segger Debug settings I specify the device with “(allow security)”

 

After doing that I can see the memory at address 0x40C = 0xFFFFFFFD, but SEC in the FSEC register still = 0xFFFFFFFE. I restart the device, using the reset button or through a software reset. memory at address 0x40C still = 0xFFFFFFFD, SEC in the FSEC register still = 0xFFFFFFFE and now the app hard faults during startup.

 

Does anyone have any advice on how to properly secure this board using KSDK 1.2 or greater?

Outcomes