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

Compile Error after updating Keil (uVersion) to V5.40.0 from V5.37.0

Hi,

After I updated Keil from uVersion 5.37.0 to 5.40.0, I got the following error:

Build started: Project: FPIE-4K
*** Using Compiler 'V5.06 update 2 (build 183)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'FPIE'
compiling Exec.c...
C:\Keil_v5\ARM\CMSIS\6.1.0\CMSIS\Core\Include\cmsis_compiler.h(287): error: #35: #error directive: Unknown compiler.
#error Unknown compiler.
Exec\Exec.c: 0 warnings, 1 error
compiling System.c...
C:\Keil_v5\ARM\CMSIS\6.1.0\CMSIS\Core\Include\cmsis_compiler.h(287): error: #35: #error directive: Unknown compiler.
#error Unknown compiler.
Control\System.c: 0 warnings, 1 error

I'm compiling the same project (FPIE-4K) with 5.40.0 as I did with 5.37.0.

Any suggestion on the compile error?

Thanks

David

Parents
  • Hi Ronan,

    Thank you for the response to my question.

    I was using Keil MDK 5.37 for a couple of year without any issue.

    I recently updated Keil to 5.40. After that, when I compiled some old projects (that were developed under Keil 5.37), I got these errors.

     

    It seems Keil 5.40 installer created a new folder, C:\Keil_v5\ARM\CMSIS\6.1.0, and Keil 5.40 forced the compiler to use the new folder .

     

    If I selected ‘Use default compiler version 6’ under ARM Compiler / Option For Target in Keil/uVision IDE, I got a lot more compile errors.

     

    I have both ARM Compiler 5 and 6 in uVision IDE.

     

    I felt somehow Keil 5.40 installer mixes ARM Compiler 5 and 6.

    How do I go back to use ARM Compiler 5?

     

    Thanks

    David

Reply
  • Hi Ronan,

    Thank you for the response to my question.

    I was using Keil MDK 5.37 for a couple of year without any issue.

    I recently updated Keil to 5.40. After that, when I compiled some old projects (that were developed under Keil 5.37), I got these errors.

     

    It seems Keil 5.40 installer created a new folder, C:\Keil_v5\ARM\CMSIS\6.1.0, and Keil 5.40 forced the compiler to use the new folder .

     

    If I selected ‘Use default compiler version 6’ under ARM Compiler / Option For Target in Keil/uVision IDE, I got a lot more compile errors.

     

    I have both ARM Compiler 5 and 6 in uVision IDE.

     

    I felt somehow Keil 5.40 installer mixes ARM Compiler 5 and 6.

    How do I go back to use ARM Compiler 5?

     

    Thanks

    David

Children