LED_WS82811 compiler error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mkopitovic
Posts: 7
http://meble-kuchenne.info.pl
Joined: Sun Dec 13, 2020 9:15 pm
Has thanked: 1 time
Been thanked: 3 times

Flowcode v10 LED_WS82811 compiler error

Post 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

chipfryer27
Valued Contributor
Posts: 1153
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 287 times
Been thanked: 412 times

Re: LED_WS82811 compiler error

Post 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

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: LED_WS82811 compiler error

Post by Steve-Matrix »

Thanks, both. I'll have a look now.

BenR
Matrix Staff
Posts: 1742
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 443 times
Been thanked: 604 times

Re: LED_WS82811 compiler error

Post by BenR »

Hello,

Many thanks for letting us know.

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

chipfryer27
Valued Contributor
Posts: 1153
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 287 times
Been thanked: 412 times

Re: LED_WS82811 compiler error

Post by chipfryer27 »

Hi

Compiles to Hex using a PIC fine.

Regards

mkopitovic
Posts: 7
Joined: Sun Dec 13, 2020 9:15 pm
Has thanked: 1 time
Been thanked: 3 times

Re: LED_WS82811 compiler error

Post by mkopitovic »

Thanks

Compiles to Hex using an STM fine also.

Regards

Steve-Matrix
Matrix Staff
Posts: 1257
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: LED_WS82811 compiler error

Post by Steve-Matrix »

Thanks, both, for confirming the fix.

Post Reply