AnsweredAssumed Answered

OTP and option bytes flash banks

Question asked by Jules Patru on Feb 15, 2018
Latest reply on Feb 15, 2018 by Doug Kehn


I am developing some project using STM32L4xx microcontroller.

In technical reference manual, the chapter describing how the Flash memory behaves explains that these micro have two Flash banks. It also says that RWW operations are allowed. Thus I can use our own bootloader that sits in Bank1 to erase/write data in Flash Bank2.

In TRM §3.3.1, I can also read that Option bytes are splitted between Bank1 and Bank2 and that OTP memory is in Bank1.
Does this mean that my bootloader that sits in Bank1 can NOT write something in OTP memory?


Could you please clarify this please?

Thanks !