2021-01-02 11:54 PM
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?
but it show the error during the process, below the snapshot about the errors
2021-01-02 11:59 PM
attach the snapshot for the error message.
2021-01-03 06:59 AM
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.
2021-01-03 06:16 PM
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)