I need store data into the flash
Flash memory is read-only. You can't store data in flash memory at run time.