Copying data from read-only flash to read-write ram