当前位置:网站首页>S32 design studio for arm 2.2 quick start

S32 design studio for arm 2.2 quick start

2022-07-04 23:20:00 Auto FAE advanced road

1. brief introduction

This paper mainly introduces S32 Design Studio for ARM 2.2 Installation and use of development environment , The use of SDK Built in for this environment RTM 3.0.0, It aims to help readers quickly master the development environment , More convenient development S32K1xx series MCU.

The hardware corresponding to this article is S32K144EVB-Q100, The official website information link is :S32K144EVB: S32K144 Evaluation Board, Hardware information such as schematic diagram is shown in the following figure :

S32K144EVB

2. Download and install

2.1 S32DS brief introduction

S32 Design Studio for ARM The development environment is mainly for the convenience of user development S32K1xx The birth of the , It also supports KEA series , But the supporting graphic tools Processor Expert Currently only supported S32K1xx series .

This development environment is based on Eclipse IDE、GNU Compiler collection (GCC) and GNU The debugger (GDB) Including open source software , There is no code size limit , And free to use .

S32 Design Studio for ARM At present, there are four versions ,V1.3,V2.0,V2.2,V2018.R1. among V2018.R1 The version has the most patches , Supported by SDK There are also the most versions ,NXP Most of the official website S32K1xx Routines are also based on this version of the development environment . But for just touching S32K1 Little buddy , I still recommend V2.2 edition , Here's why :

  • V2.2 Version of the development environment integrates RTM 3.0.0 Version of SDK,2018.R1 The version needs to be patched ( time-consuming ) To use this SDK.
  • V2.2 Version can be SDK Update to RTM3.0.3 edition , Repair the RTM3.0.0 Some of the versions bug.
  • although S32 Design Studio for S32 Platform 3.x The platform is updated S32K1xx Of RTM 4.0.0 edition , But the graphical configuration tool is changed to Config Tools, There is no relevant introduction Processor Expert many , Novices are not recommended to use .

2.2 S32DS download

  1. open NXP The website links , As shown below , Registered account , and Login account .

NXP Semiconductors Official Site | Home

NXP Official website

  1. open S32 Design Studio for ARM Link to the official website of , As shown below :

