In order to ensure operational effectiveness in a complex jamming environment, it is necessary for modern radars to have an efficient anti-jamming system. Phase coded signal is a very important type of signal in Compressed Sensing Radar (CSR). Phase coded signals have more complicated signal structures and thus, are difficult to be accurately detected and analyze by the enemy's Electronic Support Measures (ESMs). Therefore, phase-coded signals are very important to improve the anti-jamming ability of CSR. Aiming at the prominent problems of phase coded CSR in the process of electronic countermeasure and electronic counter countermeasure, this thesis tries to optimize the phase coded signal waveform to improve its anti-jamming ability, to improve the resolution of target and to reduce the probability of being found by enemy's electronic reconnaissance equipment.