STM32 uart memory usage optimized