stmhal: Add flash write support and flash storage driver.