i.MXRT1060 Middleware Pack  Version 1.0.0
MDK-Middleware examples and CMSIS-Drivers for NXP i.MXRT1060 devices
 All Files Pages
Usage instructions

The NXP SDK is an NXP-specific software abstraction layer that provides interfaces to the device-specific peripherals. The steps to create a microcontroller application that uses MDK-Middleware and the NXP SDK are:

  1. Create project and add software components
  2. Copy source files to project
  3. Configure the project
  4. Configure components
  5. Configure pin and clock settings
  6. Add user code
  7. printf retargeting
  8. Build and debug the application

Assumptions

The instructions assume the following:

  • The device you have selected is called <selected_device>, for example MIMXRT1062DVL6A
  • The installation directory of this software pack is called <PACK_root>, typically C:\>Keil_v5\ARM\PACK\Keil\iMXRT1060_MWP\1.0.0
  • Your project directory is called <project_dir>

Important notes

The EVK board is initially pre-loaded with an application which disables debug. Thus, it is necessary to erase the Flash before using the board. Follow this procedure:

  • Change SW7 switch position to different than initial which is: OFF, ON, ON, OFF
  • Copy the CMSIS-RTOS Blinky project from Pack Installer and build the Release target in µVision
  • Connect the USB cable to J28 connector (CMSIS-DAP)
  • Reset the board by pushing button SW4
  • In µVision, click on Flash -> Erase soon after releasing SW4 push-button
  • After erasing of the Flash has finished, power-off the board (disconnect from J28)
  • Set switch SW7 to initial position
  • Connect USB cable to J28. The board is now ready for debugging.

If during debugging in RAM when starting the debug session µVision displays "Cannot access target" message, download the Blinky application to Flash (target: Release HyperFlash NOR), power-cycle the board and try again.