Hello,
I had Keil running quite well for a few months but that changed two days ago after I installed STM32 software, CubeIDE, CubeProgrammer and Monitor.
I now the following error:
Finished: 2 information, 1 warning and 1 error messages.".\myFirst.axf" - 1 Error(s), 1 Warning(s).Target not created.Build Time Elapsed: 00:00:01
Whether old project or new project, I get the same error. I get the error in the image when I create new project I do not have the "Device" options listed at all in run-time environment window.
The device component comes from a CMSIS Device Family Pack (DFP). All CMSIS software packs are located in the folder you specified during the MDK installation. I don't know how the installation of ST Cube can change anything there. I would delete and re-install the DFP for the device used in your project in the Pack Installer and would try again.
Moved to Keil forum