Run an example application
To download and run the application, perform these steps:
This board supports the
CMSIS-DAP/mbed/DAPLink
debug probe by default. Visit MBED serial-configuration and follow the instructions to install the Windows® operating system serial driver. If running on Linux OS, this step is not required.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 How to determine COM port. Configure the terminal with these settings:
115200 or 9600 baud rate, depending on your board (reference
BOARD_DEBUG_UART_BAUDRATE
variable in the board.hfile)No parity
8 data bits
1 stop bit
To debug the application, click load or press the F8 key for flexspi target which need to download the program to flash memory. Then, click the Start/Stop Debug Sessionbutton, highlighted in red in Figure 2. If using J-Linkas the debugger, click Project option>Debug>Settings>Debug >Port, and select SW.
Note: If debugging with JLINK, device selection window will be popped when you click the Settings button under the Debug tab. Users need to choose MIMXRT1165/MIMXRT1166 device manually.
Note:
When using jlink in MDK for cm4 projects, it expects one jlinkscript file named JLinkSettings.JLinkScript in the folder where the uVision project files are located. Please refer to Segger Wiki for more information.
For the contents in this
JlinkSettings.JLinkScript
, use contents inevkmimxrt1160_connect_cm4_cm4side.jlinkscript
(non-sdram targets) andevkmimxrt1160_connect_cm4_cm4side_sdram.jlinkscript
(sdram targets).Run the code by clicking Run to start the application, as shown in Figure 3.
The
hello_world
application is now running and a banner is displayed on the terminal, as shown in Figure 4. If this is not true, check your terminal settings and connections.
Parent topic:Run a demo using Keil® MDK/μVision