If you are looking for examples look for IAP (In Application Programming) examples on STs Website. There are several examples for other MCUs using Serial communication. You can easily adapt them for your MCU. I used them to make update over SD-Card and USB.