Application note provides examples of how to use various blocks of the STM8 microcontroller family and the STM8A and STM8S firmware libraries. It intends to provide two practical application examples of how to perform basic in application programming (IAP) using either the STM8 I2C or SPI peripherals