2018-07-12 10:52 AM
I have an STM32F429 and want to have dual banks.
From looking at the manual I tried this, but it does not seem to work.
Can anyone offer suggestions? (Solutions? )
if ((FLASH->OPTCR&FLASH_OPTCR_DB1M_Msk) == 0) {
printf(''Single Bank - Attempt to fix!\r\n''); HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock();FLASH->OPTCR |= FLASH_OPTCR_DB1M_Msk; HAL_StatusTypeDef HAL_FLASH_OB_Launch(void); HAL_FLASH_OB_Lock(); HAL_FLASH_Lock(); } else printf(''Dual Bank!\r\n'');To be clear, I am not trying to set which bank to boot from, that is a different bit.
#dual-bank #stm32f4-flash2018-07-12 01:45 PM
I tried the latest ST-Link utility and for the STM32F429ZIT it had the 'DUALBANK' option grayed out
Strange, it is a 2MB part
2018-07-15 12:29 AM
You're using F429ZIT? This one has a 2 MByte flash. And for these devices, the RM clearly states it is *ALWAYS* dual-banked. Only for the 1 MByte devices there is an option to choose between single and dual-bank.
So in your case the DB*1M* (sic!) is simply a don't care.