Skip to main content
Visitor II
January 3, 2021
Question

can't be complied successfully

  • January 3, 2021
  • 3 replies
  • 769 views

Hi , i try to run the CLK example from STM8L15x_StdPeriph_Examples, but i can't compile the project successfully , below is my procedure, can you help it?

  1. create a new workspace using STVD tool
  2. add the source and head files from the STM8L15x library folder
  3. compile the project

but it show the error during the process, below the snapshot about the errors

    This topic has been closed for replies.

    3 replies

    ALiu.5Author
    Visitor II
    January 3, 2021

    0693W000006HKnVQAW.png 

    attach the snapshot for the error message.

    Graduate II
    January 3, 2021

    Complaining it can't find the include file, a) make sure it exists in the path indicated (copy into local project if necessary), b) change the compilers "Include Paths" setting to reflect where these files can be found.

    ALiu.5Author
    Visitor II
    January 4, 2021

    Hi Tesla,

    Yes, it is caused by the wrong setting. but i don't know how to configure it. if I fullly reuse the STM8L15x_StdPeriph_Examples and template, it can compile ok. but i try to create a new workspace and add the source and header files refer the examples and template, the error happened.

    and I compared the setting , below is the setting content using the template, but i don't know how set the same as it if i create the new work space. can you help it.

    cxstm8 +modsl0 +debug -pxp +compact +split -pp -l –

    dSTM8L15X_MD -dUSE_STM8L1526_EVAL -i..\.. -i..\..\..\..

    \libraries\stm8l15x_stdperiph_driver\inc -i..\..\..\..\utilities

    \stm8_eval -i..\..\..\..\utilities\stm8_eval\common -i..\..\..\..

    \utilities\stm8_eval\stm8l1526_eval -i..\..\..\..\utilities\misc

    $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath)

    $(InputFile)

    0693W000006HM3oQAG.png