There are two things to note about builds using CMSIS code replacement libraries (CRL):
1) CMSIS libraries only work with GNU toolchains, not with Visual Studio compilers. Ensure that the selected toolchain is "GNU Tools for ARM Embedded Processors" in the "Code Generation" area of your model's Configuration Parameters.
2) The root cause for the error message is that no Hardware Board was selected in the model. CMSIS CRL will work when you select any of the Hardware boards that we ship as part of ARM Cortex Support Packages.
CMSIS needs this information, for example which ARM architecture (M0, M3, ...M7) is used. The correct CMSIS library will be selected based on the selected architecture. This information is coming from the Hardware Board parameter. Set this parameter accordingly in the "Hardware Implementation" area of your model's Configuration Parameters.
In this way, you can create a target and add the necessary information such as architecture, library name etc.
Best Answer