Upgrading STM32L1 firmware takes a long time
I have an STM32L152R8T6-A MCU. A new firmware is downloaded over HTTP (as a .bin file) and is stored in an external flash memory. After that a bootloader copies the new firmware into MCU flash (address 0x8000000) and resets the micro.
Everything is OK except the process of firmware copy. Actually it takes a long time. For an average-sized bin file (10 KB) it may take 2 minutes to copy the firmware.
I have searched about this problem. Moving the copy function to SRAM is proposed as a solution. I performed this but nothing changed.
Is there any solution to overcome this problem?