4. Build, Run
Let's take your MCSPTR2A5775E development kit for a test drive.
4.1 Import the Project to IDE
Import the installed application software project in the S32 Design Studio for power architecture.
Launch S32DS and then click File > Import and then select General > Existing Projects into Workspace.
Navigate to the installed application directory:
MC_DevKits\MCSPTR2A5775E\sw\ and click OK, then Finish.
4.2 Build the Project – OPTIONAL
- Right click on the imported project and select Clean
- Right click on the imported project and select Build
4.3 Debug for Loading Code Into MCU
In the S32 Design Studio menu, click Run > Debug Configuration and select the predefined debug configuration and click on Debug to start loading built code into MCU.
4.4 Let Code Run and Disconnect
Let code run by clicking on the Resume (F8) button, and use Disconnect button for avoiding interference between S32DS debugger and FreeMASTER tool.
4.5 Debug Your Motor Control Application Using a Debugger Tool
Start the FreeMASTER project for debugging by launching FreeMASTER and then open *.pmp file from the folder
<selected project>\FreeMASTER_control by clicking File > Open Project...
4.6 Start a Connection With the MPC5775E MCU
Click the green GO button in the FreeMASTER toolbar or press <CTRL +G> to enable the communication.
Successful communication is signalized in the status bar at very bottom as: RS232 UART Communication;COMn; speed = 115200
4.7 Control Your Motor
Click App Control tab in the motor control application turning (MCAT) tool menu to display the application control page. Configure the motor rpms and turn on the motor drive.
Success, motor runs.