Page 1 of 1

raspberry pi 3/3+ and WS2812B

Posted: Mon Feb 27, 2023 1:45 pm
by aflowcode
dear matrix team

i use flowcode 8.2.2.15 pro and noticed that the neopixel ws2811/12 component does not compile for the raspberry family.
the nops used for cycle delay are not working.
Building fc1_ws2812b
c:\users\Temp\cc6MarXG.o: In function `FCD_06621_LED_WS2811__Refresh':
fc1_ws2812b.c:(.text+0x4440): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4444): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4448): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x444c): undefined reference to `nop'
fc1_ws2812b.c:(.text+0x4450): undefined reference to `nop'
c:\users\IR\AppData\Local\Temp\cc6MarXG.o:fc1_ws2812b.c:(.text+0x4454): more undefined references to `nop' follow

hope this can be addressed, looking forward to read your opinion. i attach a rudimentary fcfx. btw, no problems with the component in atmel projects.
thank you very much.

Re: raspberry pi 3/3+ and WS2812B

Posted: Mon Feb 27, 2023 5:25 pm
by BenR
Hello,

Thanks for letting us know, I'm not sure how to do the timings for a RPI but I'll have a dig and see if there's a nice way to do it.

Re: raspberry pi 3/3+ and WS2812B

Posted: Mon Feb 27, 2023 6:52 pm
by aflowcode
dear BenR
nice to get your rapid reply. there is plenty of working c code online, mostly in rpi forums. i was trying something quick and dirty, re-defined nop in the supplementary code, and got it compiled. I found that there is actually a single sequence being sent, but not in the correct timing scheme.

thank you for your effort. hope you can work it out!!