An important requirement for most Flash-memory-based systems is the ability to update firmware when installed in the end product. This ability is referred to as in-application programming (IAP).
The X-CUBE-IAP-USART firmware package contains the source code of IAP examples based on the STM32Cube.