So, hello guys, welcome to Gettobyte website. This blog is part of the Microcontroller coding series on NXP Semiconductors S32K144 MCU. Objective of this series is to learn Microcontroller technology by getting knowledge on how to do microcontroller coding. And for doing so we would be proceeding with NXP Semiconductors S32K144 Microcontroller. To know about this Microcontroller and reasons for selecting this MCU, it would be nice to have a look onto this blog.
There are many things in Microcontroller to learn and often it becomes very cumbersome and overwhelming from where to start and how. So, in This Microcontroller coding series we would be moving step-by step. Starting From Application side: that is peripherals of MCU and then rooting back to inner details of microcontroller. Dot worry just hold back your nerve, subscribe to channel newsletter and follow the series.
Now one of the first thing that is needed for doing Microcontroller coding is the Integrated Development environment (IDE). NXP Semiconductors, provide its own IDE for doing microcontroller coding on S32 series of controller, that is S32 Design Studio. So, at first, we would be covering what is S32 Design Studio and How to use it. As throughout the microcontroller coding on S32K144 MCU, we would be using this IDE for doing hand-on practical programming to learn/understand things.
We have divided S32 Design Studio in 3 blogs for covering all things in chronlogical and story format so as to make things in interesting and fun way. Below are the links for using S32 Design Studio.
The motive of this blog is to:
S32 Design Studio is a C/C++ development platform, for programming NXP S32 microcontrollers and microprocessors.
The C/C++ development platform of S32 Design Studio is itself based on Open-Source Eclipse IDE, which provides the features like Text Editor: for writing the code, Views: for showing information about the code, Perspectives: for providing the functionality to do specific types of tasks and advanced C/C++ code base navigation/development features.
It is an, Integrated Development Environment (IDE), for programming and debugging of ARM and Power Architecture-based S32 Microcontrollers. Just like Arduino IDE is there for programming Arduino, same way S32 DS is used for programming S32 Automotive microcontrollers of NXP Semiconductors.
S32 Design Studio IDE comes in 3 Variants: S32DS for S32 Platform, S32DS for ARM, and S32 DS for Power Architecture. The major difference between these IDEs is the support of S32 MCUs. As shown below pic:
We will be focusing on S32 Design Studio for the S32 Platform, as it supports the majority of S32 Microcontrollers. So throughout the blog by S32 Design Studio we will be referring to S32 Design Studio for S32 Platform.
S32 Design Studio has specs as follows:
S32 Design Studio has features like:
Software Installation Part can be divided into 2 parts.
First is S32 Design Studio IDE Installation and other is Microcontroller software development package and SDK Installation. In the first part we are just going to download the required IDE into our host laptop/computer and in second part we will install some plugins into our IDE to make it suitable for our microcontroller. As we are using S32K144 MCU and it belongs to S32K1 family, so development package and environment for S32K1 family would be installing. One can take this step analogous to step in Arduino, in which we need to install some extra packages and setup the environment for ESP controllers.
Now We, have downloaded the S32 DS successfully. Next step is to download the Required Microcontroller Development package and SDK Files. We are going to use S32K144 MCU, using elecronicsV2 Board. So, we are going to download Development package and SDK files for S32K1 family of MCU’s.
Make sure all these packages, you can see, if you are downloading for first time. If any error comes up kindly mention them in forum page of gettobyte: Forum – gettobyte
There are 2 RTD packages which are available. One is Autosar Complaiant RTD package and Other
is Non-Autosar Complaint RTD Package. We are going to see both the RTD packages software
installation process. User can Install both the RTD packages.
And inside the S32SDK_S32K1XX_RTM_4.0.3, you will see, following folder. Which means your SDK Files have been downloaded successfully.
And you can see this time, we can see S32K1xx SDK RTM v 4.0.3 Example Projects, which means SDK files and Demo examples of SDK for S32K1 Family have been successfully imported into our IDE.
After that, go to Real Time Driver Section and click on its drop-down arrow at Download tab. Under which you will see 2 subsections. Click on Real Time Drivers for S32K1.
Now click on Automotive SW – S32K1_S32M24x – Real-Time Drivers for Cortex-M.
Now after successful installation of software packages and SDK files for corresponding Microcontroller to be used, next step to do is Project creation.
Project creation can be further categorized into 3 parts:
Let’s dive into each of these steps one by one:
Just like in Arduino IDE environment we have basic Demo Examples already developed so that we can get hands on Microcontroller peripherals quickly, same way NXP Semiconductors, also provides demo examples in S32 Design Studio IDE for S32K144 Microcontroller to get hands on its peripherals easily and quickly. These Demo examples are downloaded once Software packages and SDK files of the S32K144 MCU are properly installed in IDE as told in previous step. To see this demo examples navigate to area of S32DS IDE as shown in below pic:
Now click on the SDK name: S32K1xx SDK RTM v4.0.2 Example Projects and we can see list of demo codes for all the MCU’s of S32K1 family: S32K116, S32K118, S32K142, S32K142W, S32K144, S32K144W, S32K146, S32K148, as shown below. Our ElecronicsV2 development board is made on S32K144 MCU, so we will be exploring demo examples of S32K144 MCU
Now Demo Examples are also further divided into 2 categories: Driver Examples and Demo Apps. Driver Examples: demonstrate basic example to use each peripheral of the MCU. Demo Apps: demonstrate basic application codes like blink led, motor control example.
This is the step, in which we can make a Project in S32DS from scratch. From the scratch i mean without any
This step i guess would not be used by most of the beginners, but those who have some Project code of S32DS and wanna open it in S32DS 3.4. They can open it by below steps:
Now we have opened, the project In S32 Design Studio. Let me just tell you to make you guys aware about certain Project configurations and setting we can do, which night be required when we will be doing Embedded Software Development on These MCU’s.
Error: Contact form not found.