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-EVKC 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.
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.
On the Quickstart Panel, click Import SDK example(s)…, as shown in Figure 2.
In the window that appears, expand the MIMXRT1060 folder and select MIMXRT1062xxxxB. Then, select evkcmimxrt1060 and click Next, as shown in Figure 3.
Expand the
demo_apps
folder, selecthello_world
, and then click Next.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 formmcau_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.On the Quickstart Panel tab, click Build evkcmimxrt1060_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
).
On the Quickstart Panel tab, click Debug evkcmimxrt1060_demo_apps_hello_world [Debug].
The first time you debug a project, the Debug Emulator Selection Dialogis 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.)
The application is downloaded to the target and automatically runs to
main()
.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