Flash part updated

commmitted by Fenghua