Testing using a stm32f100 as a logic analyzer