add basic code for stm32