Run a demo using MCUXpresso IDE

Note: Ensure that the MCUXpresso IDE toolchain is included when generating the MCUXpresso SDK package.

Note: The latest MCUX IDE 24.9.25 cannot support MCXW72 multicore examples compiling, users need to upgrade to the Linkserver_24.10.22 or higher version, and change the LinkServer path configuration in the MCUX IDE.

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 MCX-W72-EVK hardware platform is used as an example, though these steps can be applied to any example application in the MCUXpresso SDK.

LinkServer from the nxp.com does not have support for MCX W72. It is available only internally. You can download the installer for LinkServer distributed via the MCX W72 Early Access Sharepoint.

After the LinkServer is installed, to customize the LinkServer in MCUXpresso IDE, go to Window -> Preferences -> MCUXpresso IDE -> Debug Options -> LinkServer Options.

Selecting 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 of the MCUXpresso SDK tree.

Parent topic:Run a demo using MCUXpresso IDE

Building 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 an SDK. In the window that appears, click OK and wait until the import has finished.

  2. On the Quickstart Panel, click Import SDK example(s)….

  3. In the window that appears, expand the mcx folder and select MCXW72. Then, select mcxw72evk and click Next.

  4. Expand the demo_apps folder and select hello_world. Then, click Next.

  5. Ensure Redlib: Use floating point version of printf is selected if the example prints floating point numbers on the terminal for demo applications such as adc_basic, adc_burst, adc_dma, and adc_interrupt. Otherwise, it is not necessary to select this option. Then, click Finish.

Parent topic:Run a demo using MCUXpresso IDE

Running an example application

To download and run the application, perform the following steps:

  1. Connect the development platform to your PC via USB cable between the USB connector (J14) and the PC USB connector.

  2. Open the terminal application on the PC, such as PuTTY or TeraTerm, and connect to the debug serial port number (to determine the COM port number, see How to determine COM Port). Configure the terminal with these settings:

    1. 115200 or 9600 baud rate, depending on your board (reference BOARD_DEBUG_UART_BAUDRATE variable in board.h file)

    2. No parity

    3. 8 data bits

    4. 1 stop bit

  3. On the Quickstart Panel, click on Debug.

  4. 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.)

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

  6. Start the application by clicking Resume.

The hello_world application is now running and a banner is displayed on the terminal. If this is not the case, check your terminal settings and connections.

Parent topic:Run a demo using MCUXpresso IDE