Associate III
April 28, 2022
Question
What is the goal of the firewall configuration constraint on dual bank products
- April 28, 2022
- 6 replies
- 1995 views
Hi,
One of the requirement for the FLASH layout on dual bank product (like the STM32L4 that I use) is that the FWALL code section overlaps the the FWALL NVdata (see the attached image).
If I understand correctly the reason is that if the banks are swapped the keys stored in the Secure Engine Code are still protected by the Firewall. My questions are:
- Can the banks be swapped without performing a mass erase first ? If not than what is the advantage of that overlap rule.
- How can the banks be swapped? (I know from the attached image that if SYSCFG_MEMRMP / FB_MODE = 1, banks are swapped but how can those variables be set practically ?)
- If the KMS is used, the keys are stored in the FWALL NVdata Code section not in the FWALL Code section. If the FWALL NVdata section is bigger than the FWALL Code section and the banks are swapped, isn't that possible the keys are outside the firewall protection ?
Thanks in advance,
Benjamin
