Skip to main content
CKnez.1
Associate
November 26, 2020
Question

STM32F429 bank swap for OTA update

  • November 26, 2020
  • 0 replies
  • 664 views

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 !!

This topic has been closed for replies.