This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Not able to modify header file. Target not created.

Hello,

I am a newbee to MDK Keil and am trying to run my 1st project in uVision 5 in simulation mode for stm32f103c8. However, target is not created while building the project. Also the header file shows an error but I am not able to make any changes (for target device) as the header file is locked and cannot be edited.

Any help is appriciated.

The error is displayed as:

Build started: Project: f
*** Using Compiler '', folder: 'C:\Users\Hardik Nagar\Desktop\MDK_lite\Keil_v5\ARM\ARMCLANG\bin\'
Build target 'Stm32f103c8_test1'
compiling test_blinky.c...
*** Error: CreateProcess failed, Command: '"C:\Users\Hardik Nagar\Desktop\MDK_lite\Keil_v5\ARM\ARMCLANG\bin\\ArmCC" --via ".\objects\test_blinky.__i"'
assembling startup_stm32f10x_md.s...
*** Error: CreateProcess failed, Command: '"C:\Users\Hardik Nagar\Desktop\MDK_lite\Keil_v5\ARM\ARMCLANG\bin\\ArmAsm" --via ".\objects\startup_stm32f10x_md._ia"'
compiling system_stm32f10x.c...
*** Error: CreateProcess failed, Command: '"C:\Users\Hardik Nagar\Desktop\MDK_lite\Keil_v5\ARM\ARMCLANG\bin\\ArmCC" --via ".\objects\system_stm32f10x.__i"'
linking...
--- Error: failed to execute 'C:\Users\Hardik Nagar\Desktop\MDK_lite\Keil_v5\ARM\ARMCLANG\bin\ArmLink'
".\Objects\f.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00

The header file shows error (cross 'X' mark in the line) in:

#if !defined (STM32F10X_LD) && !defined (STM32F10X_LD_VL) && !defined (STM32F10X_MD) && !defined (STM32F10X_MD_VL) && !defined (STM32F10X_HD) && !defined (STM32F10X_HD_VL) && !defined (STM32F10X_XL) && !defined (STM32F10X_CL)
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#endif

Thank you

0