cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation error for STM8S003F3 while using COSMIC C and STVD for programming

vatsal_1770
Visitor

 

This is one of function in code to implement WS2812 LED protocol on STM8S003F3.

vatsal_1770_2-1732674510642.png

And I am getting this error compilation.

----------- Project ws2812_led - STM8 Cosmic - Configuration Debug -------------

Compiling main.c...
cxstm8 -i..\led_blink\inc +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8" -clDebug\ -coDebug\ main.c
#error cpstm8 main.c:34(9+7) invalid typedef usage
#error cpstm8 main.c:34(24) i undefined
main.c:
The command: "cxstm8 -i..\led_blink\inc +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8" -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.

main.o - 4 error(s), 0 warning(s)


What could be the reason as I am using right data type? 

Regarding WS2812 addressable LED strip with STM8S003F3, Is there any library like FastLED is available for STM8? If not then is there any other way, because I am facing difficulties while achieving nano sec delay for this protocol.  


0 REPLIES 0