The temperature in powdered rock and environmental samples irradiated with 23 MeV protons was measured. Under helium (3–9·105 Pa) the obtained temperature is considerably lower than under vacuum. Irradiation under helium at a sufficiently low beam intensity allows to avoid systematic errors that may occur in charged particle activation analysis due to volatilization of matrix components.