a simple tool for stm32f4-discovery