Difference between user option bits DB1M and DBANK - STM32L4R9
Background
Hardware:
- STM32L4R9ZGJ6 (1 MB flash)
- Custom board
Software:
- STM32CubeIDE v1.6.1
- STM32CubeProgrammer v2.8.0
Hello,
I have a couple questions.
Question 1: What is the difference between the user configuration option bits DB1M and DBANK?
According to the STM32L4 reference manual:
DB1M:
- "The dual-bank feature on 1 Mbyte devices is enabled by setting the DB1M option bit"
DBANK:
- "Single-bank mode DBANK=0: read access of 128 bits"
- "Dual-bank mode DBANK=1: read access of 64 bits"
Based on the descriptions in the reference manual and STM32CubeProgrammer, they do the same thing. Having two bits with the same functionality seems unlikely, so there must be a difference.
Edit: Looks like someone asked the same question 3 years ago: https://community.st.com/s/feed/0D50X0000B09dgCSQQ
Question 2: When switching from dual-bank to single-bank, is it required to mass erase and reprogram the MCU?
Thanks,
Derek

