I want my KL17 and K64 devices to be secure yet be able to erase them if needed.
The FSEC is read and processed during reset which will make the FSEC associated with the bootloader take precedence.
Please clarify my understanding that the FSEC, FPROT, ect setting of the the application code have no bearing on how the device behaves.
Thanks.
Joe
Kerry:
0x40c set to 0 or 0xff would be no different correct?
You just don't want bits 0 and 1 to be b10 -- then you made a brick. The rest of the byte decides if the key is active, mass erase possible, NXP and read the device.
Joe
Hi Joe,
The detail meaning of 0X40C data is in the FTFE_FSEC register:
So, the data 0x00 or 0XFF in address 0x40c is the same, if you want to secure the chip, just make sure SEC bit is not unsecured(0b10).
Wish it helps you!
If you still have question, please contact me!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Joe,
The most important data is the Flash configuration filed:
The flash configuration field is in the bootloader area, so you don't need to afraid that the APP will modify it.
Just make sure the 0X40D, 0X40C data is which you need, if you want to secure and enable the erase, don't protect the area which you want to erase, and set 0X40C data to 0x03.
Wish it helps you!
If you still have question, please contact me!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for the confirmation Mark.
That's what I thought - just wanted to confirm.
Joe
Joe
Only the boot loader can set the Flash configuration parameters. The application never has any such.
It may be that the code "does have a table" but it will be located at an address that is not relevant to the reset and so its of no use.
Regards
Mark