Added initialization for the external flash