cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Key in OP Byte

bsuthar
Associate II

Hello Team,

I want to store encryption Key - 4 byte into Option Byte OR any other memory Except in-built Flash Memory.

Is it possible to write in Option Memory ? 

If not what could be the other option ? 

2 REPLIES 2
TDK
Super User

There are no spare addresses in option bytes for this.

The usual method for doing this is writing them to the last page of FLASH. If you don't want to do that, you'll need to use an external memory chip.

If you feel a post has answered your question, please click "Accept as Solution".
mƎALLEm
ST Employee

Hello,

I think you can store only two bytes in the option bytes in STM32F3. (By the way you didn't mention the exact part number you are using)

mALLEm_0-1760716900743.png

The only possibility in your case (4 bytes) is to use the RTC backup registers where you need an external battery.

I'm not in favor to save the keys in an external memory as it may "breach" the security by sniffing the communication between the chips ;).

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.