[NUCLEO_F334R8] Improvement of Serial hal