An implementation of the kowhai protocol for stm32 firmware