Hi VIGNESH BALAJI,
Please check this figure at first.

1. MCU Secure
Flash address: 0X40E
The data meaning

So, if you just want to secure the board, you can set flash address 0X40E address data as: 0XFF
Code location:

I don't know what the IDE and code you are using, please tell me, then I will tell you the details.
2. Flash protection
Flash address 0x40d, the data is determined by reference manual chapter 18.3.6 Protection,
Please read it carefully, you will know how to set the flash protection data.
About the code modification, the same as FSEC, should modify in vector.h or .s, it is determined by your code.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------