clean up stm32 sample program