https://www.st.com/resource/en/user_manual/um0834-developing-and-debugging-your-stm8sdiscovery-application-code-stmicroelectronics.pdf