copied from template-rtt-stm32f10x project template