Undoped 6H- and 4H-SiC crystals were grown by Halide Chemical Vapor Deposition (HCVD). Concentrations of impurities were measured by various methods including secondary-ion-mass spectrometry (SIMS). With increasing C/Si ratio, nitrogen concentration decreased and boron concentration increased as expected for the site-competition effect. Hall-effect measurements on 6H-SiC crystals showed that with the increase of C/Si ratio from 0.06 to 0.7, the Fermi level was shifted from Ec-0.14 eV (nitrogen donors) to Ev+0.6 eV (B-related deep centers). Crystals grown with C/Si > 0.36 showed high resistivities between 1053 and 1010 4cm at room temperature. The high resistivities are attributed to close values of the nitrogen and boron concentrations and compensation by deep defects present in low densities.