µVISION: Error: Device Not Found
Information in this knowledgebase article applies to:
When opening an MDKv5 project, I receive the following error:
Error: Device not found - Device: 'STM32L053R8' Vendor: 'STMicroelectronics' Please update your device selection.
You may note in the Options for Target, Device tab, the only available selections are:
In general, first, investigate the following:
Another potential cause is that a project generator tool may not provide the toolchain with enough information about the name of the device. This is normally caught by µVision, where the supplied device name is compared as a base string against the devices defined in the pack. µVision chooses the first selectable device that includes the string.
A pack can define a selectable device in two different ways. A selectable device can be thought of as a leaf on a branch, where the most specific definition becomes selectable. Leaves can be either:
If a 'device' tag contains any 'variant' tags, then the only selectable devices are from the Dvariant field, not Dname.
After verifying pack availability, and selection, in general, go to Project => Options for Target => Device tab, and (re)select the device.
Note: If you think the error was caused by a discrepancy between a generator tool and a pack, MDKv5.24a had a regression which hampered the automated resolution of such a conflict. Users of MDKv5.24a and export tools can still use the method above. To avoid this type of issue, upgrade to MDKv5.25 or later. Note: If you face this issue, with a generated project, be sure you are using the latest version of the software that generates the project. Also, be sure you are exporting to the correct version of MDK-ARM (MDK-ARMv4, MDK-ARMv5, etc.).
If you see an export tool generating device names different from the selectable devices in the device family pack, notify the groups who support the tool and the authors of the pack. They can coordinate to resolve the issue.
Last Reviewed: Tuesday, December 22, 2020
of your data.