In the development of automotive electronic control systems, the traditional development mode has been used for a long time. Not only does it need to manually write a large number of algorithms, but also the corresponding interface circuits and drive detection devices need to be designed. The long time and repetitive work are many. The mode of the V process was developed for the motor control system, and the vector control of the permanent magnet synchronous motor was studied. By constructing a permanent magnet synchronous motor vector control algorithm model on Simulink and implementing automatic generation code download to DSP, then constructing inverter and permanent magnet synchronous motor model on Typhoon HIL power electronic hardware-in-the-loop simulation platform, connecting DSP to PMSM vector control The algorithm is tested.