2020-11-26 09:51 AM
Hi
For a project I am using a STM32F429ZITx and need to implement OTA functionality. With single bank chips I have previously put the update into the free part of the flash, then copied it over and restarted.
With 2 banks I came as far as erasing the unused bank by reading:
checkBank = READ_BIT(syscfg.MEMRMP, SYSCFG_MEMRMP_UFB_MODE);
I then can add the new firmware to the empty flash with looping:
(HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD,
UPDATE_FLASH_START + offset, data32)
Lastly I need to swap the banks to reboot into the new firmware, but I can't get that part to run.
Any ideas ?
Thank you already !!