cancel
Showing results for 
Search instead for 
Did you mean: 

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)"

sözbe.1
Associate II

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.

3 REPLIES 3

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

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

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.1
Associate II

this is the photo of that error