2015-01-29 09:06 AM
Hii
My firmware hex file size is of 65kb size and after going through the code of stm32 IAP described in CD00161640 pdf , I couldn't understand where the 65kb of data is hold in sram before being flashed, since the size of ram is only 8kb (will the algorithm erase each byte received from the file and write each byte to the flash accordingly?) Thankyou, Ravi. #firmware-upgrade #stm32 #iap2015-01-29 09:34 AM
a) The size of a .HEX file is about 2-3x the size of the .BIN describing the same non-sparse data. The download uses binary data, not hex data, as I recall.
b) The USART IAP uses a Y-MODEM type implementation, it's block size would be 1KB, it writes the FLASH a block at a time, and does NOT stage it anywhere in a ''whole firmware'' form. c) It erases the memory, it's not a byte replacement methodology. d) There are methods to send hex files, and to stage data before flashing, I'd expect most embedded coders could implement such within the limitations of there board design. Please review the examples source to better understand the inner workings thereof.