stm32 protocol timeout handling