[SOFTWARE]Add F4Discovery Platform + fix bugs in Main Board Platform