cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt Regarding IR Remote Control Project Using STM8 in ST Visual Developer.

VR1
Visitor

Hi all, I am currently working on an IR remote control project using the STM8S microcontroller and developing with ST Visual Developer (STVD), using the STM8S Standard Peripheral Library (STSW-STM8069). While I have made some progress, I am facing a few challenges that I was hoping you could help me with.

  • MCU: STM8S (exact model: STM8S003F3P6)

  • IDE: ST Visual Developer (STVD)

  • Library: STM8S Standard Peripheral Library (STSW-STM8069)

  • Toolchain: Cosmic C compiler

 

 I’m unsure how to properly configure the STM8 timers in STVD for precise pulse width measurements. Could you provide some guidance or example code for this?

During compilation of empty file with libraries , I encountered several errors that I’m struggling to resolve:

 #error cpstm8 ... can't open stm8s_conf.h



  • Where should stm8s_conf.h be located in the project structure?

  • Is there a sample or default version I should copy and modify?

  • Multiple "missing prototype" errors in stm8s_adc1.c
  • #error cpstm8 stm8s_adc1.c:91(14) missing prototype
    #error cpstm8 stm8s_adc1.c:92(14) missing prototype
  • Are these errors caused by missing or incorrect includes in my main source file?

  • Should I manually include the prototypes for these functions (e.g., from stm8s_adc1.h)?

I’d appreciate any guidance, example project structure, or suggestions to resolve these issues

Thank you for your support.

Best regards,

vaishnavi

0 REPLIES 0