An implementation of the kowhai protocol for stm32f4 firmware