Skip to main content
Visitor II
September 16, 2021
Question

I can not uncomment line in stm8s.h error: "Please select first the target STM8S/A device used in your application (in stm8s.h file)"

  • September 16, 2021
  • 3 replies
  • 2145 views

hi,

I installed STVD and Cosmic C mopiler.

I downloaded SPL from ST website.

created first project.

installed SPL soruce files and include files.

I will uncomment line #define STM8S003 (line49) but compiler gives error.

"Please select first the target STM8S/A device used in your application (in stm8s.h file)"

I exactly try to do this ( selecting the target)

Dıd i missed any step previously ?

why i receive this error.

i follow attached document step by step.

    This topic has been closed for replies.

    3 replies

    Graduate II
    September 16, 2021

    Not sure anyone is going to wade through all this trying to guess what's wrong. The document's author might have a better understanding of what was written, and what might have changed in subsequent years.

    Better that you ZIP up YOUR project as you're created it, so someone can look critically a what's broken or missing.

    Likely a typo, or missing/incorrect Include Path

    sözbe.1Author
    Visitor II
    September 17, 2021

    Thanks for your suggestions.

    I am attaching my first demo to this message.

    However, i noticed another key point may be relating with this problem.

    When I want to save my project I receive an error:

    "Access to C:\.........\stm8s.h was denied"

    So I understand that my project can not access to stm8s.h although I loaded loaded all SPL components ( *.h and *.c files)

    sözbe.1Author
    Visitor II
    September 17, 2021

    this is the photo of that error