add some debug messages on stm32