Choose, Build and Load
3.1 Set up Motor Control Application Tool (MCAT)
Open S12ZVM-EWP RDB V1.pmp file from the project directory and set the proper parameters up in MCAT for your water pump or other PMSM parameters.
NOTE: Refer to the AN4680 for more information about PMSM electrical parameters measurement.
After complete the parameters set, go to the MCAT “Output File” card and click the “Generate Configuration File” to set them effectively in your project.
3.2 Import Your Project into the IDE
In CodeWarrior you should follow: File > Import > General > Existing Project into Workspace. Then choose the root directory which you store the S12ZVM-EWP project and click the “Finish” button to complete the import.
NOTE: If the directory is correct, you the project name will be automatically populated in the list.
3.3 Build the Project
Right click on the imported project and select Clean project from the context menu.
Right click on the imported project and select Build project from the context menu.
NOTE: These steps shouldn't be necessary since they are executed in the next step automatically.
3.4 Debug the Loaded Code into MCU
In CodeWarrior you should follow: Run > Debug Configuration > select predefined debug configuration.
Then click on Debug button to load built code into the S12ZVML MCU.
3.5 Let Code Run and Disconnect
Let code run by clicking on the Resume (F8) button, and use Disconnect button for avoiding interference between CW debugger and FreeMASTER tool.