Skip to main content
Visitor II
October 28, 2020
Solved

Is the stm8s_conf.h exists ?

  • October 28, 2020
  • 3 replies
  • 3000 views

Dear experts,

I have a problem with stm8s_conf.h file. I download the Standard Peripheral Libraries officially from ST web page. After I put them all into STVD, I mean the .c and .h files, then I compile. The compiler detects that stm8s_conf.h does not exist.

0693W0000059XlXQAU.jpgI try to check the stm8s_conf.h from SPL and thats true. I could not find the stm8s_conf.h file. So, I have to find it from another sources like github or something else. Back to the question, Is the stm8s_conf.h really exist ?

Thank you & best regards,

Mahendra

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    Hi, Mahendra,

    you will find the stm8s_conf.h in folder Project\STM8S_StdPeriph_Template if you downloaded the SPL here. It is also contained in all folders of the STM8S_StdPeriph_Examples.

    When your question is answered, please close this topic by choosing Select it best.

    /Peter

    3 replies

    Technical Moderator
    October 29, 2020

    Hi, Mahendra,

    you will find the stm8s_conf.h in folder Project\STM8S_StdPeriph_Template if you downloaded the SPL here. It is also contained in all folders of the STM8S_StdPeriph_Examples.

    When your question is answered, please close this topic by choosing Select it best.

    /Peter

    MahendraAuthor
    Visitor II
    October 29, 2020

    Hi Peter,

    Thanks for giving the solution. You are right. The file are in there. But, would you like to tell me why the file is placed separately ?

    Thanks & Best Regards,

    Mahendra

    Technical Moderator
    October 30, 2020

    Well, because stm8s_conf.h does not refer to a peripheral device, but contains the description of all STM8 families, which only includes those peripherals that are present in the specified family. Please refer to the help file stm8s-a_stdperiph_lib_um.chm, where you find some additional information:

    Contents > STM8S/A Standard Peripheral Library --> Description of Peripherals drivers

    When your question is answered, please close this topic by choosing Select as Best.

    Good luck!

    /Peter

    MahendraAuthor
    Visitor II
    November 1, 2020

    Got it. Very well explanations. Thank you.

    Mahendra