[NUCLEOs] Improvement of Serial hal