Page 1 of 1

LED_WS82811 compiler error

Posted: Tue Jun 20, 2023 11:34 pm
by mkopitovic
hi
For some reason, but I'm pretty sure that the problem starts after the last update (Flowcode v10.0.3.31) (I didn't see the problem yesterday) LED_WS82811 component stops the project from compiling. The problem is the same even if no other components are inside the project just an empty project and LED_WS82811 "initialise".
I tried it on several STMs error is the same

error message:
"
Flowcode1.c:158:75: error: 'FCVsz_06621_LED_WS28' undeclared here (not in a function)
MX_GLOBAL MX_UINT8 FCV_06621_LED_WS2811__RGB[FCVsz_06621_LED_WS2811__RGB][FCVsz_06621_LED_WS28[27][3];
^
Flowcode1.c:158:102: error: expected ']' before ';' token
MX_GLOBAL MX_UINT8 FCV_06621_LED_WS2811__RGB[FCVsz_06621_LED_WS2811__RGB][FCVsz_06621_LED_WS28[27][3];
^
Error(s) in build

"
thanks in advance

Re: LED_WS82811 compiler error

Posted: Wed Jun 21, 2023 9:03 am
by chipfryer27
Hi

I tried just initialising the component in FCv.30 and it compiled OK using a PIC.

I updated to FCv.31 opened the file and got errors when compiling too:-

C:\Users\Desktop\New folder\Flowcode_31.h:158:52: error: (192) undefined identifier "FCVsz_06621_LED_WS28"
C:\Users\Desktop\New folder\Flowcode_31.h:158:75: error: (981) pointer required
C:\Users\Desktop\New folder\Flowcode_31.h:158:75: error: (981) pointer required
C:\Users\Desktop\New folder\Flowcode_31.h:158:78: error: (981) pointer required
C:\Users\Desktop\New folder\Flowcode_31.h:158:78: error: (981) pointer required
C:\Users\Desktop\New folder\Flowcode_31.h:158:78: error: (188) constant expression required
C:\Users\Desktop\New folder\Flowcode_31.h:158:78: error: (310) "]" expected
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Autoclose turned off

Regards

Re: LED_WS82811 compiler error

Posted: Wed Jun 21, 2023 9:05 am
by Steve-Matrix
Thanks, both. I'll have a look now.

Re: LED_WS82811 compiler error

Posted: Wed Jun 21, 2023 10:03 am
by BenR
Hello,

Many thanks for letting us know.

Hopefully fixed for you now via the Help -> Library update window.

Re: LED_WS82811 compiler error

Posted: Wed Jun 21, 2023 2:40 pm
by chipfryer27
Hi

Compiles to Hex using a PIC fine.

Regards

Re: LED_WS82811 compiler error

Posted: Fri Jun 23, 2023 9:05 am
by mkopitovic
Thanks

Compiles to Hex using an STM fine also.

Regards

Re: LED_WS82811 compiler error

Posted: Fri Jun 23, 2023 9:13 am
by Steve-Matrix
Thanks, both, for confirming the fix.