STM32F429 and Erase Sector time
Hello,
MCU: STM32F429ZI
I am building a bootloader for my project to upgrade the application firmware from SD card.
Everything works fine but the total time for a ~2MBytes .bin file is almost 45 seconds. So, i am trying to check each step and try to reduce its time.
- Sector Erase Time
Sectors erasing takes up to 25 seconds, is there a way to reduce it? I am using the below function:
EraseStruct.NbSectors = (uint32_t)(NbOfSectors);
if(HAL_FLASHEx_Erase(&EraseStruct, &SectorError) != HAL_OK) {
.
.
}- Flash Writing Time
Writing to Flash (+ time to read from file) takes about 20 seconds. Is there a way to write more than doubleword to reduce the time?
if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, Address, FileData) == HAL_OK) {
.
.
.
}Thank you.
