stm32 related bugfix