Keil Logo

µVISION: Migrate projects with ARMv8-M based devices to MDK 5.22

Information in this knowledgebase article applies to:

  • MDK version 5.22


After installation of MDK version 5.22, projects that use ARMv8-M based devices do not build anymore. Instead the following errors are generated:

Error: L6218E: Undefined symbols __TZ_....

The dialog Options for Target - Target does not longer show the option Software Model for Secure / Non-secure mode.


In the CMSIS 5.0.0 specification for CMSIS-Pack the following new processor attributes are introduced for ARMv8-M:

  • Dtz=”TZ”: ARMv8-M TrustZone enabled device
  • Ddsp=”DSP”: ARMv8-M DSP Extension enabled device
  • Dsecure=”Secure”: Application Software Model is “Secure Mode”
  • Dsecure=”Non-secure”: Application Software Model is “Non-Secure Mode”

In µVision the processor attributes that are used by a project are only updated with the settings from the device description in the respective Software Pack based on the PDSC file information. This information is updated with:

  • initial selection during New Project
  • selecting a different device in the dialog Options for Target

Without the attribute Dtz=”TZ” in the Software Pack, the features for TrustZone for ARMv8-M are not available and the device behaves like a classic Cortex-M device.


Validate that these packs are installed:

  • ARM.CMSIS.5.0.0.pack or higher version
  • for devices CMSDK_ARMv8MBL, CMSDK_ARMv8MML: Keil.V2M-MPS2_CMx_BSP.1.5.0.pack or higher version

To update the device attributes, open the project in µVision and use the dialog Option for Target - Device re-select the device for all targets and all projects of the workspace. As a consequence of re-selecting the device some target options are reset to defaults from the device database (e.g. Target Memory, Debugger and Flash Algorithm settings). Therefore you must also re-apply all project specific settings.


Last Reviewed: Thursday, November 17, 2016

Did this article provide the answer you needed?
Not Sure
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.