Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG
Tool/software:
Hi TI,
I have a question regarding the flash protection settings for the CC2340R5. I want to set a secure block in the flash to store a key, and this flash block needs to have write/erase protection. For example, I hard-code the key in the firmware and store this key in a specific address in the flash. Afterwards, even using OTA should not be able to update the data in this secure block.
Currently, I am using the SDK: "simplelink_lowpower_f3_sdk_8_10_01_02\examples\rtos\LP_EM_CC2340R5\ble5stack\basic_ble"
How should I configure the parameters in the Flash Protection Settings in the syscfg file?
Currently, I know that the flash has a total of 512kB, and each sector is 2kB, so there are a total of 0~255 sectors that can be configured.
I have tried filling in various values, but whenever I use Uniflash to erase the chip, the originally set flash block seems to be erased. Is there a way to prevent Uniflash from erasing the specified secure block? How should I set it correctly? Or do I need to call any function in the code, such as SACI commands? Thank you.