Hello everyone, I am a ruffian balance, is a serious technical ruffian. Today ruffian balance to introduce to you is the SDK project import and workspace management mechanism under MCUXpresso IDE.

MCUXpresso IDE is a free integrated development environment developed by NXP software team with great efforts. Basically, it has some functions of GENERAL MCU development IDE, and it also has some functions that general IDE does not have. However, there are too few tutorials about MCUXpresso IDE on the Internet. Many people are not even skilled in the basic operation of MCUXpresso IDE, let alone the powerful side of MCUXpresso. There is a long way to go to promote tools, so let’s be a good evangelist.

Today, ruffian Balance is to introduce the workspace management mechanism of MCUXpresso IDE combined with the official SDK software package, which is the first step of MCUXpresso IDE.

1. Prepare the development environment

First of all, you need to prepare the environment, including the necessary software, ruffian balance environment is as follows:

  • Integrated Development Environment: MCUXpresso IDE V11.2.1_4149, download here
  • Sdk_2.8.0_evk-mimxrt595_prc (Toolchain must include MCUXpresso IDE), click here to download

Workspace mechanism

When you open the MCUXpresso IDE for the first time, you will be asked to select a Workspace path. If you do not choose the Workspace path, there will be a default path. Workspace is actually a common concept for all Eclipse-based tools. For embedded projects, it is mainly used to centralize all resources of a project, including project source files and the configuration of the MCUXpresso IDE itself. Now you may not have a strong sense of Workspace, but let’s move on.

3. Import SDK project

Select the Workspace path and you will enter the main interface of MCUXpresso IDE. On the left side of the Quickstart Panel, there are three ways to enter the project. The first way is to create a new project from scratch (this is not recommended). Because building on an existing project will get you the project you want faster.

  • Import SDK example(s) : Import the example project from the NXP SDK package
  • Import project(s) from file system: Directly Import an existing project from the local.

So for the NXP SDK package, what is the difference between the two import engineering methods? Take the downloaded sdK_2.8.0_EVK-MIMxrT595_PRC. zip package as an example.

3.1 the Import SDK example (s)

By default, there is no RT500 in the Installed SDKs interface box. Drag the package sdk_2.8.0_evK-MIMxRt595_PRC. zip into the Installed SDKs interface box.

RT500 SDK package can be seen in the Installed SDKs interface box, select it to continue to import the SDK package in the example, we choose the hello_world routine under demo_apps.

In the workspace path, you can see a folder named evkmimxrt595_hello_world. This folder contains the project files of MCUXpresso IDE (.project/.cproject). There are also all the source files needed for the Hello World routine in the SDK package. Yes, the Import SDK Example operation copies all the necessary files from the SDK package into a separate project folder that no longer depends on the original SDK package.

This is achieved by storing the following XML description files in the SDK package, which instructs the MCUXpresso IDE to create project files and reorganize individual folders during the import process.

\ SDK_2 _EVK - 8.0 MIMXRT595_PRC \ EVK - MIMXRT595_manifest_v3_6 XML 8.0 _EVK - MIMXRT595_PRC \ \ SDK_2 boards \ evkmimxrt595 \ demo_apps \ hello_world \ hello_world XMLCopy the code

3.2 Import project(s) from file system

Import project(s) from file system (sdk_2.8.0_EVK-MIMxrT595_PRC) Let’s try importing a look:

We find that there are only DSP-related routines in the SDK package, but not as many basic routines as we saw in the previous Import SDK example way. Why is this? In fact, if you look carefully in the SDK package under \boards\ EvKMIMxrt595 \demo_apps\hello_world, you will find that there are IAR/MDK project files, but not the MCUXpresso IDE project files. Therefore, this Import method is not suitable for the original SDK package. It is more suitable for the independent project folder generated after the previous Import SDK Example method (the folder should contain the.project/.cproject file).

Finally, the Copy Projects into Workspace option highlighted in the red box above is selected during the import process for a locally placed independent project folder containing.project/.cproject files. A copy of the project will be copied from the workspace path so that the workspace path is consistent with the project path. If this option is not checked, the two paths will be inconsistent and will be affected at project compile time because the default path used in the project MCU C Compiler/Includes option is based on the Workspace_LOc path, which will be covered in a later article.

At this point, MCUXpresso IDE SDK project import and workspace management mechanism ruffian balance will be introduced, where is the applause ~~~

Welcome to subscribe to

The article will be published on my blog park homepage, CSDN homepage, Zhihu homepage and wechat public account at the same time.

Wechat search “ruffian balance embedded” or scan the following two-dimensional code, you can see the first time on the phone oh.