Resolved! The size of the firmware .bin file is always divisible by 4 in stm32 devices. isn't it?
I am developing a custom bootloader for OTA purposes. I successfully did this under one assumption, that the .bin file is divisible by 4. which means since it is 32 bit even the last part will be inside one full memory cell. Is it correct?