cancel
Showing results for 
Search instead for 
Did you mean: 

can't be complied successfully

ALiu.5
Associate II

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

3 REPLIES 3
ALiu.5
Associate II

0693W000006HKnVQAW.png 

attach the snapshot for the error message.

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ALiu.5
Associate II

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