When using the STM8L10x library (stm8l10x_it.c and stm8l10x_it.h files) you should use the updated stm8_interrupt_vector.c file released with the library and available under the following path: STM8L10x_StdPeriph_Lib\Project\Template\STVD\Cosmic Regards mozra