Update flash environment