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:
- Create project and add software components
- Copy source files to project
- Configure the project
- Configure pin and clock settings
- Configure CMSIS-Drivers
- Add user code
- printf retargeting
- Build and debug the application
Assumptions
The instructions assume the following:
- The device you have selected is called
<selected_device>
, for example MIMXRT1052DVL6B
- The installation directory of this software pack is called
<PACK_root>
, typically C:\>Keil_v5\ARM\PACK\Keil\iMXRT105x_MWP\2.0.0
- Your project directory is called
<project_dir>
Important notes
The EVK board might be initially pre-loaded with an application which disables debug. In such case 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.