Skip to main content
Arete sw
Associate II
July 18, 2017
Solved

STM32CubeF0 Getting Started Error

  • July 18, 2017
  • 2 replies
  • 1249 views
Posted on July 19, 2017 at 01:26

Hi,

I am just getting started evaluating the STM32F0 Discovery board with the Keil MDK-ARM Toolchain. Following all the quick start guides and the STM32CubeF0GettingStarted to run the examples leads to the following error:

'error: ..\..\..\..\..\..\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f091xc.h(131): error:  #5: cannot open source input file 'core_cm0.h': No such file or directory'

Any advice? thanks.

    This topic has been closed for replies.
    Best answer by Arete sw
    Posted on July 19, 2017 at 18:40

    I had to add this path to the include paths:

    ..\..\..\..\..\..\Drivers\CMSIS\Include

    It is working now.

    Thanks

    2 replies

    ST Technical Moderator
    July 19, 2017
    Posted on July 19, 2017 at 12:22

    Hello

    aretesw

    ,

    Maybe you haven't configured correctly the Include paths within your project.

    So, you have to review the defines passed to thecompiler with a list of include file paths and check this in Keil :

    Project->Options for Target STM..->C/C++ tab.

    With Regards

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Arete sw
    Arete swAuthorBest answer
    Associate II
    July 19, 2017
    Posted on July 19, 2017 at 18:40

    I had to add this path to the include paths:

    ..\..\..\..\..\..\Drivers\CMSIS\Include

    It is working now.

    Thanks