cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to compile code in STVD

KGupt.1
Associate III

when I compile the code for a simple GPIO toggle, it shows an error like this0693W000006H8G5QAK.pngCan't understand what is the issue, I have included all the inc and source files into the project from the Standard peripheral library and the Cosmic compiler is also successfully installed.

Any valuable suggestions or guidance will be greatfull.

error like this....

2 REPLIES 2
Michal Dudka
Senior III

Do one of these steps:

a) go to smt8s.h and uncomment selected STM8 family (its written in that file !) or...

b) add preprocessor definition coresponding to selected STM8 family to your compiler settings...

KGupt.1
Associate III

Thanks for this , it works