2020-06-22 03:16 AM
In STM32F7 dual/single bank configuration is available. It can be done using nDBANK bit of FLASH_OPTCR register.
For STM32H7, FLASH_OPTCR register is not having nDBANK bit. So, is there any way to use flash with single bank mode for STM32H7?
2020-06-22 04:37 AM
No, the STM32H7 is always in dual bank mode. But this is just an organizational thing. It shouldn't prevent you from using the flash however you want.
2020-06-22 04:55 AM
@TDK Thanks for the reply, but will it allow to create (and execute) a single binary having size > 1MB?
2020-06-22 05:06 AM
Yes. It's still contiguous memory. No issue with that. Just define it as a single section in your linker file with capacity 2MB.
2020-06-22 05:40 AM
For the sake of completeness,
STM32H743xI has 2 banks of 1 MByte each forming a contiguous flash memory area, so there would be no issues with a single binary spanning both banks.
STM32H743xG has 2 banks of 512 kByte each mapped to non-contiguous addresses, there is a 512 kByte hole between the two banks.