Run a demo using MCUXpresso IDE
Note: Ensure that the MCUXpresso IDE toolchain is included when generating the MCUXpresso SDK Package.
This section describes the steps required to configure MCUXpresso IDE v11.1.1 to build, run, and debug example applications. The hello_world
demo application targeted for the TWR-KM35Z75M hardware platform is used as an example, though these steps can be applied to any example application in the MCUXpresso SDK.
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 an SDK. In the window that appears, click OK and wait until the import has finished.
|
|
On the Quickstart Panel, click Import SDK example(s)….
|
|
In the window that appears, expand the KM3x folder and select MKM35Z512xxx7. Then, select twrkm35z75m and click Next.
|
|
Expand the demo_apps folder and select hello_world. Then, click Next.
|
|
Ensure the option of
Redlib: Use floating point version of printf
is selected if the cases’ print floating-point numbers are on the terminal for demo applications such asadc_dma
andadc_interrupt
. Otherwise, it is not necessary to select this option. Then, click Finish.|
|
Parent topic:Run a demo using MCUXpresso IDE
Run an example application
For more information on debug probe support in the MCUXpresso IDE 11.1.1, visit community.nxp.com.
To download and run the application, perform these steps:
Reference the table in Appendix B to determine the debug interface that comes loaded on your specific hardware platform.
For boards with a P&E Micro interface, visit www.pemicro.com/support/downloads_find.cfm and download and install the P&E Micro Hardware Interface Drivers package.
If using J-Link with either a standalone debug pod or OpenSDA, install the J-Link software (drivers and utilities) from www.segger.com/jlink-software.html.
Connect the development platform to your PC via USB cable.
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 Appendix A). Configure the terminal with these settings:
115200 or 9600 baud rate, depending on your board (reference
BOARD_DEBUG_UART_BAUDRATE
variable in theboard.h
file)No parity
8 data bits
1 stop bit |
|
On the Quickstart Panel, click Debug ‘twrkm35z75m_demo_apps_hello_world’ [Debug].
|
|
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.)
|
|
The application is downloaded to the target and automatically runs to
main()
.|
|
Start the application by clicking Resume.
|
|
The hello_world
application is now running and a banner is displayed on the terminal. If not, check your terminal settings and connections.
|
|
Parent topic:Run a demo using MCUXpresso IDE