We theoretically investigate two-quantum magnetic resonance at the end sublevels of the ground state with a total angular momentum F
g
=1 in application to 87Rb atoms. In this work, the effect of the elliptically polarized light on the shift of the resonance frequency is studied. Two schemes are compared: when the RF field is harmonic and when a periodic RF pulse train is used. We demonstrate that the latter approach provides a significantly smaller shift, which can be helpful in reducing the heading error in optically pumped magnetometers.