1
Out of the Box2
Get Software3
Plug It In4
Build, RunSign in to save your progress. Don't have an account? Create one.
Sign in at NXP with your credentials
Download and Install S32 Design Studio for S32 Platform v.3.5
Note: You will receive an activation code via email or under the Licence Keys tab.
Something went wrong! Please try again.
In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue.
Install S32M2xx Development Package.
Note: In case of installation issues, please ensure that the latest version of the S32 Design Studio Platform package and S32 Design Studio Platform Tools package are installed.
Something went wrong! Please try again.
Download RTD for S32K3 and S32M27x version 4.0.0.
Select "Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M" package to download updated site files.
Something went wrong! Please try again.
Download RTD for S32K3 and S32M27x version 4.0.0 patch P20.
Select "Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M " package to download updated site files.
Something went wrong! Please try again.
In S32DS, go to Help → S32DS Extensions and Updates from the top menu to open the S32DS Extensions and Updates dialogue where you click on "Add Update Sites" link.
Select downloaded SW32K3_S32M27x_RTD_R21-11_4.0.0_D2311_DS_updatesite.zip file (shorter one from the file names).
Note: Do not add RTD 4.0.0 P20 file now! If RTD 4.0.0 P20 is added, the RTD 4.0.0 will not appear in in the list. If this happen, you may click on Manage Sites link and delete the RTD 4.0.0 P20 file location from the list.
Something went wrong! Please try again.
Install the RTD 4.0.0 from the list. Be aware that RTD 4.0.0 may appear on the list more than twice. Ensure that you selected the version that supports only/also S32M27x (See content of the Overview window on the right side).
Something went wrong! Please try again.
Repeat the installation steps 2.5 and 2.6 also for patch P20 (the longer one from the file names) SW32K3_S32M27x_RTD_4.4_4.0.0_P20_D2403_DS_updatesite.zip file.
Again, ensure that you selected the version that supports only/also S32M27x.
Something went wrong! Please try again.
Download and install FreeMASTER application tool for real-time debugging.
Tip: For this training you may even skip the Lite service installation (for which the activation code is required).
Something went wrong! Please try again.
Download and install AMMCLib for S32M27X.
Tip: If possible, install AMMCLib in their default path location for later easy path modification.
Something went wrong! Please try again.
Download and install the S32M276 motor control application software.
Note: The application checks version and whether appropriate AMMCLib was correctly installed or not. If not (red note), install AMMCLib and reinstall the S32M276 motor control application software. That will simplify the next project import (paths to the latest AMMCLib will be already updated).
Something went wrong! Please try again.
The recommended accessory kit for S32M276SFFRD board is BLDC_KIT (software developed and tuned for given motor), however you may use any suitable 3 ph motor and 12 V power supply instead.
BLDC_KIT Content:
In addition to BLDC_KIT, you will also need:
Optionally plug in the Encoder/HALL sensors (only for sensor-based sw application).
Something went wrong! Please try again.
Something went wrong! Please try again.
Let's take your S32M276SFFRD motor control kit for a test drive.
Select the appropriate PMSM or BLDC motor control application from the installed directory.
NXP\MC_DevKits\S32M276SFFRD\sw
To import the installed application software project in the S32 Design Studio IDE for S32 Platform:
NXP\MC_DevKits\S32M276SFFR\sw
and choose appropriate project and click OK. Then, click Finish
Note: Check the box for the option Copy projects into workspace.
Something went wrong! Please try again.
*.mex
file to open the project configuration in S32 Configuration Tool Something went wrong! Please try again.
In S32DS, return back to the C/C++ perspective.
Use the Debug Configuration menu and select the predefined debug configuration for building and uploading software into MCU.
The S32DS will switch into debug perspective where you may let the code run by clicking on Resume (or press F8), and use Disconnect to avoid interference between the S32DS IDE debugger and the FreeMASTER tool.
Something went wrong! Please try again.
Launch the FreeMASTER application.
To open the *.pmpx
FreeMASTER project <selected project>\FreeMASTER_control
, click File → Open Project .
Note: You can also start it by double clicking directly in the S32DS project folder.
To enable communication, in the FreeMASTER tool bar, click Go (or press Ctrl + G).
Successful communication displays in the status bar at the bottom as: RS-232 UART Communication;COMn;speed = 115200
Something went wrong! Please try again.
If you do not use BLDC_KIT (motor Sunrise 42BLY3A78-24110), you may need to edit the motor parameters according to used BLDC/PMSM motor. In the Motor Control Application Tuning (MCAT) Tool switch to Parameters tab and edit values on left side.
Once you finish, click on Store Data, switch to Output File tab and Generate static configuration file.
Now repeat step 4.3 to build the project and upload the code into MCU.
Note: MCU will go to reset, FreeMASTER reconnecting might be need (Ctrl + K, Ctrl + G).
Click the App Control tab on the Motor Control Application Tuning (MCAT) Tool menu to display the application control page.
Configure the motor rpms and turn on the motor drive.
In case of pending faults, click the Clear FAULT on the FreeMASTER MCAT control page.
Click On/Off on the control page to initiate clockwise/counterclockwise spinning of the rotor.
Change the speed required variable to set the speed. Go to the Variable Watch window and modify Speed Required variable or click on the speed gauge.
Stop the application by clicking On/Off button on the FreeMASTER MCAT control page.
Kickstart your RTD journey with these handy examples. We've rounded up some of the most common use cases to get you inspired and moving forward.
Demonstrates the usage of the AE HANDLER FAULTS driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Ae_TS_T40D34M30I0R0\examples\S32DS\S32M276\Ae_Handler_Faults_Example_DS_001_S32M276
Demonstrates the usage of the AE SPI driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Ae_TS_T40D34M30I0R0\examples\S32DS\S32M276\Ae_Spi_Example_DS_001_S32M276
Demonstrates the usage of the AEC SPI driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Ae_TS_T40D34M30I0R0\examples\S32DS\S32M276\Aec_Ip_Spi_Example_DS_001_S32M276
Demonstrates the usage of the CAN TRCV driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\CanTrcv_43_AE_TS_T40D34M30I0R0\examples\S32DS\S32M276\CanTrcv_Example_S32M276
Demonstrates the usage of the DPGA driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Dpga_TS_T40D34M30I0R0\examples\S32DS\S32M276\Dpga_example_S32M276
Demonstrates the usage of the DPGA IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Dpga_TS_T40D34M30I0R0\examples\S32DS\S32M276\Dpga_Ip_example_S32M276
Demonstrates the usage of the GDU driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Gdu_TS_T40D34M30I0R0\examples\S32DS\S32M276\Gdu_Example_DS_S32M276
Demonstrates the usage of the LIN TRCV driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Lin_43_LPUART_FLEXIO_TS_T40D34M30I0R0\examples\S32DS\S32M276\Lin_LinTrcv_Flexio_MasterFrameTransfer_S32M276
Demonstrates the usage of the LIN TRCV LPUART driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Lin_43_LPUART_FLEXIO_TS_T40D34M30I0R0\examples\S32DS\S32M276\Lin_LinTrcv_Lpuart_MasterFrameTransfer_S32M276
Demonstrates the usage of the CLOCK IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Mcu_TS_T40D34M30I0R0\examples\S32DS\S32M276\Clock_Ip_Example_S32M276
Demonstrates the usage of the MCU driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Mcu_TS_T40D34M30I0R0\examples\S32DS\S32M276\Mcu_Example_S32M276
Demonstrates the usage of the POWER IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Mcu_TS_T40D34M30I0R0\examples\S32DS\S32M276\Power_Ip_Example_S32M276
Demonstrates the usage of the MEM OTP IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Ocotp_TS_T40D34M30I0R0\examples\S32DS\S32M276\Mem_Otp_Ip_Example_S32M276
Demonstrates the usage of the OCOTP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Ocotp_TS_T40D34M30I0R0\examples\S32DS\S32M276\Ocotp_Example_S32M276
Demonstrates the usage of the PLATFORM MPU HLD driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Platform_TS_T40D34M30I0R0\examples\S32DS\S32M276\Platform_MPU_HLD_Example_S32M276
Demonstrates the usage of the MPU IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Platform_TS_T40D34M30I0R0\examples\S32DS\S32M276\Platform_MPU_IP_Example_S32M276
Demonstrates the usage of the PORT driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Port_TS_T40D34M30I0R0\examples\S32DS\S32M276\Port_Example_S32M276
Demonstrates the usage of the SIUL2 PORT IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Port_TS_T40D34M30I0R0\examples\S32DS\S32M276\Siul2_Port_Ip_Example_S32M276
Demonstrates the usage of the WDOG driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Wdg_TS_T40D34M30I0R0\examples\S32DS\S32M276\Wdg_Example_S32M276
Demonstrates the usage of the WDOG IP driver.
Path:
C:\NXP\S32DS.3.6.1\S32DS\software\PlatformSDK_S32K3\RTD\Wdg_TS_T40D34M30I0R0\examples\S32DS\S32M276\Wdg_Ip_Example_S32M276
Connect with other engineers and get expert advice on designing with the S32M276SFFRD Reference Design Board using our community sites.
Download and Install IDE
Install the S32M2xx Development Package
Download the RTD Drivers
Download the Patch for RTD Drivers
Add the RTD Drivers to S32DS
Install the RTD Drivers
Add the RTD Patch 20 to S32DS
Get FreeMASTER Application Tool
Get AMMCLib for S32M27X
Get the S32M276 Motor Control Application
Plug In the Motor
Plug In the Encoder/HALL Sensors
Plug In the JTAG Debug Interface
Plug In the UART to USB Interface