Penetrated bromine can change compositions of HBr-etched CGeSbTe films.
Vaporization of bromide compounds by annealing left void in the etched CGeSbTe film.
NH3-etched CGeSbTe films did not show any compositional change and void.
NH3-etched device showed significant increase in set cycles due to void suppression.