I\'m trying to write an app for testing ST board via serial port and I\'m currently facing the following issue. (The code below is just a simplification of a problem.)