Two STM32 fixes