Running a demo application using IAR
This section describes the steps required to build, run, and debug example applications provided in the MCUXpresso SDK. The hello_world
demo application targeted for the mcxw72evk hardware platform is used as an example, although these steps can be applied to any example application in the MCUXpresso SDK.
MCX W72 is a new product which is not natively supported by IAR toolchain at the time of this writing. The patch provides all the files to be incorporated in IAR Embedded Workbench folder structure so that MCX W72 SDK projects can be built and debugged in this IDE.
Note:
IMPORTANT
The following patch has been tested with IAR Embedded Workbench v9.60.
IAR patch is distributed via MCX W72 Early Access Sharepoint.
Download the archive file ewarm-mcxw72-patch.zip from 04.Tools/IDE and Debbuger Patches/.
Unzip the file and copy the content in your IAR folder structure (typically within C:/Program Files/IAR systems).
Build an example application
Do the following steps to build the hello_world
example application..
Open the desired demo application workspace. Most example application workspace files can be located using the following path:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/iar
Using the mcxw72evk hardware platform as an example, the
hello_world
workspace is located in:<install_dir>/boards/mcxw72evk/demo_apps/hello_world/iar/hello_world.eww
Other example applications may have additional folders in their path.
Select the desired build target from the drop-down menu.
For this example, select hello_world – debug.
To build the demo application, click Make, highlighted in red in Figure 2.
The build completes without errors.
Parent topic:Running a demo application using IAR
Run an example application
To download and run the application, perform these steps:
Connect the development platform to your PC via USB cable between the USB connector (J14) and the PC USB connector.
Open the terminal application on the PC, such as PuTTY or TeraTerm, and connect to the debug COM port. To determine the COM port number, see How to determine COM Port. Configure the terminal with these settings:
115200 baud rate, depending on your settings (reference the
BOARD_DEBUG_UART_BAUDRATE
variable in theboard.h
file)No parity
8 data bits
1 stop bit
In IAR, click the Download and Debug button to download the application to the target.
The application is then downloaded to the target and automatically runs to the
main()
function.Run the code by clicking the Go button.
The
hello_world
application is now running and a banner is displayed on the terminal. If this is not true, check your terminal settings and connections.
Parent topic:Running a demo application using IAR