Running a Demo using Keil MDK/uVision

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running a Demo using Keil MDK/uVision

Running a Demo using Keil MDK/uVision

Install CMSIS Device Pack

After the MDK tools are installed, Cortex® Microcontroller Software Interface Standard (CMSIS) device packs must be installed to fully support the device from a debug perspective. These packs include things such as memory map information, register definitions and flash programming algorithms. Follow these steps to install the appropriate CMSIS pack. Please use MDK-Arm Microcontroller Development Kit (Keil)® version 5.38.1 or above.

  1. Open the MDK IDE, which is called µVision. Inside the IDE, select the "Pack Installer" icon
    Sabina_Bruce_0-1767115848769.png
  2. In the Pack Installer window, search for "MCXW" to bring up the MCXW71 family. Click on the MCXW7XX name, and then in the right-hand side you'll see the NXP: MCXW71_DFP pack. Click on the "Install" button next to the pack. This process requires an internet connection to successfully complete
  3. After the installation finishes, close the Pack Installer window and return to the µVision IDE

Build the Example Application

The following steps will guide you through opening the hello_world application. These steps may change slightly for other example applications as some of these applications may have additional layers of folders in their path.

  1. If not already done, open the desired demo application workspace in:

    <install_dir>/boards/<sdk_board_name>/<example_type>/<application_name>/mdk

  2. Select Debug configuration
    Sabina_Bruce_1-1767115880908.png
  3. Do right-click on the project and select the project options:
    Sabina_Bruce_2-1767115902529.png
  4. Now, go to the Debug option and select CMSIS-DAP ARMv8-M Debugger. Click on the OK button
    Sabina_Bruce_3-1767115924146.png
  5. To build the demo project, select the "Rebuild" button, highlighted in red
    Sabina_Bruce_4-1767115960650.png
  6. The build will complete without errors
%3CLINGO-SUB%20id%3D%22lingo-sub-2270160%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERunning%20a%20Demo%20using%20Keil%20MDK%2FuVision%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270160%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CH4%20id%3D%22toc-hId-207196820%22%20id%3D%22toc-hId-207196822%22%3EInstall%20CMSIS%20Device%20Pack%3C%2FH4%3E%0A%3CP%3EAfter%20the%20MDK%20tools%20are%20installed%2C%20Cortex%C2%AE%20Microcontroller%20Software%20Interface%20Standard%20(CMSIS)%20device%20packs%20must%20be%20installed%20to%20fully%20support%20the%20device%20from%20a%20debug%20perspective.%20These%20packs%20include%20things%20such%20as%20memory%20map%20information%2C%20register%20definitions%20and%20flash%20programming%20algorithms.%20Follow%20these%20steps%20to%20install%20the%20appropriate%20CMSIS%20pack.%20Please%20use%20MDK-Arm%20Microcontroller%20Development%20Kit%20(Keil)%C2%AE%20version%205.38.1%20or%20above.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOpen%20the%20MDK%20IDE%2C%20which%20is%20called%20%C2%B5Vision.%20Inside%20the%20IDE%2C%20select%20the%20%22Pack%20Installer%22%20icon%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sabina_Bruce_0-1767115848769.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sabina_Bruce_0-1767115848769.png%22%20style%3D%22width%3A%20618px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371449iE126B46DB130E4C7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sabina_Bruce_0-1767115848769.png%22%20alt%3D%22Sabina_Bruce_0-1767115848769.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Pack%20Installer%20window%2C%20search%20for%20%22MCXW%22%20to%20bring%20up%20the%20MCXW71%20family.%20Click%20on%20the%20MCXW7XX%20name%2C%20and%20then%20in%20the%20right-hand%20side%20you'll%20see%20the%20NXP%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EMCXW71_DFP%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Epack.%20Click%20on%20the%20%22Install%22%20button%20next%20to%20the%20pack.%20This%20process%20requires%20an%20internet%20connection%20to%20successfully%20complete%3C%2FLI%3E%0A%3CLI%3EAfter%20the%20installation%20finishes%2C%20close%20the%20Pack%20Installer%20window%20and%20return%20to%20the%20%C2%B5Vision%20IDE%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH4%20id%3D%22toc-hId--1600257643%22%20id%3D%22toc-hId--1600257641%22%3EBuild%20the%20Example%20Application%3C%2FH4%3E%0A%3CP%3EThe%20following%20steps%20will%20guide%20you%20through%20opening%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Ehello_world%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eapplication.%20These%20steps%20may%20change%20slightly%20for%20other%20example%20applications%20as%20some%20of%20these%20applications%20may%20have%20additional%20layers%20of%20folders%20in%20their%20path.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%0A%3CP%3EIf%20not%20already%20done%2C%20open%20the%20desired%20demo%20application%20workspace%20in%3A%3C%2FP%3E%0A%3CP%3E%3CCODE%3E%3CINSTALL_DIR%3E%2Fboards%2F%3CSDK_BOARD_NAME%3E%2F%3CEXAMPLE_TYPE%3E%2F%3CAPPLICATION_NAME%3E%2Fmdk%3C%2FAPPLICATION_NAME%3E%3C%2FEXAMPLE_TYPE%3E%3C%2FSDK_BOARD_NAME%3E%3C%2FINSTALL_DIR%3E%3C%2FCODE%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3ESelect%20Debug%20configuration%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sabina_Bruce_1-1767115880908.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sabina_Bruce_1-1767115880908.png%22%20style%3D%22width%3A%20549px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371450i883E865591D28DFE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sabina_Bruce_1-1767115880908.png%22%20alt%3D%22Sabina_Bruce_1-1767115880908.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EDo%20right-click%20on%20the%20project%20and%20select%20the%20project%20options%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sabina_Bruce_2-1767115902529.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sabina_Bruce_2-1767115902529.png%22%20style%3D%22width%3A%20604px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371451iA1866A4FE8669267%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sabina_Bruce_2-1767115902529.png%22%20alt%3D%22Sabina_Bruce_2-1767115902529.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ENow%2C%20go%20to%20the%20Debug%20option%20and%20select%20CMSIS-DAP%20ARMv8-M%20Debugger.%20Click%20on%20the%20OK%20button%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sabina_Bruce_3-1767115924146.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sabina_Bruce_3-1767115924146.png%22%20style%3D%22width%3A%20518px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371452i9C89FCAC67A12B48%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sabina_Bruce_3-1767115924146.png%22%20alt%3D%22Sabina_Bruce_3-1767115924146.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ETo%20build%20the%20demo%20project%2C%20select%20the%20%22Rebuild%22%20button%2C%20highlighted%20in%20red%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sabina_Bruce_4-1767115960650.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sabina_Bruce_4-1767115960650.png%22%20style%3D%22width%3A%20361px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371453i05637595B5514BB3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sabina_Bruce_4-1767115960650.png%22%20alt%3D%22Sabina_Bruce_4-1767115960650.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EThe%20build%20will%20complete%20without%20errors%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLINGO-BODY%3E
100% helpful (1/1)
Version history
Last update:
‎12-30-2025 10:33 AM
Updated by: