This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Run a demo using MCUXpresso IDE

Note:

Ensure that the MCUXpresso IDE toolchain is included when generating the MCUXpresso SDK Package.

MCUXpresso IDE is not supported in this release.

This section describes the steps required to configure MCUXpresso IDE to build, run, and debug example applications. The hello_world demo application targeted for the MIMXRT1060-EVKB platform is used as an example, though these steps can be applied to any example application in the MCUXpresso SDK.

Note: By default, three macros, XIP_EXTERNAL_FLASH=1, XIP_BOOT_HEADER_ENABLE=1, and XIP_BOOT_HEADER_DCD_ENABLE=1, are set in the project. If you do not use Board_Flash in the project, these macros should be removed or set value to 0 in project settings.

Select the workspace location

Every time MCUXpresso IDE launches, it prompts the user to select a workspace location. MCUXpresso IDE is built on top of Eclipse which uses workspace to store information about its current configuration, and in some use cases, source files for the projects are in the workspace. The location of the workspace can be anywhere, but it is recommended that the workspace be located outside the MCUXpresso SDK tree.

Parent topic:Run a demo using MCUXpresso IDE

Build an example application

To build an example application, follow these steps.

  1. Drag and drop the SDK zip file into the Installed SDKs view to install the MCUXpresso SDK. In the window that appears, click OK and wait until the import has finished.

    |

|

  1. On the Quickstart Panel, click Import SDK example(s)…, as shown in Figure 2.

    |

|

  1. In the window that appears, expand the MIMXRT1060 folder and select. **** Then, select evkbmimxrt1060 and click Next, as shown in Figure 3.

    |

|

  1. Expand the demo_apps folder, select hello_world, and then click Next.

    |

|

  1. Ensure the option Redlib: Use floating-point version of printf is selected if the cases print floating-point numbers on the terminal (for demo applications such as dac32_adc12, dac_adc, dac_cadc, ecompass, sai, coremark, mbedtls_benchmark, wolfssl_benchmark, and for mmcau_examples such as mmcau_api). Otherwise, there is no need to select it. Click Finish.

    |

|

**Note:** If you want to use semihost to print log, first select the **Semihost** button when importing projects, as shown in [Figure 6](build_an_example_application.md#FLOAATING).

|![](../images/semihost_rt1060evkb.png "Selecting Semihost")

|

|![](../images/sdk_debugconsole_rt1060evkb.png "Setting SDK_DEBUGCONSOLE")

|

  1. On the Quickstart panel, click build evkbmimxrt1060\_demo\_apps\_hello\_world \[Debug\], as shown in Figure 8.

    |

|

Parent topic:Run a demo using MCUXpresso IDE

Run an example application

For more information on debug probe support in the MCUXpresso IDE, visit community.nxp.com.

To download and run the application, perform these steps:

Note: Make sure that the board is on the QSPI_Flash mode before download (set SW4:0010).

  1. On the Quickstart Panel, click Debug evkbmimxrt1060_demo_apps_hello_world [Debug].

    |

|

  1. The first time you debug a project, the Debug Emulator Selection Dialog is displayed, showing all supported probes that are attached to your computer. Select the probe through which you want to debug and click OK. (For any future debug sessions, the stored probe selection is automatically used, unless the probe cannot be found.)

    |

|

  1. The application is downloaded to the target and automatically runs to main().

    |

|

  1. Start the application by clicking the Resume button.

    |

|

The hello_world application is now running and a banner is displayed on the MCUXpresso IDE console window. If not, check your terminal settings and connections.

|

|

Parent topic:Run a demo using MCUXpresso IDE