stmhal: Ability to stat /flash and /sd.

Addresses issue #780.