S32 Design Studio IDE for Arm based MCUs | NXP Semiconductors

  1. Click on S32 Design Studio for ARM 2.2( Later referred to as" S32DS 2.2) Download link for , As shown in the figure below :

S32DS 2.2

  1. Click agree on the pop-up installation agreement .

 Installation protocol

  1. choice Windows Download the installation package of the platform .

exe file

  1. While downloading the installation package, click License Keys.

License Keys

  1. Save the pop-up activation code , It will be used in later installation . meanwhile ,NXP The activation code will also be sent to the user by email , It's just that sometimes emails don't arrive so quickly .

 Activation code

2.3 S32DS install

  1. Click to download the good installation package , Enter the installation preparation interface .

 Installation preparation

  1. When the installation is ready , The installation wizard will pop up , Click on Next.

 Installation wizard

  1. Select install only S32DS 2.2, Click on Next.

 Installation options

  1. Pull the installation agreement to the bottom , Check OK , And then click Next.

 Installation protocol

  1. Select the installation directory , Here I choose D Disk directory , Click on Next.

 The installation directory

  1. Select where the icon was created , Click on Next.

 Icon creation

  1. Click the Install button , Enter the installation process .

 Installation information

  1. After a few seconds, the activation interface will pop up , Enter the previously saved activation code , Click on OK.

 Activate the interface

  1. Choose online activation mode .

 Activation mode

  1. During installation , The installation will pop up PE Driven interface , Click agree and select the default directory for installation . At the same time to install PE Click Yes in the pop-up window of the driver installation process .

P&E drive

P&E Drive directory

  1. After installation , Click the Done Installation is complete .

 installation is complete

3. New project and import project

3.1 S32DS 2.2 Initial configuration

  1. The first time S32DS 2.2 You will be prompted to select an address as Workspace( Frequent replacement is not recommended ), Projects opened or created later will be automatically placed in this Workspace. It is recommended to choose a disk directory with large free space .

Workspace

  1. Choose good WorkSapce after , An update window will pop up , Click the corresponding menu to display the corresponding patch information , As shown in the figure below . If you don't want to pop up this interface every time you open it , Cancel the lower left corner Always show at startup Checked by . There is no need to install a patch this time , Can be closed .

 Update the interface

  1. If you need to update the patch later , In the main interface Help Open the pull-down menu , Here's the picture .

Help Interface

  1. Getting Started The web page has Create a project And other hyperlinks to common scenes , Click to jump directly to the corresponding interface or corresponding document .

  1. close Getting Started Interface , Will enter the S32DS 2.2 main interface , The description of the main areas is shown in the figure below :

Get the work done , Next comes the new project .

3.2 New project

There are three types of new projects , As shown below :

 New project options

  • Rely on routines to create projects ,S32DS 2.2 Bring a lot of S32K1xx routine , You can create projects based on routines that are close to the functionality of the project , It's more friendly to novices .
  • Create Library Project , If developed jointly with partners , But it is not convenient to provide source code , You can use this way to create a project .
  • Create a blank project , If you don't want to use it NXP Provided SDK, Or need to be right SDK Make some changes , This is the recommended way .

This article focuses on the next way to create a project .

3.2.1 Rely on routines to create projects

  1. choice S32DS Prject from Example, You will enter the routine selection interface , As shown in the figure below , Recommended S32K1xx SDK Version routine :

 Routine interface

  1. Choose here hello_world_s32k144 routine , Then fill in the project name , The default project name is used here , And then click Finish Create a project , It should be noted that , The same Workspace You cannot have two or more projects with the same name .

 Select routine

  1. Click... In the main menu area Processor Expert menu , choice Show Views, Pop up the graphical interface . If the interface position is wrong , You can press and hold the mouse to move the window .

Processor Expert

  1. At this time, under the project directory Generated Code The folder is empty , You need to click... In the graphical component window Generated Processor Expert Code Generating code , As shown in the figure below .

Generated Code

  1. After a while, you can see the successful code generation on the console Log, meanwhile Generated Code There are also folders .C and .H file .

Generated Code log

  1. Click the hammer icon drop-down Debug FLASH, Here's the picture ; Or select the project , Right click selection Build Project, Compile the project .

Debug FLASH

  1. You can see the name of the generated executable file in the console window , And the occupation of Flash and RAM size , As shown in the figure below .
  • The amount of Flash size :text paragraph +data paragraph =6388 byte =6.2KB
  • The amount of RAM size :bss paragraph +data paragraph =3528 byte =3.4KB

 Generate elf file

3.2.2 Create Library Project

Hu Gong's official account has previously introduced based on S32DS 2.0 The creation and use of library project , The following links ,S32DS 2.2 Similar to it , It is recommended to refer to this link for research .

S32DS Use Tips– How to compile, generate and call static libraries (qq.com)

3.2.3 Create a blank project

  1. Close the previously opened project first , And then choose S32DS Application Project, Create a new blank project .

    Because the graphical interface takes up more memory , If the computer configuration is not high , To avoid getting stuck , It is recommended to close the unused project .

  2. choice MCU Model and compiler , Fill in the project name , Click on Next.
     Create a blank project

  3. choice SDK Version of , And click the Finish.

 choice SDK

  1. Wait a minute , The project is created . It should be noted that , Projects created in this way ,Workspace Under the project directory in SDK The files in exist , And the project created in the first way ,Workspace Under the project directory in SDK There are no documents in , Routine is linked to the installation directory SDK Files in .

 Blank project

3.3 Import the project

take 3.2.3 Right click the project of the chapter to delete , Do not check disk delete , As shown in the figure below . Prepare for the following demo import project .

 Delete project

3.3.1 Import same S32DS Version of the project

  1. Click on File menu , Select open project from file .

 Import the project

  1. Click on Directory, Select the project you just deleted , Click on Finish. If you import a compressed package , Just choose Archive.

 Select the imported project

  1. Wait a minute , The deleted project is imported again Workspace 了 .

 Import project completed

3.3.2 Import S32DS 2018.R1 Version of the project

If you need to import 2018.R1 Version of the project , It needs to be used according to the project SDK edition , Choose the appropriate way . It is suggested to refer to the following articles on Hugong wechat official account :

S32DS for ARM IDE v2.2 And v2018.R1 Differences and application engineering upgrade considerations (qq.com)

4. Program download and debugging

4.1 Program download

  1. Close other projects , open 3.2.1 Chapter created project , Select the ladybug icon drop-down menu Debug Configurations, Click on the open .

debug To configure

  1. Pass the development board and computer MicroUSB Connect the harness , Here's the picture .

 Hardware connection

3. Select the corresponding profile , Check the regulator interface ( The on-board debugger of the development board is OpenSDA), As shown in the figure below , Click on debug.
 Debugger interface

  1. Select to open the debugging interface in the pop-up window .

 Open the debug interface

  1. Then you can see on the console that the program has been downloaded , also MCU Reset .

 Program download log

4.2 Program debugging

  1. Click the full speed button , Ready to run program , You can see .

 Run at full speed

  1. Double click in front of the number of lines of code that need a break point , This function can be realized . Here's the picture .

 Breaking point

  1. Debugging related button functions are shown in the figure below .

  1. If you need to return to the modification program , Stop this debugging , Click on the C/C++ button .

5. Recommended reading

thus ,S32DS The initial use of is over . If you want to learn more about S32DS Use skills , Welcome to the wechat official account of Hugong S32DS Series articles , Links are as follows :

S32DS IDE Use guide

原网站

版权声明
本文为[Auto FAE advanced road]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042231114785.html